Abdulhakim Bashir

Logo

My E-Portfolio based on work carried out on my Msc Program on Artificial Intelligence and Machine Learning at the University of Essex.

← Back to RMPP Module

Hypothesis Testing Exercises & Solutions

Exercise 7.1: One-Tailed Test for Filtration Agents

Problem: Using Data Set G, conduct a one-tailed test to determine whether Filter Agent 1 is more effective than Filter Agent 2.

Hypotheses:

LibreOffice Solution:

=TTEST(B2:B11, C2:C11, 1, 1)

Interpretation: If sample mean for Agent 1 < Agent 2 and p < 0.05, Agent 1 is significantly more effective.


Exercise 7.2: Gender Income Analysis (Data Set C)

Problem: Test whether mean income for males exceeds that of females using Data Set C.

Hypotheses:

F-test for Variance Equality (LibreOffice Results):

F = 1.226
P(two-tail) = 0.436
Alpha = 0.05
df = 59, 59

Result: p = 0.436 > 0.05 → Equal variances assumption satisfied

Sample Statistics:

F-test Interpretation: The F-test result (p = 0.436) indicates that we cannot reject the null hypothesis of equal variances. This means the assumption of equal population variances between male and female incomes is satisfied, which is important for conducting appropriate statistical tests.

Descriptive Analysis: The sample data shows males have higher mean income (52.91) compared to females (44.23), with a difference of 8.68 units. Both groups have similar sample sizes (n=60) and the F-test confirms equal variances assumption is met.

Assumptions Analysis:

  1. Equal variances: F-test p-value = 0.436 > 0.05 (assumption satisfied)
  2. Independence: Data represents different bank cardholders
  3. Sample adequacy: Both groups have n=60 observations

File Attachment: Exe 8.6C.xlsx (LibreOffice analysis file)


Exercise 7.3: Filtration Agents Two-Tailed Test (Data Set G)

Problem: Two-tailed test of whether population mean impurity differs between filtration agents.

Hypotheses:

Sample Data (12 batches):

Paired t-test Results:

t = -3.264, df = 11
P(two-tail) = 0.0075
Alpha = 0.05

Interpretation: p = 0.0075 < 0.05 → Significant difference exists

Agent 1 produces significantly lower impurity than Agent 2 (p = 0.008). The mean difference of -0.433 indicates Agent 1 is more effective at reducing impurity levels.

File Attachment: Exa8.4G.xlsx (Analysis file)


Exercise 7.4: One-Tailed Filtration Test

Problem: Using Exercise 7.3 results, determine if Filter Agent 1 is more effective (one-tailed test).

From Exercise 7.3:

One-Tailed Analysis:

Conclusion: p = 0.00375 < 0.05 → Agent 1 is significantly more effective

One-tailed test provides stronger evidence (p = 0.004) that Agent 1 reduces impurity more than Agent 2.


Exercise 7.5: Bank Cardholder Income Analysis (LibreOffice)

Problem: Test if male population mean income exceeds female (Data Set C).

Note: This exercise uses the same data as Exercise 7.2.

Solution: See Exercise 7.2 above for complete F-test and descriptive analysis.

Key Finding: Males have higher mean income (52.91) than females (44.23) with equal variances confirmed.


← Back to RMPP Module