Pearson Correlation Calculator
Calculate the Pearson correlation coefficient (r) and coefficient of determination (r2) for two data series. Enter values separated by commas — instant result with interpretation, no signup needed.
Enter observed and expected frequencies separated by commas and the calculator will compute the chi-square statistic χ², degrees of freedom and p-value. The chi-square goodness-of-fit test checks whether an observed frequency distribution differs significantly from the expected theoretical distribution.
Step 1: Enter the observed frequencies as comma-separated numbers (e.g. 10,20,30). Step 2: Enter the corresponding expected frequencies (e.g. 15,20,25). Step 3: Click Calculate — the calculator shows χ², degrees of freedom (df = k−1), p-value and a statistical interpretation. Make sure both series contain at least 2 positive values.
Observed: 10, 20, 30. Expected: 15, 20, 25. χ² = (10−15)²/15 + (20−20)²/20 + (30−25)²/25 = 1.667 + 0 + 1.000 = 2.667. df = 3−1 = 2. Critical value χ² for df=2, α=0.05 is 5.99. Since 2.667 < 5.99, we fail to reject H₀ — the distribution fits the expected model.
The chi-square (χ²) test is a non-parametric statistical test that checks whether observed frequency data differ significantly from expected frequencies. It is used with categorical data to assess goodness of fit or independence between variables.
A χ² value of 0 means the observed data perfectly match the expected frequencies. The larger the χ², the greater the discrepancy. To assess statistical significance, compare the calculated χ² to the critical value for the given degrees of freedom and significance level α (typically 0.05 or 0.01).
A result of p < 0.05 means we reject the null hypothesis at the 5% significance level. The difference between observed and expected frequencies is statistically significant — it is unlikely to have occurred by chance alone. This is the conventional threshold in most empirical sciences.
Degrees of freedom df = k − 1, where k is the number of categories. For 3 categories df = 2, for 4 categories df = 3, and so on. The degrees of freedom determine which critical value to use when assessing whether to reject the null hypothesis.
The chi-square test is unreliable when expected frequencies in any category are less than 5. It is also not appropriate for continuous data or very small samples (n < 20). In such cases use Fisher's exact test or Yates' continuity correction instead.
The chi-square test is used in survey analysis, genetics (verifying Mendel's laws), quality control in manufacturing, marketing (A/B testing), epidemiology, and social sciences — anywhere you have categorical data and want to check agreement with an expected distribution.
Enter numbers separated by commas, semicolons or spaces. Example: "10,20,30" as observed and "15,20,25" as expected. Both series must have at least 2 positive values. The calculator will automatically pair corresponding elements.
For one degree of freedom (df=1) and significance level α=0.05 the critical value is 3.84. If the calculated χ² > 3.84 we reject H₀ at the 5% level. For α=0.01 the critical value at df=1 is 6.63.
The null hypothesis H₀ in a goodness-of-fit chi-square test states that the observed distribution matches the expected one — any deviations are due purely to random sampling variation. The alternative hypothesis H₁ posits a real difference between the distributions.
The goodness-of-fit test checks whether a single categorical variable follows a specified theoretical distribution. The independence test analyses a cross-tabulation of two categorical variables to determine whether they are associated. This calculator performs the goodness-of-fit version.
Results are for informational purposes only. The calculator uses tabulated critical values for df 1–6 and is not a substitute for dedicated statistical software.
Calculate the Pearson correlation coefficient (r) and coefficient of determination (r2) for two data series. Enter values separated by commas — instant result with interpretation, no signup needed.
Calculate standard deviation and variance for a sample or population. Enter numbers separated by commas — instant result, no signup needed.
Calculate the z-score (standardized value) and its corresponding percentile in the normal distribution. Enter the value, mean and standard deviation — instant result.