Pearson Chi Square Hypothesis Test Matlab script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: chi2test.m
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Matlab
  • Price:Freeware
  • Company: G. Levin (View more)

Pearson Chi Square Hypothesis Test script description:




Publisher review:
Pearson Chi Square Hypothesis Test - Single sample Pearson Chi Square goodness-of-fit hypothesis test. CHI2TEST: Single sample Pearson Chi Square goodness-of-fit hypothesis test.H=CHI2TEST(X,ALPHA) performs the particular case of Pearson Chi Square test to determine whether the null hypothesis of composite normality PDF is a reasonable assumption regarding the population distribution of a random sample X with the desired significance level ALPHA.H indicates the result of the hypothesis test according to the MATLAB rules of conditional statements:H=1 => Do not reject the null hypothesis at significance level ALPHA.H=0 => Reject the null hypothesis at significance level ALPHA.The Chi Square hypotheses and test statistic in this particular case are:Null Hypothesis: X is normal with unknown mean and variance.Alternative Hypothesis: X is not normal.The random sample X is shifted by its estimated mean and normalized by its estimated standard deviation. The tested bins XP of the assumed normal distribution are chosen [-inf, -1.6:0.4:1.6, inf] to avoid unsufficient statistics. Let E(x) be the expected frequency of X falls into XP according to the normal distribution and O(x) be the observed frequency. The Pearson statistics X2=SUM((E(x)-O(x))^2/E(x)) distributes Chi Square with length(XP)-3 degrees of freedom. The decision to reject the null hypothesis is taken when the P value (probability that Chi2 random value with length(XP)-3 degrees of freedom is greater than X2)is less than significance level ALPHA. X must be a row vector representing a random sample. ALPHA must be a scalar.The function doesn't check the formats of X and ALPHA, as well as a number of the input and output parameters.The asymptotic limit of the Chi Square Test presented is reached when LENGTH(X)>90. Requirements: ยท MATLAB Release: R12.1
Pearson Chi Square Hypothesis Test is a Matlab script for Statistics and Probability scripts design by G. Levin. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5