Comprehensive Study Notes on Statistical Inference, Estimation, and Hypothesis Testing
Foundations of Statistical Inference, Parameter Space, and Sample Space
Statistical Inference Overview (Dated 1/6/26):
- Statistical inference is defined as the scientific process of drawing valid conclusions about the unknown probability distribution of a random variable on the basis of an observed sample.
- Statistical inference is broadly bifurcated into two primary branches:
- Testing of Hypotheses: Deals with the formulation and decision-making framework of either accepting or rejecting a stated statistical hypothesis regarding population characteristics based on sample evidence.
- Estimation: Operates under the premise that the probability density function (pdf) or probability mass function (pmf) of the random variable possesses a known functional mathematical form, yet contains one or more unknown constants known as parameters. Estimation deals with determining suitable values or functions of sample observations to approximate these unknown parameters.
Parameter Space (Dated 6/26):
- If the parameters governing the distribution of a random variable are collectively denoted by , the underlying probability density function is expressed functionally as .
- Definition: The set of all admissible, mathematically valid values that the parameter can assume is formally designated as the parameter space.
- The parameter space is universally symbolized by the capital Greek letter Omega ().
- Any specific parameter value is an element of this space, written mathematically as .
- Canonical Examples of Parameter Spaces:
- Exponential Distribution: For an exponential random variable defined by parameter with pdf for , the parameter must be strictly positive. Hence, the parameter space is .
- Normal Distribution: For a normally distributed random variable governed by mean and variance , the parameter vector is . The mean can take any real value while the variance must be strictly positive, defining the parameter space as .
- Poisson Distribution: For a Poisson random variable , the rate parameter must be strictly positive, yielding the parameter space .
Sample Space and Random Samples:
- If represents a random variable and denotes an observed realization of , theoretically is itself a random variable distributed identically to .
- If a sequence of observations is collected independently on , then constitutes a collection of independent and identically distributed (IID) random variables.
- In the formal discipline of statistical inference, the technical term random sample strictly denotes a collection of IID random variables.
- Definition: The set encompassing all possible realization vectors of across the -dimensional Euclidean product space is termed the sample space, formally denoted by or (-cross product space).
Point Estimation and Criteria of a Good Estimator
Point Estimation Framework (Dated 5/6/26):
- Consider a random variable characterized by a probability density function , where .
- Let represent a real-valued function of the parameter defined over the domain , whose exact numerical value is targeted for estimation (in many standard cases, simplifies to itself).
- In point estimation, a single calculated numerical value is proposed as the optimal approximation of the unknown parameter using sample observations drawn randomly from the parent population.
Distinction Between Estimator, Statistic, and Estimate:
- Estimator: Let denote independent observations on . Any mathematical function that systematically maps the sample space () into the parameter space () is defined as an estimator. An estimator is a rule, formula, or random variable.
- Statistic: Any function of the sample observations that contains no unknown parameters is designated as a statistic (e.g., sample mean , sample variance ).
- Estimate: The specific numerical evaluation produced by the estimator function when calculated for a concrete, realized numerical sample vector is called the estimate.
- Exemplary Case: When estimating the unknown population mean , the sample mean formula functions as the estimator (). When evaluated on a concrete sample dataset, the resulting numerical figure is the estimate of .
Criteria of a Good Estimator (R. A. Fisher's Criteria):
- For any given parameter , an arbitrary number of distinct candidate estimators can be constructed. For instance, in a Poisson population with parameter , candidate estimators include the sample mean, the sample median, and the sample variance.
- To systematically evaluate and rank estimator performance, Sir R. A. Fisher formulated four fundamental criteria that an optimal estimator should fulfill:
- Unbiasedness
- Consistency
- Efficiency
- Sufficiency
- Complementary mathematical criteria utilized in advanced estimation include Minimum Variance, Minimum Mean Square Error (MSE), and Robustness.
Unbiasedness and Estimable Functions
Mathematical Formulation of Unbiasedness:
- Let be a random variable with density , where , and let be an IID random sample of size .
- An estimator is defined to be an unbiased estimator of the parameter if its mathematical expectation is identically equal to the true parameter value across the entire parameter space:
- Similarly, an estimator is an unbiased estimator of a parametric function if and only if:
- Estimable Function: Any parametric function for which there exists at least one estimator satisfying is formally designated as an estimable function.
Bias and Asymptotic Unbiasedness:
- Any estimator that fails to satisfy the condition of unbiasedness is termed a biased estimator.
- If , the non-zero quantity is explicitly defined as the bias of the estimator .
- Asymptotic Unbiasedness: If an estimator is biased for finite sample sizes , but satisfies the expectation condition in the asymptotic limit as approaches infinity: then is designated as an asymptotically unbiased estimator.
Non-Uniqueness of Unbiased Estimators:
- An unbiased estimator for an unknown population parameter is not necessarily unique.
- Proof by Construction: Let be two observations from a population with mean . Consider the estimator . Its expected value is:
- Simultaneously, the full sample mean also satisfies , establishing that multiple distinct unbiased estimators can coexist for the identical parameter.
Proofs and Solved Problems on Unbiasedness:
Problem 1: Unbiasedness of Sample Mean for Population Mean:
Proposition: Let be a random sample of size drawn from a population with mean . Prove that the sample mean is an unbiased estimator of .
Proof: Given that for all , the sample mean is defined as:
Taking mathematical expectations on both sides:
Because , is rigorously an unbiased estimator of .
Problem 2: Bias of Sample Variance in Normal Populations (Dated 8/6/26):
Proposition: For a random sample taken from , demonstrate that the sample variance is a biased estimator of the population variance , and deduce an unbiased estimator.
Proof: By distribution theory, the normalized sample variance statistic follows a chi-square distribution with degrees of freedom:
For a standard chi-square variable , the mean is and variance is . Setting :
Utilizing linearity of expectation:
Because , is a biased estimator of , with bias .
To construct an unbiased estimator, multiply by the reciprocal factor , yielding the sample variance definition :
Thus, is an unbiased estimator of .
Problem 3: Unbiased Estimator of in :
- Proposition: Let be a random sample from . Show that is an unbiased estimator of .
- Proof: For each observation, and . By the variance expansion identity :
- Taking expectation of :
- Hence, is an unbiased estimator of .
Problem 4: Unbiased Estimator of in Bernoulli Populations:
- Proposition: Let be drawn from a Bernoulli distribution with parameter , where . Show that is an unbiased estimator of , where .
- Proof: Since the sum of independent Bernoulli variables is binomial, . The moments are:
- Consider the expectation of the product :
- Dividing by the constant denominator :
- Consequently, is an unbiased estimator of .
Problem 5: Non-linear Transformations of Unbiased Estimators:
- Proposition: If is an unbiased estimator of (), prove that and are biased estimators of and , respectively.
- Proof for : Since is a non-degenerate random variable, its variance is strictly positive:
- Because , is positively biased for .
Proof for : Similarly, the variance of is strictly positive:
Because , is a biased estimator of .
Problem 6: Estimators for Exponential Distribution:
- Let be an IID random sample from an exponential distribution with density for , where and .
- For : The sample mean is . Evaluating expectation: Thus, is an unbiased estimator of .
- For : The variance of is . By variance expansion: Multiplying both sides by : Thus, is an unbiased estimator of .
Problem 7: Geometric Distribution:
- Proposition: Prove that the sample mean is an unbiased estimator of for a geometric distribution with pmf for ().
- Proof: The theoretical population mean of this geometric distribution is . The expected value matches the target parameter identically, confirming is an unbiased estimator of .
Problem 8: Three Unbiased Estimators of Poisson Parameter :
- For a random sample drawn from , where and :
- Sample Mean: , with .
- Single Observation: (or any single observation, or linear pairs such as ), with .
- Sample Variance: . Since for any distribution , and in Poisson , it follows directly that .
Problem 9: Uniform Distribution over :
- For a continuous rectangular distribution over , the -th order statistic is .
- The expected value of the maximum order statistic is .
- Adjusting for bias yields the uniformly minimum-variance unbiased estimator:
Problem 10: UMVUE of in Poisson Populations:
- Let be IID from . Find an unbiased estimator for .
- Step 1 (Sufficient Statistic): By the additive property of independent Poisson variables, the sum is sufficient for and follows a Poisson distribution with parameter :
- Step 2 (Unbiased Condition): Let be the required estimator satisfying :
- Step 3 (Solving the Functional Equation): Factor out :
- Expanding the right-hand side via its Maclaurin Taylor series:
- Equating the coefficients of term-by-term on both sides:
- Substituting , the unique Uniformly Minimum Variance Unbiased Estimator (UMVUE) is:
Consistency of Estimators
Mathematical Formulation of Consistency (Dated 10/6):
- Let represent an IID random sample taken from a population characterized by an unknown parameter .
- Let be an estimator constructed from a sample of size .
- Definition: The estimator sequence is defined to be a consistent estimator of if for every arbitrary positive threshold : or equivalently expressed via the probability of deviation:
- Consistency signifies convergence in probability, symbolized formally as .
- Consistency is strictly a large-sample asymptotic property. It guarantees that as the sample size expands indefinitely, the probability distribution of concentrates entirely in an arbitrarily tight neighborhood around the true parameter .
- If at least one consistent estimator exists for a parameter , an infinite family of consistent estimators can be constructed.
Sufficient Condition for Consistency:
- A general and widely applicable sufficient condition states that an estimator is consistent for if both of the following asymptotic limits hold simultaneously as :
Solved Problems on Consistency:
Problem 1: Consistency of Sample Mean for Normal Mean:
Proposition: For a random sample from , prove that is a consistent estimator of .
Proof: The sampling moments of are:
Taking limits as :
Both criteria of the sufficient condition are satisfied; hence, is a consistent estimator of .
Problem 2: Consistency of Adjusted Estimator in Poisson Populations:
Proposition: For a random sample from , show that is a consistent estimator of .
Proof: The expectation of the estimator is:
The variance of the estimator is:
Since and , is a consistent estimator of .
Problem 3: Consistency of Sample Variance for Normal Variance:
Proposition: Prove that the sample variance is a consistent estimator of in .
Proof: Recall that . Therefore:
Applying the property , the variance of the chi-square statistic is:
Because and , is a consistent estimator of .
Efficiency and Relative Efficiency
Concept and Definition of Efficiency:
- Within the class of all possible unbiased estimators for a given population parameter , efficiency serves as the metric to rank estimators based on their dispersion (variance).
- Let and be two unbiased estimators of the parameter such that .
- Definition: Estimator is defined to be more efficient than if and only if:
- As the sampling variance of an unbiased estimator decreases, its statistical efficiency monotonically increases. The estimator that achieves the theoretical minimum variance within the unbiased class is designated as the most efficient estimator.
Relative Efficiency (RE):
- Let represent the most efficient estimator for the parameter . The relative efficiency of any other competing unbiased estimator with respect to is defined as the ratio of their precisions (inverse variances):
Comparative Problem on Estimator Efficiencies:
- Problem: For a random sample drawn from , evaluate the unbiasedness and compare the relative efficiencies of the following proposed estimators for :
- Evaluation of Unbiasedness: All three estimators are strictly unbiased for .
- Evaluation of Variances:
- Comparison:
- Because , the variances satisfy the strict inequality chain:
- Consequently, has the smallest variance and is strictly more efficient than .
Sufficiency and the Fisher-Neyman Factorization Theorem
Concept of Sufficiency (Dated 17/6):
- Formulated by Sir R. A. Fisher, the concept of sufficiency holds central importance in statistical inference.
- Definition: An estimator (or statistic) is defined to be sufficient for a parameter if it captures all the information regarding that is contained within the sample.
- Once the numerical value of a sufficient statistic is known, no other statistic calculated from the same sample can provide any additional information concerning the parameter .
The Likelihood Function:
- Let be an IID random sample from a population with pdf or pmf , where .
- The joint density of the sample, viewed functionally as a function of the parameter for fixed sample data , is defined as the likelihood function :
Fisher-Neyman Factorization Theorem:
- Statement: A statistic is sufficient for the parameter if and only if the joint likelihood function can be factored into a product of two distinct non-negative functions: where:
- is a non-negative function that depends on the sample data only through the statistic , and explicitly involves the parameter .
- is a non-negative function of the sample observations alone, and is completely independent of the parameter .
- The theorem applies directly when both and are multidimensional vectors.
Solved Factorization Problems:
Problem 1: Exponential Distribution:
Let be drawn from for .
The likelihood function is:
Factoring into the Fisher-Neyman structure:
Here, with , and .
Thus, is a sufficient statistic for .
Problem 2: Poisson Distribution:
Let be drawn from for .
The likelihood function is:
Factoring:
Therefore, is a sufficient statistic for .
Problem 3: Power Function Distribution (Dated 22/6):
Let for and .
The likelihood function is:
Decomposing the terms:
By the factorization theorem, is a sufficient statistic for .
Problem 4: Normal Distribution (Comprehensive Case Study):
Let be drawn from . The density is:
The likelihood function is:
Algebraic Identity for Exponent: Decompose the sum of squared deviations by adding and subtracting :
Because the sum of deviations from the sample mean is identically zero ():
Case A: Unknown, Known: Setting and , it follows that (or ) is sufficient for .
Case B: Unknown, Known: Setting and , is sufficient for .
Case C: Both and Unknown: The entire likelihood depends on the sample exclusively through the pair , or equivalently . Thus, is a joint sufficient statistic for the parameter vector .
Problem 5: Beta Distribution of the First Kind:
Let for , where .
The likelihood function is:
Factoring with , the joint sufficient statistic for the vector is:
Problem 6: Zero-Mean Normal with Parameter :
For , the likelihood is:
The sample data enters solely through , which confirms that is the sufficient statistic for .
Problem 7: Gamma Distribution:
For for , where .
The likelihood function is:
The joint sufficient statistic for is .
Methods of Estimation: Method of Moments
Foundational Framework (Dated 24/6):
- Introduced by the English mathematician Karl Pearson, the Method of Moments equates sample moments to theoretical population moments to estimate parameters.
- Let denote the population density containing unknown parameters.
- Let represent a random sample drawn from this population.
- The theoretical raw moments of the population are defined as:
- The corresponding empirical sample raw moments are given by:
- Estimation Procedure: Equate the first population moments to the first sample moments:
- Alternatively, central moments can be utilized:
- Solving this resulting system of simultaneous equations for the parameters yields the moment estimators .
Properties of Moment Estimators:
- Moment estimators are generally asymptotically unbiased.
- Moment estimators are consistent.
- Under fairly general regularity conditions, the sampling distribution of moment estimators is asymptotically normal.
Solved Moment Estimation Problems:
Problem 1: Poisson Population:
For , the first theoretical moment is .
The first sample moment is .
Equating yields the moment estimator:
Problem 2: Binomial Population:
For where is known, the first population moment is .
The first sample moment is .
Equating moments: .
Problem 3: Normal Population:
To estimate and in , equate the first two moments.
First moment: ; sample moment: . Hence:
Second central moment: ; sample central moment: . Hence:
Problem 4: Discrete Distribution with Quadratic Moment Equation:
Consider a discrete r.v. taking values with probabilities:
A sample of size yielded observed frequencies: the value 1 was observed 10 times, the value 2 was observed 4 times, and the value 0 was observed 11 times ().
Theoretical moment:
Sample mean:
Equating population mean to sample mean:
Applying the quadratic formula with :
Roots: and .
Since represents a probability parameter bounded by , the negative root is discarded, yielding the unique estimate:
Problem 5: Discrete Probability Distribution (Dated 29/6):
Given probability masses for : where . The observed sample frequencies are 1, 5, 7, and 7, respectively (total size ).
Theoretical expectation:
Sample mean:
Equating :
Methods of Estimation: Maximum Likelihood Estimation (MLE)
Foundational Framework (Dated 29/6):
- Let be the pdf of a population governed by parameters , and let be an observed sample.
- The likelihood function is treated as a function of the unknown parameters for the fixed sample observations.
- Definition: Those specific parameter values that maximize the likelihood function are defined as the Maximum Likelihood Estimates (MLE).
Computational Calculus Procedure:
- Because the natural logarithm is a monotonic strictly increasing function of , maximizing is equivalent to maximizing the log-likelihood function .
- Single Parameter Case (): The MLE is found by solving the likelihood equation: subject to the second-order sufficiency condition verifying a local maximum:
- Multi-Parameter Case (): The parameters satisfy the simultaneous gradient system: verified by establishing that the Hessian matrix of second-order partial derivatives is negative definite.
Theoretical Properties of Maximum Likelihood Estimators:
- MLEs are asymptotically unbiased.
- MLEs are consistent.
- MLEs are most efficient (they achieve the minimum asymptotic variance bound).
- MLEs are sufficient, provided a sufficient statistic exists.
- MLEs are asymptotically normally distributed.
Solved Maximum Likelihood Problems:
Problem 1: Poisson Parameter :
Given , the likelihood function is:
Taking natural logarithms on both sides:
Differentiating with respect to and equating to zero:
Verifying second-order derivative:
Numerical Application: For observed values 4, 5, 7, 21, 24, 12, 15, 7, 9, 14 ():
Problem 2: Bernoulli Parameter :
For where , the likelihood is:
Setting , the log-likelihood is:
Differentiating with respect to :
Problem 3: Exponential Distribution Parameter :
For (), the likelihood is:
Log-likelihood:
Differentiating with respect to :
Problem 4: Normal Distribution Parameters and (Essay Question, Dated 1/7/26):
Let be drawn from . The likelihood is:
Log-likelihood:
Estimation of : Differentiating partially with respect to :
Estimation of : Differentiating partially with respect to : Substituting :
Hessian Matrix Verification: Evaluating second partial derivatives:
The resulting Hessian matrix is diagonal with negative eigenvalues: This confirms negative definiteness; hence, and uniquely maximize the likelihood function.
Problem 5: Laplace (Double Exponential) Distribution:
For (), the likelihood is:
Maximizing is equivalent to minimizing the absolute sum of deviations .
From mathematical analysis, the sum of absolute deviations is minimized when deviations are taken from the sample median.
Hence, the MLE is:
Problem 6: Two-Parameter Shifted Exponential Distribution:
For for and .
The likelihood function is:
Differentiating with respect to yields , so differential calculus cannot yield the estimate.
However, is maximized when is minimized, which occurs when is as large as possible.
Because of the domain boundary constraint for all , cannot exceed the smallest sample observation:
Thus, the MLE of is the first order statistic:
Differentiating partially with respect to and substituting :
Order Statistics Notation: For sample , ordered values are .
Problem 7: Rectangular Distribution over (Dated 8/7/26):
- For , where .
- Likelihood function: .
- is maximized when is minimized, subject to the sample constraints:
- The boundaries must coincide with the extreme order statistics:
- Solving this linear system simultaneously:
Problem 8: Uniform Distribution over :
- For for , the likelihood is .
- Maximizing requires minimizing , subject to the domain condition for all .
- Consequently, cannot be smaller than the sample maximum:
Interval Estimation: Confidence Intervals for Single Mean
Interval Estimation Principles (Dated 8/7/26):
- Unlike point estimation, which yields a single approximating number, interval estimation identifies a numerical interval bounded by two statistics and () such that the unknown parameter lies within this interval with a pre-assigned probability :
- The interval is designated as the confidence interval, and the pre-assigned probability () is termed the confidence coefficient.
- Multiple valid confidence intervals can be constructed for the same parameter; the optimal interval is characterized by properties such as minimal expected width (shortness) and numerical stability.
Case 1: Normal Population Mean with Known Variance (Dated 10/7/26):
- Let be a random sample from . The sample mean follows .
- The standardized pivot variable is:
and tail probabilities " />
From the standard normal distribution table, critical values are identified satisfying:
Multiplying across by , subtracting , and multiplying by (which reverses the inequalities):
The confidence limits are:
Standard Critical Values:
- For confidence ():
- For confidence ():
- For confidence ():
Worked Numerical Problems (Known ):
Problem 1: Sample observations: 17, 21, 20, 18, 19, 22, 20, 21, 16, 19 from . Construct a CI for .
- Margin of error:
- Confidence Interval:
Problem 2: A sample of size from has mean . Construct a CI for .
- Margin of error:
- Confidence Interval:
Problem 3 (Sample Size Determination, Dated 15/7): Find the least sample size required such that the length of a CI for the mean of a normal population with standard deviation is strictly less than 6.
- Length of interval:
- Requirement:
- Squaring both sides:
- Since the sample size must be an integer, the least required sample size is .
Case 2: Unknown Variance, Large Sample ():
By the Central Limit Theorem and Slutsky's Theorem, the unknown is replaced by the sample standard deviation :
The resulting confidence limits are:
- Case 3: Unknown Variance, Small Sample ():
When sampling from a normal population with unknown variance and small sample size, the standardized variable follows Student's -distribution with degrees of freedom: where and .
showing two-tailed critical regions" />
- From the -distribution table with degrees of freedom, critical values satisfy:
- The confidence limits are:
- Numerical Problem: A sample of size has mean and sample variance (). Construct a CI for .
- Degrees of freedom: .
- For , the critical table value is .
- Margin of error:
- Confidence Interval:
Interval Estimation: Confidence Intervals for Difference of Means
Case 1: Population Variances Known ( Known) (Dated 17/7/26):
- Independent random samples of sizes and drawn from and .
- Difference statistic: , with moments:
- Standardized pivot statistic:
- Confidence limits for :
Case 2: Population Variances Unknown, Large Samples ():
- Unknown population variances are replaced by sample variances and :
- Problem (Army Prisoners Study, Dated 22/7/26): Psychological test administered to two groups:
- First offenders:
- Recidivists:
- Difference of means:
- Standard Error:
- For confidence ():
Case 3: Population Variances Unknown but Equal (), Small Samples ():
- The unknown common variance is estimated by the pooled variance estimator :
- The test statistic follows Student's -distribution with degrees of freedom:
- Confidence limits:
- Problem (Small Sample Study): Sample 1: . Sample 2: . Normal populations with equal unknown variance. Prepare a CI for .
- Degrees of freedom: .
- Pooled variance: .
- Critical value: .
- Mean difference: .
- Margin of error:
- Confidence Interval: .
- Problem (Boys vs. Girls Examination Marks): 32 boys scored mean with SD . 32 girls scored mean with SD . Construct a CI for assuming equal population SD.
- .
- Pooled variance:
- Mean difference: .
- Margin of error:
- Confidence Interval: .
Interval Estimation: Confidence Intervals for Proportions
Confidence Interval for Population Proportion (Dated 24/7):
- Let be the number of successes in independent Bernoulli trials with probability of success , so .
- When is sufficiently large, the normal approximation applies: , where .
- The sample proportion is , with theoretical moments:
- Standardized normal pivot:
- Because and are unknown, they are replaced by their unbiased sample estimators and :
- Problem (Mortality Rate Study): In a clinical study of patients, 57 failed to recover from a disease. Construct a CI for the true mortality rate .
- Sample proportion: , .
- Level of significance: .
- Standard Error: .
- Margin of Error: .
- Confidence Interval: .
Confidence Interval for Difference of Two Proportions:
- Independent samples of sizes and with observed proportions and from binomial populations with parameters and .
- Moments: , .
- Confidence limits:
- Problem (Brand Preference Survey, Dated 27/7): In City 1, 188 of 400 individuals preferred Brand A soap (). In City 2, 210 of 500 individuals preferred Brand A soap (). Construct a CI for .
- Proportions: , ; , .
- Difference: .
- Standard Error:
- Margin of Error: .
- Confidence Interval: .
Applications of Chi-Square Distribution and Test of Goodness of Fit
Applications of the Chi-Square () Distribution (Dated 27/7/26):
- The chi-square distribution serves as a foundational pillar in statistical inference, having six major operational applications:
- Test of Goodness of Fit: Determines whether observed empirical sample frequencies conform to an assumed theoretical probability distribution.
- Test of Independence of Attributes: Assesses whether two categorical classifications are statistically independent.
- Test of Homogeneity: Verifies whether distinct sub-populations share identical distributions across a categorical attribute.
- Testing Population Variance: Evaluates hypotheses regarding the variance (or standard deviation) of a normal population.
- Construction of Confidence Intervals for Variance: Establishes interval bounds for population variance .
- Analysis of Contingency Tables: Analyzes bivariate frequency tables to detect association between qualitative variables.
Karl Pearson's Chi-Square Test of Goodness of Fit:
- The test statistic is formulated as: where denotes observed frequency in the -th class, denotes corresponding expected theoretical frequency, and denotes total number of classes.
- Under the null hypothesis, the statistic follows an asymptotic chi-square distribution with degrees of freedom: where represents the number of independent population parameters that must be estimated from the sample data to evaluate the theoretical probabilities .
- Validity Conditions for the Test:
- Sample observations must be mutually independent.
- The total frequency must be relatively large ().
- Every individual theoretical frequency must be at least 5 ().
- Pooling of Classes: If any calculated theoretical frequency falls below 5 (), it must be pooled (combined) with adjacent classes. Both observed and expected frequencies of adjacent classes are summed together. This pooling reduces the effective number of classes , correspondingly reducing the degrees of freedom.
- Decision Rule: Reject the null hypothesis at significance level if the calculated exceeds the critical upper-tail table value:
Solved Goodness of Fit Problems:
Problem 1: Family Birth Distribution (Dated 29/7/26):
Hypothesis: A survey of 800 families with four children each recorded the distribution of male births. Test whether male and female births are equally probable ().
Theoretical model: with pmf .
- , , , , .
Expected frequencies ():
Observed frequencies: ().
Calculation of Chi-Square Terms:
- :
- :
- :
- :
- :
Calculated statistic: .
Degrees of freedom: (probabilities known a priori without estimation), .
Table value at : .
Decision: Because , the null hypothesis is rejected. Male and female births are not equally probable.
Problem 2: Fitting Poisson Distribution to Book Proofreading Errors:
In a sample of 392 pages of a book, errors per page had frequencies: ().
Step 1: Estimate Parameter : Mean error per page:
Step 2: Theoretical Probabilities and Expected Frequencies:
Step 3: Pooling Classes with :
- Classes for have individual expected counts below 5. Group them into a combined class "":
Step 4: Chi-Square Table (4 Effective Classes):
- :
- :
- :
- :
Total calculated statistic: .
Degrees of freedom: ( estimated), .
Critical value at : .
Decision: Because , the null hypothesis is rejected. The errors do not follow a Poisson distribution.
Problem 3: Examination Results Conformance:
In a sample of 200 students, results were: 46 failed, 68 secured third division, 62 secured second division, and 24 secured first division (). Test if this conforms to the general population ratio 4:3:2:1.
Sum of ratio parts: .
Expected counts:
- Failed:
- 3rd Division:
- 2nd Division:
- 1st Division:
Chi-Square Terms:
- Failed:
- 3rd Division:
- 2nd Division:
- 1st Division:
Total calculated statistic: .
Degrees of freedom: , .
Table value at : .
Decision: Because , reject . The exam results do not commensurate with the general examination ratio.
Problem 4: Coin Tossing Experiment (Dated 5/7/26):
Four coins tossed 80 times yielded head frequencies: 0 heads: 4; 1 head: 20; 2 heads: 32; 3 heads: 18; 4 heads: 6 (). Test at level if coins are unbiased.
Model under (): .
Expected counts ():
All expected counts meet , satisfying validity without pooling.
Chi-Square Test for Independence of Attributes and Contingency Tables
Structure of Contingency Tables (Dated 2/9/26):
- When observations are cross-classified simultaneously according to two qualitative characteristics (attributes)—one structured along rows and the other along columns—the resulting two-way frequency display is called an contingency table.
- Let denote the observed frequency in the cell belonging to row and column .
- Row totals are denoted , column totals are , and grand total is .
- Under the null hypothesis that the row attribute and column attribute are statistically independent, the theoretical expected frequency for cell is:
- The chi-square test statistic is: with degrees of freedom given by:
Comprehensive Solved Example: Weight vs. Intelligence ( Table):
- Data classifies 100 individuals () across five weight intervals () and three intelligence levels (Intelligent, Average, Low).
- Column marginal totals: Intelligent , Average , Low ().
- Row marginal totals: ; ; ; ; .
- Expected frequency calculations ():
- Row 1 (): ; ;
- Row 2 (): ; ;
- Row 3 (): ; ;
- Row 4 (): ; ;
- Row 5 (): ; ;
- Total calculated test statistic across all 15 cells: .
- Degrees of freedom: .
- Critical value from chi-square table at level (): .
- Decision: Since , the null hypothesis is not rejected. Intelligence and weight are statistically independent.
Contingency Tables and Yates' Correction for Continuity:
In a table, the degrees of freedom is .
When sample cell frequencies are small, Karl Pearson's standard continuous chi-square statistic overestimates significance. In 1934, Frank Yates established a continuity correction for tables.
Yates' Corrected Formula: where cell frequencies are structured as:
Cell , Cell , Row 1 Total
Cell , Cell , Row 2 Total
Column 1 Total , Column 2 Total , Grand Total
The Clinical Trial Dilemma (Reversal of Decision):
Experiment: In a clinical pilot study of 15 patients (), patients received either a New Drug or a Placebo, with recovery status recorded:
- New Drug: Recovered (), Not Recovered (); Total
- Placebo: Recovered (), Not Recovered (); Total
- Column Totals: Recovered , Not Recovered ; Grand Total
Hypotheses: : Drug and recovery status are independent (the drug has no effect). : Drug and recovery status are associated.
Standard Analysis Without Yates' Correction:
- Expected counts: , , ,
- Critical value for at is .
- Decision without correction: Reject , concluding a statistically significant drug effect.
Analysis With Yates' Continuity Correction:
- Cross product difference:
- Applying continuity correction:
- Squared term:
- Numerator:
- Denominator:
- Corrected statistic:
- Comparison with table value: .
- Decision with correction: Fail to reject , concluding no statistically significant association.
Critical Takeaway: Applying Yates' correction reversed the experimental decision from a finding of "significant association" to "no significant association", preventing a false positive conclusion in small-sample clinical analysis.