Genetics for Medical Students: Chi-Square Test and Statistical Analysis Notes (copy)
Definition and Fundamental Applications of the Chi-Square Test
Definition: A chi-square test is a statistical test used to compare observed results with expected results.
Primary Purpose: To determine if a difference between observed data and expected data is due to chance, or if it is due to a relationship between the variables being studied.
General Application in Genetics:
Analyzing Mendelian inheritance patterns.
Determining if observed genetic crosses align with expected ratios.
Understanding gene expression and inheritance mechanisms.
Pearson’s Chi-Square Tests: This is one of the most common applications of chi-square distributions. These are statistical tests designed for categorical data to determine whether the data significantly differs from what was expected.
Frequency Distribution Hypotheses: The test is used to address questions such as:
Does the frequency distribution of kernel colour in maize follow a hypothetical genetic ratio?
Do individuals from several treatments in the same experiment belong to the same population distribution?
Are the frequency distributions of two or more populations independent of each other?
Classification of Experimental Data: Measurement vs. Attribute
Measurement Data: Data specified along a continuous numerical scale. Examples include:
Yield.
Plant height.
Protein content.
Attribute Data: Concerned with a finite number of discrete classes. Classes are often defined by the presence or absence of an attribute. Examples include:
Two-class systems: Male or female, success or failure, effective or ineffective, dead or alive.
Multiple-class systems: Varietal classification, colour classification.
Classification Criteria:
One-way classification: Only one criterion is used (e.g., presence/absence of one character, colour classification of plant tissue, or tenure status of farmers).
Two-way (and higher) classification: More than one criterion is used to specify the classes.
Discrete Classification of Quantitative Measurements: In special cases, quantitative data can be grouped into discrete classes:
Classifying plants into three height classes (, , and ) instead of measuring in centimeters ().
Scoring vertical resistance to insect pests on a scale from through instead of measuring the actual percentage of plant damage.
Statistical Tests for Homogeneity of Variance (Bartlett’s Test)
Bartlett’s Test: A statistical procedure for testing the equality (homogeneity) of several variances.
Usage in Agricultural Research:
Verifying homogeneity of variances as a requirement for a valid analysis of variance ().
Verifying homogeneity of error variances when combining data from a series of experiments.
Verifying homogeneity of variances in genetic studies where materials consist of genotypes from different filial generations.
Verifying homogeneity of sampling variances among samples taken from two or more populations.
Application Constraint: The chi-square test for homogeneity of variances is applied whenever more than two variances are tested.
Probability Distributions in Agricultural Research
Test of Goodness of Fit: Determines whether a set of observed data conforms to a specified probability distribution.
Normal Distribution:
The most important continuous distribution in agricultural research (e.g., data on rice yield or protein).
Characteristics: Bell-shaped, asymmetric (according to the transcript), and governed by two parameters ( and ).
Poisson Distribution:
A discrete distribution used to represent the occurrence of rare events over space or time (e.g., spatial distribution of weeds in a rice field, insects caught in traps).
Characteristics: Governed by a single parameter which serves as both the and the .
Mathematical Formula and the Null Hypothesis
The Null Hypothesis (): States that there is no significant difference between the expected and observed results.
Chi-Square Formula:
Alternative notation: Chi-square is the sum of the squared difference between observed () and expected () data (the deviation, ), divided by the expected data in all possible categories.
General Formula for Test Statistic:
: Observed frequency count for the level.
: Expected frequency count for the level.
Case Study: Mendelian Inheritance in Pea Plants
Scenario: A cross between two pea plants yields plants: with green seeds and with yellow seeds.
Hypothesis: The allele for green is dominant to yellow ( is dominant), and both parents are heterozygous.
Predicted Ratio: ( green; yellow).
Expected Numerical Values:
Green seeds:
Yellow seeds:
Chi-Square Calculation (Table 1):
Green: Observed (), Expected (), Deviation (), Deviation squared (),
Yellow: Observed (), Expected (), Deviation (), Deviation squared (),
Total
Interpretation:
Degrees of Freedom (): .
P-Value: At and , the value is approximately .
Result: Since p > 0.05 ( chance), the deviation is non-significant and consistent with Mendel's Law.
Step-by-Step Procedure for Hypothesis Testing
State the Hypothesis: Define the null hypothesis and predicted results.
Gather Data: Conduct experiments or use provided data.
Determine Expected Numbers: Calculate expected values () for each class. Use numerical values, not percentages.
Constraint: Chi-square should not be calculated if the expected value in any category is less than .
Calculate : Complete calculations to three significant digits; round the final answer to two significant digits.
Determine Significance:
Calculate degrees of freedom ().
Locate the value in the chi-square distribution table.
Find the associated value.
State Conclusion:
If p > 0.05: Accept the hypothesis (deviation is due to chance alone).
If p < 0.05: Reject the hypothesis (factors other than chance are operating).
Statistical Tables: Chi-Square Distribution
Degrees of Freedom () | 0.95 | 0.90 | 0.80 | 0.70 | 0.50 | 0.30 | 0.20 | 0.10 | 0.05 | 0.01 | 0.001 |
|---|---|---|---|---|---|---|---|---|---|---|---|
1 | 0.004 | 0.02 | 0.06 | 0.15 | 0.46 | 1.07 | 1.64 | 2.71 | 3.84 | 6.64 | 10.83 |
3 | 0.35 | 0.58 | 1.01 | 1.42 | 2.37 | 3.66 | 4.64 | 6.25 | 7.82 | 11.34 | 16.27 |
4 | 0.71 | 1.06 | 1.65 | 2.20 | 3.36 | 4.88 | 5.99 | 7.78 | 9.49 | 13.28 | 18.47 |
5 | 1.14 | 1.61 | 2.34 | 3.00 | 4.35 | 6.06 | 7.29 | 9.24 | 11.07 | 15.09 | 20.52 |
6 | 1.63 | 2.20 | 3.07 | 3.83 | 5.35 | 7.23 | 8.56 | 10.64 | 12.59 | 16.81 | 22.46 |
7 | 2.17 | 2.83 | 3.82 | 4.67 | 6.35 | 8.38 | 9.80 | 12.02 | 14.07 | 18.48 | 24.32 |
8 | 2.73 | 3.49 | 4.59 | 5.53 | 7.34 | 9.52 | 11.03 | 13.36 | 15.51 | 20.09 | 26.12 |
9 | 3.32 | 4.17 | 5.38 | 6.39 | 8.34 | 10.66 | 12.24 | 14.68 | 16.92 | 21.67 | 27.88 |
10 | 3.94 | 4.86 | 6.18 | 7.27 | 9.34 | 11.78 | 13.44 | 15.99 | 18.31 | 23.21 | 29.59 |
Note: The values between and are generally non-significant. Values at and below are significant.
Advanced Case Study: Acme Toy Company Baseball Cards
The Claim: 30% rookies, 60% veterans, 10% All-Stars.
Random Sample (): 50 rookies, 45 veterans, 5 All-Stars.
Hypotheses:
: , ,
: At least one of the proportions in the null hypothesis is false.
Degrees of Freedom (): .
Expected Frequencies ():
Statistical Calculation:
Interpretation:
P(\chi^2 > 19.58) = 0.0001.
Since 0.0001 < 0.05, the researcher rejects the null hypothesis.
Condition Check: The method is appropriate because:
Simple random sampling was used.
Variable is categorical.
All expected frequencies are .
The Contingency Test (Chi-Square Test of Independence)
Definition: A test used to determine if there is a relationship between two categorical variables.
Contingency Table: A table displaying the frequencies of two or more categorical variables, helping to visualize relationships.
Independence: Two variables are independent if the occurrence of one does not affect the probability of the other.
Applications:
Social Sciences: Relationships between demographics and opinions/behaviors.
Medical Research: Associations between risk factors and disease outcomes; treatment effectiveness across groups.
Marketing: Customer preferences, purchase patterns, and advertising effectiveness.
Biology: Gene expression patterns or genetic variations across cell types.
Cybersecurity: Comparing pre- and post-attack data to assess security effectiveness.
Cryptanalysis: Comparing plaintext and ciphertext distributions to assess cipher strength.
Cipher: An algorithm used to encrypt/encode a message into ciphertext to protect confidentiality.
Plaintext: The original, unreadable content requiring a decryption algorithm and key to access.
Goodness-of-Fit: Comparing observed frequencies with theoretical distributions (e.g., binomial).
Example Scenario: A study investigating the relationship between gender and movie preference (action, comedy, drama). The test determines if preferences are genuine relationships or random chance.