Pearson Chi-Square Test with Equiprobable Classes for a Continuous Distribution
For a continuous variable the fitted distribution is cut into k classes that each have probability 1/k, so every class expects n/k observations. Pearson's statistic sums the squared differences between observed and expected counts divided by the expected count. The number of classes follows Moore's rule or Mann and Wald's rule.
적합한 연속분포를 확률이 1/k로 같은 k개의 구간으로 나누고, 구간별 관측 빈도와 기대 빈도 n/k의 차이를 피어슨 카이제곱 통계량으로 요약하는 적합도 검정입니다.
Does my continuous variable follow a normal, lognormal or exponential distribution when judged by counts in equally likely classes?
연속형 변수가 정규, 로그정규, 지수 분포를 따른다고 볼 수 있습니까? 어느 구간에서 어긋납니까?
A large chi-square means some classes hold clearly more or fewer values than expected; the residual table shows which. Because parameters are estimated from the raw data the exact null lies between chi-square with k - 1 - p and k - 1 degrees of freedom, so both p-values and a Monte Carlo p-value are given.
When to use Pearson Chi-Square Test with Equiprobable Classes for a Continuous Distribution
- You want a transparent fit test whose class residuals show where the misfit lies.
- You need the classical equiprobable chi-square test for a report.
When to use something else
- Your data are already categories with given expected proportions: use Chi Square Goodness of Fit Test
- You want a more powerful normality test: use Shapiro-Wilk Test
Assumptions and requirements
- Independent observations
- At least about 5 expected per class
What the analysis reports
- Chi-square statistic with adjusted and unadjusted degrees of freedom
- Monte Carlo p-value
- Observed and expected counts with Pearson residuals per class
How to report it
The Pearson chi-square test of a normal distribution with [value] equiprobable classes (estimated parameters, n = [value]) gave chi2([value]) = [value], p = [value].
Related methods
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with SciPy.
독립 계산. SciPy 대조 참조 시험 1건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Pearson Chi-Square Test with Equiprobable Classes for a Continuous Distribution on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable
- Price
- 250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.