Take Home Exam Part 2
Take Home Exam Part 2
Computational
Gender
Enjoy Shopping for Clothing
MALE FEMALE
YES 136 224
NO 104 36
Steps:
i. Null Hypothesis.
H0: There is no significant difference between the proportions of males and
females who enjoy shopping for clothing
H1: There is a significant difference between the proportions of males and females
who enjoy shopping for clothing
v. Rejection region.
The region of rejection for this test consists of all values of X2 for which the
probability of observing a value as larger when H0 is true is less than α= 0.01.
Using Appendix Table C with df = 1 and α = 0.01, we get the critical value = 6.64. The
computed value = 52.4 > critical value = 6.64. Therefore, we may reject H0. There is
enough evidence to conclude that there is a significant difference between the
proportions of males and females who enjoy shopping for clothing at the 0.01 level of
significance.
2) An athletics coach wishes to test the value to his athletes of an intensive period of
weight training and so he selects twelve 400-meter runners from his region and
records their times, in seconds, to complete the distance. They then undergo his
programme of weight training and have their times, in seconds, for 400 meters
measured again, The table below summarizes the results:
Athletes A B C D E F G H I J K L
Before 51.0 49.8 49.5 50.1 51.6 48.9 52.4 50.6 53.1 48.6 52.9 53.4
After 50.6 50.4 48.9 49.1 51.6 47.8 53.5 49.9 51.0 48.5 50.6 51.7
Test the hypothesis that the training program significantly improved athletes’ times for
the 400 meters at 0.05 level of significance.
Steps:
i. Null Hypothesis.
H0: The training programme has no effect.
H1: The training programme improves athlete’s time
𝑇 + = 2 + 3.5 + 6 + 8 + 5 + 10 + 1 + 11 + 9 = 55.5
𝑇 − = 3.5 + 7+= 10.5
Thus, T=55.5
The value of T lies in the critical region. Thus, we may reject the null hypothesis at 0.05.
Therefore, there is evidence that the weight training programme improves athlete’s time
for 400 meters.
3) Custer and Galli (2002) flew a light plane to follow great blue herons (Ardea herodias)
and great egrets (Casmero dius albus) from their resting site to their first feeding site
at Peltier Lake, Minnesota, and recorded the type of substrate each bird landed on. Is
there evidence that the two species of birds use the substrates in different
proportions at 0.05 level of significance?
Steps:
i. Null Hypothesis.
H0: The there is no evidence that the two species of birds use the substrates in
different proportions.
H1: The two species of birds use the substrates in different proportions.
ii. Statistical Test: Chi-Square Test for Independence
iii. Significance level: α= 0.05 for N = 76
iv. Sampling Distribution.
𝑟 𝑘 2
2
(𝑛𝑖𝑗 − 𝐸𝑖𝑗 )
𝑋 = ∑∑
𝐸𝑖𝑗
𝑖=1 𝑗=1
We can use Appendix Table C with df=(r-1)(k-1) and α= 0.05. The probability
associated with the occurrence of values as larger than an observed X2 when
H0 is true.
v. Rejection region.
The region of rejection for this test consists of all values of X2 that is large. The
probability associated with their occurrence when H0 is true is ≤0.05.
𝑟 𝑘 2
(𝑛𝑖𝑗 − 𝐸𝑖𝑗 )
𝑋2 = ∑ ∑
𝐸𝑖𝑗
𝑖=1 𝑗=1
2
(15 − 16.64)2 (8 − 6.36)2 (20 − 18.09)2 (5 − 6.91)2 (14 − 15.20)2
𝑋 = + + + + +
16.64 6.36 18.09 6.91 15.20
(7 − 5.80)2 (6 − 5.07)2 (1 − 1.93)2
+ + +
5.80 5.07 1.93
𝑋 2 = 2.27
Placebo 0.90 0.37 1.63 0.83 0.95 0.78 0.86 0.61 0.38 1.97
Alcohol 1.46 1.45 1.76 1.44 1.11 3.07 0.98 1.27 2.56 1.32
Steps:
i. Null Hypothesis.
H0: There is no significant difference in the reaction time of the two groups.
H1: There is a significant difference in the reaction time of the two groups.
We use the statistic for Mann Whitney U Test. It is denoted by U (the smaller of
U1 and U2)
𝑛1 (𝑛1 + 1)
𝑈1 = 𝑛1 𝑛2 + − 𝑅1
2
𝑛2 (𝑛2 + 1)
𝑈2 = 𝑛1 𝑛2 + − 𝑅2
2
where R1=sum of ranks of group 1 and R2= sum of ranks of group 2. Then we
use the critical values for U.
v. Rejection region. The rejection region can be determine from the critical values
and the sample size n1=n2=10 with α= 0.05. Thus, using the table, the decision
rule is to reject H0 if the value of U≤23.
vi. Decision:
The data shown below are arranged in ascending order in the table.
𝑛1 (𝑛1 + 1) 10(10 + 1)
𝑈1 = 𝑛1 𝑛2 + − 𝑅1 = 10 ∙ 10 + − 70 = 85
2 2
𝑛2 (𝑛2 + 1) 10(10 + 1)
𝑈2 = 𝑛1 𝑛2 + − 𝑅2 = 10 ∙ 10 + − 140 = 15
2 2
Thus, U=smaller=15
Since U=15≤23, we may reject H0. Therefore, there is a significant difference in the
reaction time of the two groups.