Exam - Semester Examination
Session - May 2025
Question 1 (20 Marks)
Question Statement
i) The competitors in a musical contest were ranked by the by 3 judges. Which pair of judges have more or less the same taste in music? (12 Marks)
RankbyJudgeA: 6 5 3 10 2 4 9 7 8 1
RankbyJudgeB: 5 8 4 7 10 2 1 6 9 3
RankbyJudgeC: 4 9 8 1 2 3 10 5 7 6
ii) Explain coefficient of skewness and kurtosis and their role in analyzing the data. (8 Marks)
Solution 1 (20 Marks)
(i) Spearman's Rank Correlation Analysis Among Judges (12 Marks)
Let R A , R B , R C R_A, R_B, R_C R A , R B , R C denote the ranks assigned by Judge A, Judge B, and Judge C to N = 10 N = 10 N = 10 competitors.
Spearman's rank correlation coefficient between two judges X X X and Y Y Y is:
ρ = 1 − 6 ∑ d 2 N ( N 2 − 1 ) \rho = 1 - \frac{6 \sum d^2}{N(N^2 - 1)} ρ = 1 − N ( N 2 − 1 ) 6 ∑ d 2
where d = R X − R Y d = R_X - R_Y d = R X − R Y and N ( N 2 − 1 ) = 10 ( 100 − 1 ) = 990 N(N^2 - 1) = 10(100 - 1) = \mathbf{990} N ( N 2 − 1 ) = 10 ( 100 − 1 ) = 990 .
2. Rank Difference Computations
Competitor R A R_A R A R B R_B R B R C R_C R C d A B = R A − R B d_{AB} = R_A - R_B d A B = R A − R B d A B 2 d_{AB}^2 d A B 2 d B C = R B − R C d_{BC} = R_B - R_C d B C = R B − R C d B C 2 d_{BC}^2 d B C 2 d A C = R A − R C d_{AC} = R_A - R_C d A C = R A − R C d A C 2 d_{AC}^2 d A C 2 1 6 5 4 + 1 +1 + 1 1 + 1 +1 + 1 1 + 2 +2 + 2 4 2 5 8 9 − 3 -3 − 3 9 − 1 -1 − 1 1 − 4 -4 − 4 16 3 3 4 8 − 1 -1 − 1 1 − 4 -4 − 4 16 − 5 -5 − 5 25 4 10 7 1 + 3 +3 + 3 9 + 6 +6 + 6 36 + 9 +9 + 9 81 5 2 10 2 − 8 -8 − 8 64 + 8 +8 + 8 64 0 0 0 0 6 4 2 3 + 2 +2 + 2 4 − 1 -1 − 1 1 + 1 +1 + 1 1 7 9 1 10 + 8 +8 + 8 64 − 9 -9 − 9 81 − 1 -1 − 1 1 8 7 6 5 + 1 +1 + 1 1 + 1 +1 + 1 1 + 2 +2 + 2 4 9 8 9 7 − 1 -1 − 1 1 + 2 +2 + 2 4 + 1 +1 + 1 1 10 1 3 6 − 2 -2 − 2 4 − 3 -3 − 3 9 − 5 -5 − 5 25 Total - - - - ∑ d A B 2 = 158 \sum d_{AB}^2 = \mathbf{158} ∑ d A B 2 = 158 - ∑ d B C 2 = 214 \sum d_{BC}^2 = \mathbf{214} ∑ d B C 2 = 214 - ∑ d A C 2 = 158 \sum d_{AC}^2 = \mathbf{158} ∑ d A C 2 = 158
3. Correlation Coefficients
Between Judge A and Judge B:
ρ A B = 1 − 6 × 158 990 = 1 − 948 990 = 42 990 = 7 165 ≈ + 0.0424 \rho_{AB} = 1 - \frac{6 \times 158}{990} = 1 - \frac{948}{990} = \frac{42}{990} = \frac{7}{165} \approx \mathbf{+0.0424} ρ A B = 1 − 990 6 × 158 = 1 − 990 948 = 990 42 = 165 7 ≈ + 0.0424
Between Judge B and Judge C:
ρ B C = 1 − 6 × 214 990 = 1 − 1284 990 = 1 − 1.2970 = − 294 990 = − 49 165 ≈ − 0.2970 \rho_{BC} = 1 - \frac{6 \times 214}{990} = 1 - \frac{1284}{990} = 1 - 1.2970 = -\frac{294}{990} = -\frac{49}{165} \approx \mathbf{-0.2970} ρ B C = 1 − 990 6 × 214 = 1 − 990 1284 = 1 − 1.2970 = − 990 294 = − 165 49 ≈ − 0.2970
Between Judge A and Judge C:
ρ A C = 1 − 6 × 158 990 = 1 − 948 990 = 42 990 = 7 165 ≈ + 0.0424 \rho_{AC} = 1 - \frac{6 \times 158}{990} = 1 - \frac{948}{990} = \frac{42}{990} = \frac{7}{165} \approx \mathbf{+0.0424} ρ A C = 1 − 990 6 × 158 = 1 − 990 948 = 990 42 = 165 7 ≈ + 0.0424
4. Conclusion
ρ A B = ρ A C = + 0.0424 > 0 \rho_{AB} = \rho_{AC} = +0.0424 > 0 ρ A B = ρ A C = + 0.0424 > 0 , indicating positive (though weak) agreement between Judge A and Judge B, as well as between Judge A and Judge C.
ρ B C = − 0.2970 < 0 \rho_{BC} = -0.2970 < 0 ρ B C = − 0.2970 < 0 , indicating opposite musical preferences between Judge B and Judge C.
Result: Judge A and Judge B (and equally Judge A and Judge C ) have more or less the same taste in music.
(ii) Coefficients of Skewness and Kurtosis in Data Analysis (8 Marks)
1. Coefficient of Skewness
Skewness measures the degree of asymmetry of a distribution around its mean.
Karl Pearson's Formula:
S k p = Mean − Mode σ or 3 ( Mean − Median ) σ Sk_p = \frac{\text{Mean} - \text{Mode}}{\sigma} \quad \text{or} \quad \frac{3(\text{Mean} - \text{Median})}{\sigma} S k p = σ Mean − Mode or σ 3 ( Mean − Median )
Moment-Based Measure (β 1 , γ 1 \beta_1, \gamma_1 β 1 , γ 1 ):
γ 1 = β 1 = μ 3 μ 2 3 / 2 = μ 3 σ 3 \gamma_1 = \sqrt{\beta_1} = \frac{\mu_3}{\mu_2^{3/2}} = \frac{\mu_3}{\sigma^3} γ 1 = β 1 = μ 2 3/2 μ 3 = σ 3 μ 3
Interpretation:
γ 1 = 0 \gamma_1 = 0 γ 1 = 0 : Symmetric distribution (Normal distribution).
γ 1 > 0 \gamma_1 > 0 γ 1 > 0 : Positively skewed (tail extends to the right; Mean > Median > Mode \text{Mean} > \text{Median} > \text{Mode} Mean > Median > Mode ).
γ 1 < 0 \gamma_1 < 0 γ 1 < 0 : Negatively skewed (tail extends to the left; Mean < Median < Mode \text{Mean} < \text{Median} < \text{Mode} Mean < Median < Mode ).
2. Coefficient of Kurtosis
Kurtosis measures the peakedness and tail-weight (outlier proneness) of a frequency distribution relative to a normal curve.
Moment-Based Measure (β 2 , γ 2 \beta_2, \gamma_2 β 2 , γ 2 ):
β 2 = μ 4 μ 2 2 = μ 4 σ 4 , γ 2 = β 2 − 3 \beta_2 = \frac{\mu_4}{\mu_2^2} = \frac{\mu_4}{\sigma^4}, \quad \gamma_2 = \beta_2 - 3 β 2 = μ 2 2 μ 4 = σ 4 μ 4 , γ 2 = β 2 − 3
Interpretation:
β 2 = 3 \beta_2 = 3 β 2 = 3 (γ 2 = 0 \gamma_2 = 0 γ 2 = 0 ): Mesokurtic (standard Gaussian bell shape).
β 2 > 3 \beta_2 > 3 β 2 > 3 (γ 2 > 0 \gamma_2 > 0 γ 2 > 0 ): Leptokurtic (sharp central peak with heavy, fat tails; indicates high outlier probability).
β 2 < 3 \beta_2 < 3 β 2 < 3 (γ 2 < 0 \gamma_2 < 0 γ 2 < 0 ): Platykurtic (flat-topped curve with thin, light tails).
Examiner's Note
Notice that ∑ d A B 2 = ∑ d A C 2 = 158 ⟹ ρ A B = ρ A C = + 0.0424 \sum d_{AB}^2 = \sum d_{AC}^2 = 158 \implies \rho_{AB} = \rho_{AC} = +0.0424 ∑ d A B 2 = ∑ d A C 2 = 158 ⟹ ρ A B = ρ A C = + 0.0424 . For part (ii), state the moment ratios β 1 = μ 3 2 μ 2 3 \beta_1 = \frac{\mu_3^2}{\mu_2^3} β 1 = μ 2 3 μ 3 2 and β 2 = μ 4 μ 2 2 \beta_2 = \frac{\mu_4}{\mu_2^2} β 2 = μ 2 2 μ 4 alongside their geometric meanings.
Question 2 (20 Marks)
Question Statement
Explain Baye's theorem with its usefulness. Also solve the following problem. Box 1 contains 1000 bulbs of which 10% are defective. Box 2 contains 2000 bulbs of which 5% are defective. Two bulbs are drawn (without replacement) from a randomly selected box. (i) Find the probability that both balls are defective and (ii) assuming that both are defective, find the probability that they came from box 1. (20 Marks)
Solution 2 (20 Marks)
1. Bayes' Theorem: Statement and Usefulness (6 Marks)
Let B 1 , B 2 , … , B k B_1, B_2, \dots, B_k B 1 , B 2 , … , B k be a set of mutually exclusive and exhaustive events with prior probabilities P ( B i ) > 0 P(B_i) > 0 P ( B i ) > 0 . For any observed event A A A with P ( A ) > 0 P(A) > 0 P ( A ) > 0 :
P ( B i ∣ A ) = P ( B i ) P ( A ∣ B i ) P ( A ) = P ( B i ) P ( A ∣ B i ) ∑ j = 1 k P ( B j ) P ( A ∣ B j ) P(B_i \mid A) = \frac{P(B_i) P(A \mid B_i)}{P(A)} = \frac{P(B_i) P(A \mid B_i)}{\sum_{j=1}^k P(B_j) P(A \mid B_j)} P ( B i ∣ A ) = P ( A ) P ( B i ) P ( A ∣ B i ) = ∑ j = 1 k P ( B j ) P ( A ∣ B j ) P ( B i ) P ( A ∣ B i )
Practical Usefulness:
Inversion of Conditional Probability: Updates prior beliefs (P ( B i ) P(B_i) P ( B i ) ) to posterior probabilities (P ( B i ∣ A ) P(B_i \mid A) P ( B i ∣ A ) ) in light of newly acquired empirical evidence.
Medical Diagnostics & Industrial Quality Control: Computes the probability that a patient has a condition given a positive lab test, or that a defective product originated from a specific machine line.
Event Definitions:
B 1 B_1 B 1 : Box 1 is selected ⟹ P ( B 1 ) = 1 2 = 0.5 \implies P(B_1) = \frac{1}{2} = 0.5 ⟹ P ( B 1 ) = 2 1 = 0.5
B 2 B_2 B 2 : Box 2 is selected ⟹ P ( B 2 ) = 1 2 = 0.5 \implies P(B_2) = \frac{1}{2} = 0.5 ⟹ P ( B 2 ) = 2 1 = 0.5
D D D : Both drawn bulbs are defective.
Box Compositions:
Box 1: N 1 = 1000 N_1 = 1000 N 1 = 1000 total bulbs, 10 % 10\% 10% defective ⟹ 100 \implies 100 ⟹ 100 defective, 900 900 900 non-defective.
Box 2: N 2 = 2000 N_2 = 2000 N 2 = 2000 total bulbs, 5 % 5\% 5% defective ⟹ 100 \implies 100 ⟹ 100 defective, 1900 1900 1900 non-defective.
Conditional Probabilities (Without Replacement):
From Box 1:
P ( D ∣ B 1 ) = ( 100 2 ) ( 1000 2 ) = 100 × 99 1000 × 999 = 9900 999000 = 11 1110 ≈ 0.009910 P(D \mid B_1) = \frac{\binom{100}{2}}{\binom{1000}{2}} = \frac{100 \times 99}{1000 \times 999} = \frac{9900}{999000} = \frac{11}{1110} \approx \mathbf{0.009910} P ( D ∣ B 1 ) = ( 2 1000 ) ( 2 100 ) = 1000 × 999 100 × 99 = 999000 9900 = 1110 11 ≈ 0.009910
From Box 2:
P ( D ∣ B 2 ) = ( 100 2 ) ( 2000 2 ) = 100 × 99 2000 × 1999 = 9900 3998000 = 99 39980 ≈ 0.002476 P(D \mid B_2) = \frac{\binom{100}{2}}{\binom{2000}{2}} = \frac{100 \times 99}{2000 \times 1999} = \frac{9900}{3998000} = \frac{99}{39980} \approx \mathbf{0.002476} P ( D ∣ B 2 ) = ( 2 2000 ) ( 2 100 ) = 2000 × 1999 100 × 99 = 3998000 9900 = 39980 99 ≈ 0.002476
Part (i): Total Probability That Both Bulbs Are Defective (7 Marks)
By the Law of Total Probability:
P ( D ) = P ( B 1 ) P ( D ∣ B 1 ) + P ( B 2 ) P ( D ∣ B 2 ) P(D) = P(B_1) P(D \mid B_1) + P(B_2) P(D \mid B_2) P ( D ) = P ( B 1 ) P ( D ∣ B 1 ) + P ( B 2 ) P ( D ∣ B 2 )
P ( D ) = 1 2 ( 11 1110 ) + 1 2 ( 99 39980 ) = 1 2 ( 0.0099099 + 0.0024762 ) P(D) = \frac{1}{2} \left(\frac{11}{1110}\right) + \frac{1}{2} \left(\frac{99}{39980}\right) = \frac{1}{2} (0.0099099 + 0.0024762) P ( D ) = 2 1 ( 1110 11 ) + 2 1 ( 39980 99 ) = 2 1 ( 0.0099099 + 0.0024762 )
P ( D ) = 1 2 ( 0.0123861 ) ≈ 0.006193 ( 0.6193 % ) P(D) = \frac{1}{2} (0.0123861) \approx \mathbf{0.006193 \ (0.6193\%)} P ( D ) = 2 1 ( 0.0123861 ) ≈ 0.006193 ( 0.6193% )
In exact fractional form:
P ( D ) = 54 , 967 8 , 875 , 560 ≈ 0.006193 P(D) = \frac{54,967}{8,875,560} \approx \mathbf{0.006193} P ( D ) = 8 , 875 , 560 54 , 967 ≈ 0.006193
(Large-population binomial approximation: P ( D ∣ B 1 ) = 0.10 2 = 0.01 P(D \mid B_1) = 0.10^2 = 0.01 P ( D ∣ B 1 ) = 0.1 0 2 = 0.01 , P ( D ∣ B 2 ) = 0.05 2 = 0.0025 ⟹ P ( D ) = 0.5 ( 0.01 + 0.0025 ) = 0.00625 P(D \mid B_2) = 0.05^2 = 0.0025 \implies P(D) = 0.5(0.01 + 0.0025) = \mathbf{0.00625} P ( D ∣ B 2 ) = 0.0 5 2 = 0.0025 ⟹ P ( D ) = 0.5 ( 0.01 + 0.0025 ) = 0.00625 )
Part (ii): Posterior Probability That Both Came from Box 1 (7 Marks)
Applying Bayes' Theorem:
P ( B 1 ∣ D ) = P ( B 1 ) P ( D ∣ B 1 ) P ( D ) P(B_1 \mid D) = \frac{P(B_1) P(D \mid B_1)}{P(D)} P ( B 1 ∣ D ) = P ( D ) P ( B 1 ) P ( D ∣ B 1 )
P ( B 1 ∣ D ) = 1 2 × 11 1110 54 , 967 8 , 875 , 560 = 3 , 998 4 , 997 ≈ 0.8001 ( 80.01 % ) P(B_1 \mid D) = \frac{\frac{1}{2} \times \frac{11}{1110}}{\frac{54,967}{8,875,560}} = \frac{3,998}{4,997} \approx \mathbf{0.8001 \ (80.01\%)} P ( B 1 ∣ D ) = 8 , 875 , 560 54 , 967 2 1 × 1110 11 = 4 , 997 3 , 998 ≈ 0.8001 ( 80.01% )
(Using large-population approximation: P ( B 1 ∣ D ) = 0.5 × 0.010 0.00625 = 0.005 0.00625 = 4 5 = 0.8000 ( 80.00 % ) P(B_1 \mid D) = \frac{0.5 \times 0.010}{0.00625} = \frac{0.005}{0.00625} = \frac{4}{5} = \mathbf{0.8000 \ (80.00\%)} P ( B 1 ∣ D ) = 0.00625 0.5 × 0.010 = 0.00625 0.005 = 5 4 = 0.8000 ( 80.00% ) )
Final Answer:
P ( Both Defective ) ≈ 0.006193 P(\text{Both Defective}) \approx \mathbf{0.006193} P ( Both Defective ) ≈ 0.006193 (or 0.00625 \mathbf{0.00625} 0.00625 ).
P ( Box 1 ∣ Both Defective ) ≈ 80.01 % P(\text{Box 1} \mid \text{Both Defective}) \approx \mathbf{80.01\%} P ( Box 1 ∣ Both Defective ) ≈ 80.01% (or 80.00 % \mathbf{80.00\%} 80.00% ).
Examiner's Note
Both the exact sampling without replacement (3998 4997 ≈ 80.01 % \frac{3998}{4997} \approx 80.01\% 4997 3998 ≈ 80.01% ) and the binomial approximation (4 5 = 80.00 % \frac{4}{5} = 80.00\% 5 4 = 80.00% ) yield virtually identical answers due to large lot sizes (1000 1000 1000 and 2000 2000 2000 ). Note that the question prompt prints "both balls" as an exam typo for "both bulbs".
Question 3 (20 Marks)
Question Statement
Explain briefly about the role of binomial, Poisson and normal distributions in data analysis with required examples. (20 Marks)
Solution 3 (20 Marks)
1. The Binomial Distribution (6 Marks)
Definition & Mathematical Model:
Models the number of successes k k k in n n n independent and identical Bernoulli trials with constant probability of success p p p :
P ( X = k ) = ( n k ) p k ( 1 − p ) n − k , k ∈ { 0 , 1 , … , n } P(X = k) = \binom{n}{k} p^k (1 - p)^{n - k}, \quad k \in \{0, 1, \dots, n\} P ( X = k ) = ( k n ) p k ( 1 − p ) n − k , k ∈ { 0 , 1 , … , n }
Mean: μ = n p , Variance: σ 2 = n p q ( Variance < Mean ) \text{Mean: } \mu = np, \quad \text{Variance: } \sigma^2 = npq \quad (\text{Variance } < \text{ Mean}) Mean: μ = n p , Variance: σ 2 = n pq ( Variance < Mean )
Role in Data Analysis:
Binary Outcome Modeling: Serves as the foundation for A/B testing conversion rates, customer churn, and click-through analysis.
Acceptance Sampling in Manufacturing: Evaluates lot quality by determining the probability of observing k k k defective units in a sample of size n n n .
Concrete Example: In clinical trials testing a vaccine with an 80 % 80\% 80% efficacy rate (p = 0.80 p = 0.80 p = 0.80 ) on n = 20 n = 20 n = 20 patients, calculating the probability that at least 18 patients develop immunity.
2. The Poisson Distribution (7 Marks)
Definition & Mathematical Model:
Models the frequency of rare, independent events occurring over a continuous interval of time, area, or volume at a constant average rate λ \lambda λ :
P ( X = k ) = e − λ λ k k ! , k ∈ { 0 , 1 , 2 , … } P(X = k) = \frac{e^{-\lambda} \lambda^k}{k!}, \quad k \in \{0, 1, 2, \dots\} P ( X = k ) = k ! e − λ λ k , k ∈ { 0 , 1 , 2 , … }
Mean: E [ X ] = λ , Variance: Var ( X ) = λ ( Equidispersion ) \text{Mean: } \mathbb{E}[X] = \lambda, \quad \text{Variance: } \operatorname{Var}(X) = \lambda \quad (\text{Equidispersion}) Mean: E [ X ] = λ , Variance: Var ( X ) = λ ( Equidispersion )
Role in Data Analysis:
Arrival Processes & Queueing Theory: Models customer traffic at bank tellers, website server hits per second, and network packet arrivals.
Rare Event Reliability Modeling: Accurately models industrial equipment breakdowns, insurance claims per year, or defects per square meter of fabric.
Concrete Example: If a cloud web server experiences an average of λ = 4 \lambda = 4 λ = 4 downtime incidents per month, calculating the probability of zero incidents in a given month (P ( X = 0 ) = e − 4 ≈ 0.0183 P(X=0) = e^{-4} \approx 0.0183 P ( X = 0 ) = e − 4 ≈ 0.0183 ).
3. The Normal (Gaussian) Distribution (7 Marks)
Definition & Mathematical Model:
The continuous bell-shaped distribution governing continuous variables influenced by multiple additive independent factors:
f ( x ) = 1 σ 2 π exp ( − ( x − μ ) 2 2 σ 2 ) , − ∞ < x < + ∞ f(x) = \frac{1}{\sigma \sqrt{2\pi}} \exp\left(-\frac{(x - \mu)^2}{2\sigma^2}\right), \quad -\infty < x < +\infty f ( x ) = σ 2 π 1 exp ( − 2 σ 2 ( x − μ ) 2 ) , − ∞ < x < + ∞
Mean = Median = Mode = μ , Var ( X ) = σ 2 \text{Mean} = \text{Median} = \text{Mode} = \mu, \quad \operatorname{Var}(X) = \sigma^2 Mean = Median = Mode = μ , Var ( X ) = σ 2
Role in Data Analysis:
Universal Sampling Distribution (Central Limit Theorem): The distribution of sample means X ˉ \bar{X} X ˉ converges to normality as n ≥ 30 n \ge 30 n ≥ 30 , providing the mathematical basis for confidence intervals, Z Z Z -tests, t t t -tests, and regression residual analysis.
Process Capability & Six Sigma: Evaluates industrial quality control limits set at μ ± 3 σ \mu \pm 3\sigma μ ± 3 σ (99.73 % 99.73\% 99.73% process tolerance).
Concrete Example: Modeling the distribution of employee annual salaries or student standardized test scores to construct fair grading curves and identify statistical outliers.
Summary Comparison:
Distribution Type Support Parameters Variance vs. Mean Primary Analytic Role Binomial Discrete k ∈ { 0 , 1 , … , n } k \in \{0, 1, \dots, n\} k ∈ { 0 , 1 , … , n } n , p n, p n , p σ 2 < μ \sigma^2 < \mu σ 2 < μ Proportions and success/failure trials Poisson Discrete k ∈ { 0 , 1 , 2 , … } k \in \{0, 1, 2, \dots\} k ∈ { 0 , 1 , 2 , … } λ \lambda λ σ 2 = μ \sigma^2 = \mu σ 2 = μ Rate of rare events in time/space Normal Continuous x ∈ ( − ∞ , + ∞ ) x \in (-\infty, +\infty) x ∈ ( − ∞ , + ∞ ) μ , σ \mu, \sigma μ , σ Independent CLT inference, errors, parametric modeling
Examiner's Note
Include the probability formulas, moment relations (σ 2 < μ \sigma^2 < \mu σ 2 < μ for Binomial; σ 2 = μ \sigma^2 = \mu σ 2 = μ for Poisson), and concrete numerical examples for each distribution.
Question 4 (20 Marks)
Question Statement
i) Explain power of the statistical testing with examples (10 Marks)
ii) The lifetime of a certain type of battery is normally distributed with mean value 10 hours and standard deviation 1 hour. There are four batteries in a package. What lifetime value is such that the total lifetime of all batteries in a package exceeds that value for only 5% of all packages? (10 Marks)
Solution 4 (20 Marks)
(i) Power of a Statistical Test (10 Marks)
1. Mathematical Definition
The Power of a Hypothesis Test is the probability of correctly rejecting a false null hypothesis:
Power = 1 − β = P ( Reject H 0 ∣ H 1 is true ) \text{Power} = 1 - \beta = P(\text{Reject } H_0 \mid H_1 \text{ is true}) Power = 1 − β = P ( Reject H 0 ∣ H 1 is true )
where β \beta β is the probability of committing a Type II Error (failing to detect a real effect).
2. Decision Matrix
Reality \ Decision Fail to Reject H 0 H_0 H 0 Reject H 0 H_0 H 0 H 0 H_0 H 0 is TrueCorrect Decision (1 − α 1 - \alpha 1 − α ) Type I Error (α \alpha α ) H 0 H_0 H 0 is FalseType II Error (β \beta β ) Power of the Test (1 − β 1 - \beta 1 − β )
3. Determinants of Test Power
Effect Size (δ = μ 1 − μ 0 \delta = \mu_1 - \mu_0 δ = μ 1 − μ 0 ): Larger true differences between groups are easier to detect, yielding higher power.
Sample Size (n n n ): Increasing n n n shrinks standard error (σ / n \sigma / \sqrt{n} σ / n ), tightening the sampling distribution and increasing power.
Significance Level (α \alpha α ): Relaxing α \alpha α from 0.01 0.01 0.01 to 0.05 0.05 0.05 enlarges the rejection region, lowering β \beta β and raising power.
Population Variance (σ 2 \sigma^2 σ 2 ): Lower noise/variability increases test power.
4. Applied Example
In pharmaceutical drug trials, a power of 0.80 0.80 0.80 (80 % 80\% 80% ) means that if a new drug is genuinely effective, the trial has an 80 % 80\% 80% probability of achieving a statistically significant result, with a 20 % 20\% 20% risk of missing the medical breakthrough (β = 0.20 \beta = 0.20 β = 0.20 ).
(ii) Battery Package Lifetime Percentile Calculation (10 Marks)
1. Parameters of Individual Batteries
Let X i X_i X i denote the lifetime of battery i i i in hours:
X i ∼ i.i.d. N ( μ = 10 , σ 2 = 1 2 ) , i ∈ { 1 , 2 , 3 , 4 } X_i \sim \text{i.i.d. } \mathcal{N}(\mu = 10, \sigma^2 = 1^2), \quad i \in \{1, 2, 3, 4\} X i ∼ i.i.d. N ( μ = 10 , σ 2 = 1 2 ) , i ∈ { 1 , 2 , 3 , 4 }
2. Distribution of Total Package Lifetime (T T T )
The package contains n = 4 n = 4 n = 4 independent batteries. The total lifetime is:
T = X 1 + X 2 + X 3 + X 4 T = X_1 + X_2 + X_3 + X_4 T = X 1 + X 2 + X 3 + X 4
By the additive (reproductive) property of independent normal variables:
Mean of Total Lifetime:
μ T = E [ T ] = ∑ i = 1 4 E [ X i ] = 4 × 10 = 40 hours \mu_T = \mathbb{E}[T] = \sum_{i=1}^4 \mathbb{E}[X_i] = 4 \times 10 = \mathbf{40 \text{ hours}} μ T = E [ T ] = ∑ i = 1 4 E [ X i ] = 4 × 10 = 40 hours
Variance of Total Lifetime:
σ T 2 = Var ( T ) = ∑ i = 1 4 Var ( X i ) = 4 × 1 2 = 4 hours 2 \sigma_T^2 = \operatorname{Var}(T) = \sum_{i=1}^4 \operatorname{Var}(X_i) = 4 \times 1^2 = \mathbf{4 \text{ hours}^2} σ T 2 = Var ( T ) = ∑ i = 1 4 Var ( X i ) = 4 × 1 2 = 4 hours 2
Standard Deviation of Total Lifetime:
σ T = 4 = 2 hours \sigma_T = \sqrt{4} = \mathbf{2 \text{ hours}} σ T = 4 = 2 hours
Therefore, T ∼ N ( μ T = 40 , σ T 2 = 4 ) T \sim \mathcal{N}(\mu_T = 40, \sigma_T^2 = 4) T ∼ N ( μ T = 40 , σ T 2 = 4 ) .
3. Determining the 95th Percentile Lifetime Value (t 0 t_0 t 0 )
We seek the value t 0 t_0 t 0 such that the total package lifetime exceeds t 0 t_0 t 0 for only 5 % 5\% 5% of packages:
P ( T > t 0 ) = 0.05 ⟺ P ( T ≤ t 0 ) = 0.95 P(T > t_0) = 0.05 \iff P(T \le t_0) = 0.95 P ( T > t 0 ) = 0.05 ⟺ P ( T ≤ t 0 ) = 0.95
Standardizing to the standard normal variate Z = T − μ T σ T Z = \frac{T - \mu_T}{\sigma_T} Z = σ T T − μ T :
P ( Z ≤ t 0 − 40 2 ) = 0.95 P\left(Z \le \frac{t_0 - 40}{2}\right) = 0.95 P ( Z ≤ 2 t 0 − 40 ) = 0.95
From standard normal distribution tables, the critical value corresponding to a cumulative probability of 0.95 0.95 0.95 is:
z 0.05 = 1.645 z_{0.05} = \mathbf{1.645} z 0.05 = 1.645
Setting up the algebraic equality:
t 0 − 40 2 = 1.645 \frac{t_0 - 40}{2} = 1.645 2 t 0 − 40 = 1.645
t 0 − 40 = 2 × 1.645 = 3.29 t_0 - 40 = 2 \times 1.645 = 3.29 t 0 − 40 = 2 × 1.645 = 3.29
t 0 = 43.29 hours \mathbf{t_0 = 43.29 \text{ hours}} t 0 = 43.29 hours
Conclusion: The lifetime value exceeded by only 5 % 5\% 5% of all packages is 43.29 43.29 43.29 hours .
Examiner's Note
State that variances add for independent variables (σ T 2 = 4 × 1 = 4 ⟹ σ T = 2 \sigma_T^2 = 4 \times 1 = 4 \implies \sigma_T = 2 σ T 2 = 4 × 1 = 4 ⟹ σ T = 2 ). Using critical z = 1.645 z = 1.645 z = 1.645 yields the exact answer t 0 = 40 + 3.29 = 43.29 hours t_0 = 40 + 3.29 = 43.29\text{ hours} t 0 = 40 + 3.29 = 43.29 hours .
Question 5 (20 Marks)
Question Statement
i) Before an increase in excise duty on tea, 800 people out of a sample of 1000 were consumers of tea. After the increase in excise duty, 800 people out of a sample of 1200 were consumers of tea. Find whether there is any significant decrease in the consumption of tea after the increase of excise duty. (8 Marks)
ii) In an epidemic of certain disease, 92 children contacted the disease. Of these 41 received no treatment and of these 10 showed after effects. Of the remainder who did receive the treatment, 17 showed after effects. Test hypothesis that the treatment was not effective. Also explain the uses of chi-square test in different scenarios. (12 Marks)
Solution 5 (20 Marks)
(i) Testing Difference Between Proportions of Tea Consumers (8 Marks)
1. Sample Data
Sample 1 (Before tax increase): n 1 = 1000 , x 1 = 800 ⟹ p 1 = 800 1000 = 0.8000 n_1 = 1000, \quad x_1 = 800 \implies p_1 = \frac{800}{1000} = \mathbf{0.8000} n 1 = 1000 , x 1 = 800 ⟹ p 1 = 1000 800 = 0.8000
Sample 2 (After tax increase): n 2 = 1200 , x 2 = 800 ⟹ p 2 = 800 1200 = 2 3 ≈ 0.6667 n_2 = 1200, \quad x_2 = 800 \implies p_2 = \frac{800}{1200} = \frac{2}{3} \approx \mathbf{0.6667} n 2 = 1200 , x 2 = 800 ⟹ p 2 = 1200 800 = 3 2 ≈ 0.6667
2. Hypotheses
Null Hypothesis (H 0 H_0 H 0 ): P 1 = P 2 P_1 = P_2 P 1 = P 2 (Excise duty increase caused no change in tea consumption).
Alternative Hypothesis (H 1 H_1 H 1 ): P 1 > P 2 P_1 > P_2 P 1 > P 2 (Significant decrease in consumption; one-tailed test).
3. Pooled Proportion and Standard Error
Under H 0 H_0 H 0 , pool both samples:
P ^ = x 1 + x 2 n 1 + n 2 = 800 + 800 1000 + 1200 = 1600 2200 = 8 11 ≈ 0.7273 \hat{P} = \frac{x_1 + x_2}{n_1 + n_2} = \frac{800 + 800}{1000 + 1200} = \frac{1600}{2200} = \frac{8}{11} \approx \mathbf{0.7273} P ^ = n 1 + n 2 x 1 + x 2 = 1000 + 1200 800 + 800 = 2200 1600 = 11 8 ≈ 0.7273
Q ^ = 1 − P ^ = 3 11 ≈ 0.2727 \hat{Q} = 1 - \hat{P} = \frac{3}{11} \approx \mathbf{0.2727} Q ^ = 1 − P ^ = 11 3 ≈ 0.2727
Standard Error of the difference:
SE ( p 1 − p 2 ) = P ^ Q ^ ( 1 n 1 + 1 n 2 ) = ( 8 11 ) ( 3 11 ) ( 1 1000 + 1 1200 ) \text{SE}(p_1 - p_2) = \sqrt{\hat{P}\hat{Q} \left(\frac{1}{n_1} + \frac{1}{n_2}\right)} = \sqrt{\left(\frac{8}{11}\right)\left(\frac{3}{11}\right) \left(\frac{1}{1000} + \frac{1}{1200}\right)} SE ( p 1 − p 2 ) = P ^ Q ^ ( n 1 1 + n 2 1 ) = ( 11 8 ) ( 11 3 ) ( 1000 1 + 1200 1 )
SE = 24 121 × ( 0.001 + 0.0008333 ) = 0.198347 × 0.0018333 = 0.0003636 ≈ 0.01907 \text{SE} = \sqrt{\frac{24}{121} \times \left(0.001 + 0.0008333\right)} = \sqrt{0.198347 \times 0.0018333} = \sqrt{0.0003636} \approx \mathbf{0.01907} SE = 121 24 × ( 0.001 + 0.0008333 ) = 0.198347 × 0.0018333 = 0.0003636 ≈ 0.01907
4. Test Statistic Computation
z = p 1 − p 2 SE = 0.8000 − 0.6667 0.01907 = 0.1333 0.01907 ≈ 6.99 z = \frac{p_1 - p_2}{\text{SE}} = \frac{0.8000 - 0.6667}{0.01907} = \frac{0.1333}{0.01907} \approx \mathbf{6.99} z = SE p 1 − p 2 = 0.01907 0.8000 − 0.6667 = 0.01907 0.1333 ≈ 6.99
5. Statistical Decision
Critical Value: For a one-tailed test at α = 0.05 \alpha = 0.05 α = 0.05 , critical z 0.05 = 1.645 z_{0.05} = 1.645 z 0.05 = 1.645 ; at α = 0.01 \alpha = 0.01 α = 0.01 , critical z 0.01 = 2.33 z_{0.01} = 2.33 z 0.01 = 2.33 .
Since z calc = 6.99 ≫ 2.33 z_{\text{calc}} = 6.99 \gg 2.33 z calc = 6.99 ≫ 2.33 , the result is overwhelmingly statistically significant (p < 0.0001 p < 0.0001 p < 0.0001 ).
Conclusion: Reject H 0 H_0 H 0 . There is a highly significant decrease in the consumption of tea following the increase in excise duty.
(ii) Chi-Square Test for Treatment Effectiveness and Methodological Uses (12 Marks)
1. Contingency Table Construction
Total children N = 92 N = 92 N = 92 .
No Treatment: 41 41 41 children ⟹ 10 \implies 10 ⟹ 10 with after-effects, 31 31 31 without.
Treatment: 92 − 41 = 51 92 - 41 = 51 92 − 41 = 51 children ⟹ 17 \implies 17 ⟹ 17 with after-effects, 34 34 34 without.
Group After Effects (Y = 1 Y=1 Y = 1 ) No After Effects (Y = 0 Y=0 Y = 0 ) Total No Treatment a = 10 a = 10 a = 10 b = 31 b = 31 b = 31 a + b = 41 a + b = \mathbf{41} a + b = 41 Treatment c = 17 c = 17 c = 17 d = 34 d = 34 d = 34 c + d = 51 c + d = \mathbf{51} c + d = 51 Total a + c = 27 a + c = \mathbf{27} a + c = 27 b + d = 65 b + d = \mathbf{65} b + d = 65 N = 92 N = \mathbf{92} N = 92
2. Chi-Square Test Computation
χ 2 = N ( a d − b c ) 2 ( a + b ) ( c + d ) ( a + c ) ( b + d ) \chi^2 = \frac{N (ad - bc)^2}{(a + b)(c + d)(a + c)(b + d)} χ 2 = ( a + b ) ( c + d ) ( a + c ) ( b + d ) N ( a d − b c ) 2
a d − b c = ( 10 × 34 ) − ( 31 × 17 ) = 340 − 527 = − 187 ⟹ ( a d − b c ) 2 = 34 , 969 ad - bc = (10 \times 34) - (31 \times 17) = 340 - 527 = -187 \implies (ad - bc)^2 = 34,969 a d − b c = ( 10 × 34 ) − ( 31 × 17 ) = 340 − 527 = − 187 ⟹ ( a d − b c ) 2 = 34 , 969
Denominator = ( 41 ) ( 51 ) ( 27 ) ( 65 ) = 3 , 668 , 535 \text{Denominator} = (41)(51)(27)(65) = 3,668,535 Denominator = ( 41 ) ( 51 ) ( 27 ) ( 65 ) = 3 , 668 , 535
χ 2 = 92 × 34 , 969 3 , 668 , 535 = 3 , 217 , 148 3 , 668 , 535 ≈ 0.8769 \chi^2 = \frac{92 \times 34,969}{3,668,535} = \frac{3,217,148}{3,668,535} \approx \mathbf{0.8769} χ 2 = 3 , 668 , 535 92 × 34 , 969 = 3 , 668 , 535 3 , 217 , 148 ≈ 0.8769
Decision: For d f = ( 2 − 1 ) ( 2 − 1 ) = 1 df = (2 - 1)(2 - 1) = 1 df = ( 2 − 1 ) ( 2 − 1 ) = 1 at α = 0.05 \alpha = 0.05 α = 0.05 , critical χ 0.05 , 1 2 = 3.841 \chi^2_{0.05, 1} = \mathbf{3.841} χ 0.05 , 1 2 = 3.841 .
Since χ calc 2 = 0.8769 < 3.841 \chi^2_{\text{calc}} = 0.8769 < 3.841 χ calc 2 = 0.8769 < 3.841 , we fail to reject H 0 H_0 H 0 .
Conclusion: The data supports the hypothesis that the treatment was not effective .
3. Uses of the Chi-Square Test in Different Scenarios
Test of Independence of Attributes: Assesses whether two categorical variables (e.g., smoking status and lung cancer) are statistically independent in an r × c r \times c r × c table.
Test of Goodness of Fit: Evaluates whether observed sample frequencies conform to a specified theoretical distribution (Binomial, Poisson, Normal).
Test of Homogeneity: Evaluates whether multiple independent populations share the same underlying proportion distribution across categories.
Test of Population Variance: Tests whether sample variance s 2 s^2 s 2 from a normal population conforms to a hypothesized value σ 0 2 \sigma_0^2 σ 0 2 via χ 2 = ( n − 1 ) s 2 σ 0 2 \chi^2 = \frac{(n-1)s^2}{\sigma_0^2} χ 2 = σ 0 2 ( n − 1 ) s 2 .
Examiner's Note
In part (i), pooling is mandatory under H 0 : P 1 = P 2 H_0: P_1 = P_2 H 0 : P 1 = P 2 , yielding P ^ = 1600 / 2200 = 8 / 11 \hat{P} = 1600/2200 = 8/11 P ^ = 1600/2200 = 8/11 and z = 6.99 z = 6.99 z = 6.99 . In part (ii), listing the 4 distinct uses of χ 2 \chi^2 χ 2 fulfills the second half of the question.
Question 6 (20 Marks)
Question Statement
Two random samples gave the following data. Test whether the population have come from the same population. (20 Marks)
Sample 1: 20 16 26 27 23 22 18 24 25 19
Sample 2: 17 23 32 25 22 24 28 18 31 33 20 27
Solution 6 (20 Marks)
To test whether two independent samples are drawn from the same normal population , we must verify two criteria:
Equality of Variances: σ 1 2 = σ 2 2 \sigma_1^2 = \sigma_2^2 σ 1 2 = σ 2 2 (tested via Snedecor's F F F -test).
Equality of Means: μ 1 = μ 2 \mu_1 = \mu_2 μ 1 = μ 2 (tested via two-sample Student's t t t -test using pooled variance).
1. Sample Summary Statistics (6 Marks)
Sample 1 (n 1 = 10 n_1 = 10 n 1 = 10 ):
Observations: [ 20 , 16 , 26 , 27 , 23 , 22 , 18 , 24 , 25 , 19 ] [20, 16, 26, 27, 23, 22, 18, 24, 25, 19] [ 20 , 16 , 26 , 27 , 23 , 22 , 18 , 24 , 25 , 19 ]
Sum: ∑ X 1 = 20 + 16 + 26 + 27 + 23 + 22 + 18 + 24 + 25 + 19 = 220 \sum X_1 = 20 + 16 + 26 + 27 + 23 + 22 + 18 + 24 + 25 + 19 = \mathbf{220} ∑ X 1 = 20 + 16 + 26 + 27 + 23 + 22 + 18 + 24 + 25 + 19 = 220
Mean:
X ˉ 1 = 220 10 = 22.0 \bar{X}_1 = \frac{220}{10} = \mathbf{22.0} X ˉ 1 = 10 220 = 22.0
Sum of Squared Deviations:
∑ ( X 1 i − X ˉ 1 ) 2 = ( − 2 ) 2 + ( − 6 ) 2 + ( 4 ) 2 + ( 5 ) 2 + ( 1 ) 2 + ( 0 ) 2 + ( − 4 ) 2 + ( 2 ) 2 + ( 3 ) 2 + ( − 3 ) 2 \sum (X_{1i} - \bar{X}_1)^2 = (-2)^2 + (-6)^2 + (4)^2 + (5)^2 + (1)^2 + (0)^2 + (-4)^2 + (2)^2 + (3)^2 + (-3)^2 ∑ ( X 1 i − X ˉ 1 ) 2 = ( − 2 ) 2 + ( − 6 ) 2 + ( 4 ) 2 + ( 5 ) 2 + ( 1 ) 2 + ( 0 ) 2 + ( − 4 ) 2 + ( 2 ) 2 + ( 3 ) 2 + ( − 3 ) 2
∑ ( X 1 i − X ˉ 1 ) 2 = 4 + 36 + 16 + 25 + 1 + 0 + 16 + 4 + 9 + 9 = 120.0 \sum (X_{1i} - \bar{X}_1)^2 = 4 + 36 + 16 + 25 + 1 + 0 + 16 + 4 + 9 + 9 = \mathbf{120.0} ∑ ( X 1 i − X ˉ 1 ) 2 = 4 + 36 + 16 + 25 + 1 + 0 + 16 + 4 + 9 + 9 = 120.0
Unbiased Sample Variance:
s 1 2 = ∑ ( X 1 i − X ˉ 1 ) 2 n 1 − 1 = 120.0 9 = 40 3 ≈ 13.3333 s_1^2 = \frac{\sum (X_{1i} - \bar{X}_1)^2}{n_1 - 1} = \frac{120.0}{9} = \frac{40}{3} \approx \mathbf{13.3333} s 1 2 = n 1 − 1 ∑ ( X 1 i − X ˉ 1 ) 2 = 9 120.0 = 3 40 ≈ 13.3333
Sample 2 (n 2 = 12 n_2 = 12 n 2 = 12 ):
Observations: [ 17 , 23 , 32 , 25 , 22 , 24 , 28 , 18 , 31 , 33 , 20 , 27 ] [17, 23, 32, 25, 22, 24, 28, 18, 31, 33, 20, 27] [ 17 , 23 , 32 , 25 , 22 , 24 , 28 , 18 , 31 , 33 , 20 , 27 ]
Sum: ∑ X 2 = 17 + 23 + 32 + 25 + 22 + 24 + 28 + 18 + 31 + 33 + 20 + 27 = 300 \sum X_2 = 17 + 23 + 32 + 25 + 22 + 24 + 28 + 18 + 31 + 33 + 20 + 27 = \mathbf{300} ∑ X 2 = 17 + 23 + 32 + 25 + 22 + 24 + 28 + 18 + 31 + 33 + 20 + 27 = 300
Mean:
X ˉ 2 = 300 12 = 25.0 \bar{X}_2 = \frac{300}{12} = \mathbf{25.0} X ˉ 2 = 12 300 = 25.0
Sum of Squared Deviations:
∑ ( X 2 i − X ˉ 2 ) 2 = ( − 8 ) 2 + ( − 2 ) 2 + ( 7 ) 2 + ( 0 ) 2 + ( − 3 ) 2 + ( − 1 ) 2 + ( 3 ) 2 + ( − 7 ) 2 + ( 6 ) 2 + ( 8 ) 2 + ( − 5 ) 2 + ( 2 ) 2 \sum (X_{2i} - \bar{X}_2)^2 = (-8)^2 + (-2)^2 + (7)^2 + (0)^2 + (-3)^2 + (-1)^2 + (3)^2 + (-7)^2 + (6)^2 + (8)^2 + (-5)^2 + (2)^2 ∑ ( X 2 i − X ˉ 2 ) 2 = ( − 8 ) 2 + ( − 2 ) 2 + ( 7 ) 2 + ( 0 ) 2 + ( − 3 ) 2 + ( − 1 ) 2 + ( 3 ) 2 + ( − 7 ) 2 + ( 6 ) 2 + ( 8 ) 2 + ( − 5 ) 2 + ( 2 ) 2
∑ ( X 2 i − X ˉ 2 ) 2 = 64 + 4 + 49 + 0 + 9 + 1 + 9 + 49 + 36 + 64 + 25 + 4 = 314.0 \sum (X_{2i} - \bar{X}_2)^2 = 64 + 4 + 49 + 0 + 9 + 1 + 9 + 49 + 36 + 64 + 25 + 4 = \mathbf{314.0} ∑ ( X 2 i − X ˉ 2 ) 2 = 64 + 4 + 49 + 0 + 9 + 1 + 9 + 49 + 36 + 64 + 25 + 4 = 314.0
Unbiased Sample Variance:
s 2 2 = ∑ ( X 2 i − X ˉ 2 ) 2 n 2 − 1 = 314.0 11 ≈ 28.5455 s_2^2 = \frac{\sum (X_{2i} - \bar{X}_2)^2}{n_2 - 1} = \frac{314.0}{11} \approx \mathbf{28.5455} s 2 2 = n 2 − 1 ∑ ( X 2 i − X ˉ 2 ) 2 = 11 314.0 ≈ 28.5455
2. Step 1: Testing Equality of Variances via F F F -Test (7 Marks)
Hypotheses:
H 0 : σ 1 2 = σ 2 2 H_0: \sigma_1^2 = \sigma_2^2 H 0 : σ 1 2 = σ 2 2 (Population variances are equal).
H 1 : σ 1 2 ≠ σ 2 2 H_1: \sigma_1^2 \neq \sigma_2^2 H 1 : σ 1 2 = σ 2 2
Test Statistic (F F F ):
Placing the larger variance in the numerator:
F = s 2 2 s 1 2 = 28.5455 13.3333 ≈ 2.1409 F = \frac{s_2^2}{s_1^2} = \frac{28.5455}{13.3333} \approx \mathbf{2.1409} F = s 1 2 s 2 2 = 13.3333 28.5455 ≈ 2.1409
with degrees of freedom ν 1 = n 2 − 1 = 11 \nu_1 = n_2 - 1 = 11 ν 1 = n 2 − 1 = 11 and ν 2 = n 1 − 1 = 9 \nu_2 = n_1 - 1 = 9 ν 2 = n 1 − 1 = 9 .
Critical Value: At α = 0.05 \alpha = 0.05 α = 0.05 for d f = ( 11 , 9 ) df = (11, 9) df = ( 11 , 9 ) , critical F 0.05 ( 11 , 9 ) ≈ 3.10 F_{0.05}(11, 9) \approx \mathbf{3.10} F 0.05 ( 11 , 9 ) ≈ 3.10 .
Decision: Since F calc = 2.14 < 3.10 F_{\text{calc}} = 2.14 < 3.10 F calc = 2.14 < 3.10 , we fail to reject H 0 H_0 H 0 . The assumption of equal population variances is valid.
3. Step 2: Testing Equality of Means via Two-Sample t t t -Test (7 Marks)
Hypotheses:
H 0 : μ 1 = μ 2 H_0: \mu_1 = \mu_2 H 0 : μ 1 = μ 2 (Population means are equal).
H 1 : μ 1 ≠ μ 2 H_1: \mu_1 \neq \mu_2 H 1 : μ 1 = μ 2
Pooled Sample Variance (s p 2 s_p^2 s p 2 ):
s p 2 = ∑ ( X 1 i − X ˉ 1 ) 2 + ∑ ( X 2 i − X ˉ 2 ) 2 n 1 + n 2 − 2 = 120.0 + 314.0 10 + 12 − 2 = 434.0 20 = 21.70 s_p^2 = \frac{\sum (X_{1i} - \bar{X}_1)^2 + \sum (X_{2i} - \bar{X}_2)^2}{n_1 + n_2 - 2} = \frac{120.0 + 314.0}{10 + 12 - 2} = \frac{434.0}{20} = \mathbf{21.70} s p 2 = n 1 + n 2 − 2 ∑ ( X 1 i − X ˉ 1 ) 2 + ∑ ( X 2 i − X ˉ 2 ) 2 = 10 + 12 − 2 120.0 + 314.0 = 20 434.0 = 21.70
s p = 21.70 ≈ 4.6583 s_p = \sqrt{21.70} \approx \mathbf{4.6583} s p = 21.70 ≈ 4.6583
Standard Error of the Difference:
SE ( X ˉ 1 − X ˉ 2 ) = s p 1 n 1 + 1 n 2 = 4.6583 1 10 + 1 12 = 4.6583 11 60 ≈ 1.9946 \text{SE}(\bar{X}_1 - \bar{X}_2) = s_p \sqrt{\frac{1}{n_1} + \frac{1}{n_2}} = 4.6583 \sqrt{\frac{1}{10} + \frac{1}{12}} = 4.6583 \sqrt{\frac{11}{60}} \approx \mathbf{1.9946} SE ( X ˉ 1 − X ˉ 2 ) = s p n 1 1 + n 2 1 = 4.6583 10 1 + 12 1 = 4.6583 60 11 ≈ 1.9946
Test Statistic (t t t ):
t = X ˉ 1 − X ˉ 2 SE = 22.0 − 25.0 1.9946 = − 3.0 1.9946 ≈ − 1.5041 t = \frac{\bar{X}_1 - \bar{X}_2}{\text{SE}} = \frac{22.0 - 25.0}{1.9946} = \frac{-3.0}{1.9946} \approx \mathbf{-1.5041} t = SE X ˉ 1 − X ˉ 2 = 1.9946 22.0 − 25.0 = 1.9946 − 3.0 ≈ − 1.5041
∣ t ∣ = 1.5041 \lvert t \rvert = \mathbf{1.5041} ∣ t ∣ = 1.5041
Degrees of Freedom: d f = n 1 + n 2 − 2 = 10 + 12 − 2 = 20 df = n_1 + n_2 - 2 = 10 + 12 - 2 = \mathbf{20} df = n 1 + n 2 − 2 = 10 + 12 − 2 = 20 .
Critical Value: For d f = 20 df = 20 df = 20 at α = 0.05 \alpha = 0.05 α = 0.05 (two-tailed), critical t 0.05 , 20 = 2.086 t_{0.05, 20} = \mathbf{2.086} t 0.05 , 20 = 2.086 .
Decision: Since ∣ t ∣ = 1.5041 < 2.086 \lvert t \rvert = 1.5041 < 2.086 ∣ t ∣ = 1.5041 < 2.086 , we fail to reject H 0 H_0 H 0 .
Final Conclusion:
Since neither the variances (F = 2.14 < 3.10 F = 2.14 < 3.10 F = 2.14 < 3.10 ) nor the means (t = − 1.50 < 2.086 t = -1.50 < 2.086 t = − 1.50 < 2.086 ) differ significantly, the two samples can be regarded as having come from the same normal population .
Examiner's Note
"Come from the same population" requires testing BOTH equality of variances (F F F -test) and equality of means (t t t -test). Stating only the t t t -test without verifying variances loses substantial marks.
Question 7 (20 Marks)
Question Statement
The following data is on total Fe for four types of iron formation (1=carbonate, 2=silicate, 3=magnetite, 4=hematite). (20 Marks)
1: 20.5 28.1 27.8 27.0 28.0 25.2 25.3 27.1 20.5 31.3
2: 26.3 24.0 26.2 20.2 23.7 34.0 17.1 26.8 23.7 24.9
3: 29.5 34.0 27.5 29.4 27.9 26.2 29.9 29.5 30.0 35.6
4: 36.5 44.2 34.1 30.3 31.4 33.1 34.1 32.9 36.3 25.5
Carry out an analysis of variance F test at significance level 0.01, and summarize the results in an ANOVA table.
Solution 7 (20 Marks)
1. Data Summary and Group Totals (6 Marks)
Number of groups k = 4 k = 4 k = 4 , sample size per group n = 10 n = 10 n = 10 , total observations N = 4 × 10 = 40 N = 4 \times 10 = \mathbf{40} N = 4 × 10 = 40 .
Formation Type Observations (X i j X_{ij} X ij ) Sum (T j T_j T j ) Mean (X ˉ j \bar{X}_j X ˉ j ) 1: Carbonate 20.5 , 28.1 , 27.8 , 27.0 , 28.0 , 25.2 , 25.3 , 27.1 , 20.5 , 31.3 20.5, 28.1, 27.8, 27.0, 28.0, 25.2, 25.3, 27.1, 20.5, 31.3 20.5 , 28.1 , 27.8 , 27.0 , 28.0 , 25.2 , 25.3 , 27.1 , 20.5 , 31.3 T 1 = 260.80 T_1 = \mathbf{260.80} T 1 = 260.80 X ˉ 1 = 26.08 \bar{X}_1 = \mathbf{26.08} X ˉ 1 = 26.08 2: Silicate 26.3 , 24.0 , 26.2 , 20.2 , 23.7 , 34.0 , 17.1 , 26.8 , 23.7 , 24.9 26.3, 24.0, 26.2, 20.2, 23.7, 34.0, 17.1, 26.8, 23.7, 24.9 26.3 , 24.0 , 26.2 , 20.2 , 23.7 , 34.0 , 17.1 , 26.8 , 23.7 , 24.9 T 2 = 246.90 T_2 = \mathbf{246.90} T 2 = 246.90 X ˉ 2 = 24.69 \bar{X}_2 = \mathbf{24.69} X ˉ 2 = 24.69 3: Magnetite 29.5 , 34.0 , 27.5 , 29.4 , 27.9 , 26.2 , 29.9 , 29.5 , 30.0 , 35.6 29.5, 34.0, 27.5, 29.4, 27.9, 26.2, 29.9, 29.5, 30.0, 35.6 29.5 , 34.0 , 27.5 , 29.4 , 27.9 , 26.2 , 29.9 , 29.5 , 30.0 , 35.6 T 3 = 299.50 T_3 = \mathbf{299.50} T 3 = 299.50 X ˉ 3 = 29.95 \bar{X}_3 = \mathbf{29.95} X ˉ 3 = 29.95 4: Hematite 36.5 , 44.2 , 34.1 , 30.3 , 31.4 , 33.1 , 34.1 , 32.9 , 36.3 , 25.5 36.5, 44.2, 34.1, 30.3, 31.4, 33.1, 34.1, 32.9, 36.3, 25.5 36.5 , 44.2 , 34.1 , 30.3 , 31.4 , 33.1 , 34.1 , 32.9 , 36.3 , 25.5 T 4 = 338.40 T_4 = \mathbf{338.40} T 4 = 338.40 X ˉ 4 = 33.84 \bar{X}_4 = \mathbf{33.84} X ˉ 4 = 33.84 Total - Grand Total G = 1145.60 G = \mathbf{1145.60} G = 1145.60 X ˉ = 28.64 \bar{X} = \mathbf{28.64} X ˉ = 28.64
2. Sums of Squares Calculations (7 Marks)
1. Correction Factor (CF):
CF = G 2 N = ( 1145.60 ) 2 40 = 1 , 312 , 399.36 40 = 32 , 809.9840 \text{CF} = \frac{G^2}{N} = \frac{(1145.60)^2}{40} = \frac{1,312,399.36}{40} = \mathbf{32,809.9840} CF = N G 2 = 40 ( 1145.60 ) 2 = 40 1 , 312 , 399.36 = 32 , 809.9840
2. Raw Sum of Squares (∑ ∑ X i j 2 \sum \sum X_{ij}^2 ∑∑ X ij 2 ):
∑ X 1 2 = 420.25 + 789.61 + 772.84 + 729.00 + 784.00 + 635.04 + 640.09 + 734.41 + 420.25 + 979.69 = 6905.18 \sum X_{1}^2 = 420.25 + 789.61 + 772.84 + 729.00 + 784.00 + 635.04 + 640.09 + 734.41 + 420.25 + 979.69 = \mathbf{6905.18} ∑ X 1 2 = 420.25 + 789.61 + 772.84 + 729.00 + 784.00 + 635.04 + 640.09 + 734.41 + 420.25 + 979.69 = 6905.18
∑ X 2 2 = 691.69 + 576.00 + 686.44 + 408.04 + 561.69 + 1156.00 + 292.41 + 718.24 + 561.69 + 620.01 = 6272.21 \sum X_{2}^2 = 691.69 + 576.00 + 686.44 + 408.04 + 561.69 + 1156.00 + 292.41 + 718.24 + 561.69 + 620.01 = \mathbf{6272.21} ∑ X 2 2 = 691.69 + 576.00 + 686.44 + 408.04 + 561.69 + 1156.00 + 292.41 + 718.24 + 561.69 + 620.01 = 6272.21
∑ X 3 2 = 870.25 + 1156.00 + 756.25 + 864.36 + 778.41 + 686.44 + 894.01 + 870.25 + 900.00 + 1267.36 = 9043.33 \sum X_{3}^2 = 870.25 + 1156.00 + 756.25 + 864.36 + 778.41 + 686.44 + 894.01 + 870.25 + 900.00 + 1267.36 = \mathbf{9043.33} ∑ X 3 2 = 870.25 + 1156.00 + 756.25 + 864.36 + 778.41 + 686.44 + 894.01 + 870.25 + 900.00 + 1267.36 = 9043.33
∑ X 4 2 = 1332.25 + 1953.64 + 1162.81 + 918.09 + 985.96 + 1095.61 + 1162.81 + 1082.41 + 1317.69 + 650.25 = 11 , 661.52 \sum X_{4}^2 = 1332.25 + 1953.64 + 1162.81 + 918.09 + 985.96 + 1095.61 + 1162.81 + 1082.41 + 1317.69 + 650.25 = \mathbf{11,661.52} ∑ X 4 2 = 1332.25 + 1953.64 + 1162.81 + 918.09 + 985.96 + 1095.61 + 1162.81 + 1082.41 + 1317.69 + 650.25 = 11 , 661.52
∑ ∑ X i j 2 = 6905.18 + 6272.21 + 9043.33 + 11 , 661.52 = 33 , 882.2400 \sum \sum X_{ij}^2 = 6905.18 + 6272.21 + 9043.33 + 11,661.52 = \mathbf{33,882.2400} ∑∑ X ij 2 = 6905.18 + 6272.21 + 9043.33 + 11 , 661.52 = 33 , 882.2400
3. Total Sum of Squares (TSS):
TSS = ∑ ∑ X i j 2 − CF = 33 , 882.24 − 32 , 809.984 = 1072.2560 \text{TSS} = \sum \sum X_{ij}^2 - \text{CF} = 33,882.24 - 32,809.984 = \mathbf{1072.2560} TSS = ∑∑ X ij 2 − CF = 33 , 882.24 − 32 , 809.984 = 1072.2560
d f total = N − 1 = 40 − 1 = 39 df_{\text{total}} = N - 1 = 40 - 1 = \mathbf{39} d f total = N − 1 = 40 − 1 = 39
SSB = ∑ T j 2 n − CF = 260.8 2 + 246.9 2 + 299.5 2 + 338.4 2 10 − 32 , 809.984 \text{SSB} = \frac{\sum T_j^2}{n} - \text{CF} = \frac{260.8^2 + 246.9^2 + 299.5^2 + 338.4^2}{10} - 32,809.984 SSB = n ∑ T j 2 − CF = 10 260. 8 2 + 246. 9 2 + 299. 5 2 + 338. 4 2 − 32 , 809.984
SSB = 68 , 016.64 + 60 , 959.61 + 89 , 700.25 + 114 , 514.56 10 − 32 , 809.984 \text{SSB} = \frac{68,016.64 + 60,959.61 + 89,700.25 + 114,514.56}{10} - 32,809.984 SSB = 10 68 , 016.64 + 60 , 959.61 + 89 , 700.25 + 114 , 514.56 − 32 , 809.984
SSB = 333 , 191.06 10 − 32 , 809.984 = 33 , 319.106 − 32 , 809.984 = 509.1220 \text{SSB} = \frac{333,191.06}{10} - 32,809.984 = 33,319.106 - 32,809.984 = \mathbf{509.1220} SSB = 10 333 , 191.06 − 32 , 809.984 = 33 , 319.106 − 32 , 809.984 = 509.1220
d f between = k − 1 = 4 − 1 = 3 df_{\text{between}} = k - 1 = 4 - 1 = \mathbf{3} d f between = k − 1 = 4 − 1 = 3
SSW = TSS − SSB = 1072.2560 − 509.1220 = 563.1340 \text{SSW} = \text{TSS} - \text{SSB} = 1072.2560 - 509.1220 = \mathbf{563.1340} SSW = TSS − SSB = 1072.2560 − 509.1220 = 563.1340
d f within = N − k = 40 − 4 = 36 df_{\text{within}} = N - k = 40 - 4 = \mathbf{36} d f within = N − k = 40 − 4 = 36
3. One-Way ANOVA Summary Table (7 Marks)
Source of Variation Sum of Squares (SS) Degrees of Freedom (d f df df ) Mean Square (MS) Variance Ratio (F calc F_{\text{calc}} F calc ) Critical F 0.01 ( 3 , 36 ) F_{0.01}(3, 36) F 0.01 ( 3 , 36 ) Between Formations 509.1220 509.1220 509.1220 3 3 3 MSB = 509.1220 3 = 169.7073 \text{MSB} = \frac{509.1220}{3} = \mathbf{169.7073} MSB = 3 509.1220 = 169.7073 F = 169.7073 15.6426 = 10.85 F = \frac{169.7073}{15.6426} = \mathbf{10.85} F = 15.6426 169.7073 = 10.85 4.38 \mathbf{4.38} 4.38 Within Formations (Error) 563.1340 563.1340 563.1340 36 36 36 MSW = 563.1340 36 = 15.6426 \text{MSW} = \frac{563.1340}{36} = \mathbf{15.6426} MSW = 36 563.1340 = 15.6426 - - Total 1072.2560 39 - - -
Statistical Decision & Conclusion:
Hypotheses:
H 0 : μ 1 = μ 2 = μ 3 = μ 4 H_0: \mu_1 = \mu_2 = \mu_3 = \mu_4 H 0 : μ 1 = μ 2 = μ 3 = μ 4 (Mean total Fe content is identical across all four iron formations).
H 1 H_1 H 1 : At least one iron formation differs significantly in mean Fe content.
Critical Value Comparison: At significance level α = 0.01 \alpha = 0.01 α = 0.01 with d f = ( 3 , 36 ) df = (3, 36) df = ( 3 , 36 ) , critical table value F 0.01 ( 3 , 36 ) ≈ 4.38 F_{0.01}(3, 36) \approx \mathbf{4.38} F 0.01 ( 3 , 36 ) ≈ 4.38 (or F 0.01 ( 3 , 40 ) = 4.31 F_{0.01}(3, 40) = 4.31 F 0.01 ( 3 , 40 ) = 4.31 ).
Decision: Since F calc = 10.85 ≫ 4.38 F_{\text{calc}} = 10.85 \gg 4.38 F calc = 10.85 ≫ 4.38 , we reject the null hypothesis H 0 H_0 H 0 at the 1 % 1\% 1% significance level (p < 0.0001 p < 0.0001 p < 0.0001 ).
Conclusion: There is a highly statistically significant difference in mean total Fe content among the four types of iron formation (with Hematite exhibiting the highest mean Fe content at 33.84 % 33.84\% 33.84% , and Silicate the lowest at 24.69 % 24.69\% 24.69% ).
Examiner's Note
Notice the significance level specified in the question is α = 0.01 \alpha = 0.01 α = 0.01 (not the standard 0.05 0.05 0.05 ). The critical value for d f = ( 3 , 36 ) df = (3, 36) df = ( 3 , 36 ) at α = 0.01 \alpha = 0.01 α = 0.01 is 4.38 4.38 4.38 . Calculated F = 10.85 F = 10.85 F = 10.85 decisively rejects H 0 H_0 H 0 .