Assignment 3
Assignment 3
Al Madani Mohammed
(300290797)
ADM2304
16 November 2024
-The assumption of normality is assessed by comparing the positions of the mean and
the median in each group. In the boxplot, the mean and median for all four drug
groups are fairly close, indicating that the distributions are reasonably symmetric.
Therefore, the normality assumption appears to be satisfied.
-The assumption of equal variance is assessed by eyeballing the distances between the
lower and upper whiskers for each group. These distances appear reasonably equal
across the four drug groups, suggesting that the assumption of equal variance is also
met.
c)
Column statistics:
ANOVA table
Total 23 171.33333
Null hypothesis H0: There is no difference in the average weight loss among the four
medications (μ1=μ2=μ3=μ4)
Alternative hypothesis HA: At least two medications have different average weight loss
F-ratio= 4.6
-Decision rule:
*Critical value approach: The F critical value at df= 3, 20 and level of significance α =
0.05:
Since F-ratio=4.6 > Fcv=3.10, we reject the null hypothesis implying that there is a
significant difference in between average weight loss among the four medications
*P-value approach:
From the ANOVA table, the p-value = 0.0132. If p≤α, we reject H0.
-Conclusion: We reject the null hypothesis (H0H_0H0) that the average weight loss is
the same for all four medications. This means there is sufficient evidence to conclude
that at least two medications differ significantly in their average weight loss at the 5%
significance level.
d)
The manually calculated MSE=5.06 perfectly with the result provided in the statcrunch
anova table, where the MSE is also 5.06. This confirms that the manual calculations for
the pooled variance are accurate and consistent with the statcrunch output, validating
the correctness of the ANOVA results.
e) We determine the number of pairs of medications to be compared:
J= ( k2) = k! \ 2! (k-2)!
=( 42) = 4!\ 2! (4-2) = 6
We calculate the standard error of ¯yi − y¯j :
S¯yi − y¯j= √ MSEx (1¿ +1¿) =√ 5.06 x (1¿+ 1¿)
-
= 1.2987=1.3
= 2,271119
We conclude that there’s a significant difference in average weight loss between drug 3
and all the other drugs (drug 1, drug 2 and drug 4), but not between the other pairs.
f)
-The hypothesis:
Null Hypothesis H0: The populations distributions for the weight loss of the four
medications are identical.
-Calculation of ranks:
Drug
1 Rank Drug 2 Rank Drug 3 Rank Drug 4 Rank
5 1.5 8 7 10 13 13 21.5
12 19.5 7 4 11 17 13 21.5
9 9.5 10 13 9 9.5 11 17
7 4 5 1.5 14 23 8 7
10 13 10 13 16 24 10 13
7 4 8 7 12 19.5 11 17
T1 51.5 T2 45.5 T3 106 T4 97
Test statistic
n1=n2=n3=n4=6
H=9.71
-Critical value: From the chi-square distribution table with k−1=4-1=3 degrees of
freedom and α=0.05:
Χ*2 (0.05,3)=7.815
Conclusion: We reject the null hypothesis, which implies that there is a significant
difference in the distributions of weight loss among the four medications.
g)
Kruskal-Wallis results:
3 9.710321 0.0212
Summary statistics :
-P-value approach: From the STATCRUNCH output, the Kruskal-Wallis test statistic is
provided, and the corresponding p-value is p=0.212
Since p=0,0212>0.05
we fail to reject the null hypothesis, which implies there is insufficient evidence to
conclude that the distributions of weight loss differ among the four medications.
Question 2 :
A)
Experimental Design: Factorial Design
Hypotheses:
Null hypothesis (H0) : No interaction exists between Supplier and Shift
Alternative hypothesis (HA) : Interaction exists between Supplier and Shift.
Test Statistic:
The F-statistic for interaction is F=1.9623 (from the table).
Critical Value:
At α=0.05, with dfnumerator=4 and dfdenominator=36,
The critical value is F0.05,4,36=2.63 (from F-distribution table).
P-value:
The p-value is 0.1212 (from the table).
Decision:
Since F=1.9623<2.63 and P=0.1212>0.05, we fail to reject H0.
Conclusion:
Since we fail to reject the null hypothesis, There is insufficient evidence to
conclude that there is an interaction between Supplier and Shift.
C)
Hypotheses:
o H0: The average quality is the same among all three suppliers.
o HA : At least one supplier's average quality is different.
Test Statistic:
From the table, F=0.05898
Critical Value:
At α=0.05, with dfnumerator=2, and dfdenominator=36, the critical value is F0.05,2,36=3.26
Decision:
Since F=0.05898<3.26, we fail to reject H0.
Conclusion:
Since we fail to reject the null hypothesis, There is no significant difference in
average quality among the three suppliers.
D)
Hypotheses:
H0: The average quality is the same among all three shifts.
HA: At least one shift's average quality is different.
Test Statistic:
From the table, F=4.6598
Critical Value:
At α=0.05, with dfnumerator=2 and dfdenominator=36, the critical value is F0.05,2,36=3.26.
Decision:
Since F=4.6598>3.26, we reject H0.
Conclusion:
Since we reject the null hypothesis, there is a significant difference in average
quality among the three shifts.
E)
1. Normality :
The normality assumption can be assessed by checking if the residuals mostly fall
within ±3 standard deviations. In the plot, the residuals are fairly distributed within this
range, with no extreme points lying far outside. This indicates there are no
significant outliers that would violate the normality assumption. Therefore, it
appears the data meet the requirement for normality.
2. Equal Variance :
The assumption of equal variance (homoscedasticity) requires that the residuals have a
consistent spread across all levels of fitted values. In the plot, the residuals show a
fairly uniform spread without noticeable patterns or trends, such as a funnel shape or
clustering. This consistency suggests that the variance of errors is equal across the
fitted values, meeting the assumption.
3. Conclusion:
Both assumptions of normality and equal variance appear to be warranted based on the
residuals plot.
f)
SE = √(MSE*(1/5 + 1/5)
SE = 2.54
And df = 2*(r-1) = 2 * 4 = 8
( i ) Yi – Yj = 84 – 78.6 = 5.4
levels. In other words, the interaction between the two factors is not statistically
significant, as the confidence intervals for each factor do not differ meaningfully across
the levels of the other factor. This finding is consistent with the conclusion drawn
from the analysis.
Déclaration d’intégrité académique
Divulgation et liste de contrôle pour un travail individuel
Veuillez lire la divulgation ci-dessous après avoir effectué votre travail. Une fois que
vous aurez vérifié ces points, veuillez remettre cette déclaration signée avec votre
travail.
2. S’il y a lieu, j’ai cité (ou référencé en bas de bas) tous les mots, idées ou toute
propriété intellectuelle empruntés d’autres sources dans le cadre de ce travail.
4. C’est la première fois que je soumets ce travail ou cet essai (en tout ou en partie)
pour une évaluation académique.
5. Je n’ai pas utilisé d’assistance ou d’aide non autorisées, y compris, mais sans s’y
limiter, l’utilisation de solutions en sous-traitance et l’utilisation contraire à l’éthique
de services en ligne comme les outils d’intelligence artificielle et les sites Web de
partage de matériel de cours.
Cote de cours :
Numéro du
travail/Titre : ADM 2304 - Assignment 3
Utilisation d’outils Oui (Requis par le cours/professeur) o Oui
de détection de (par moi-même) o
plagiat Non (Ne s’applique pas pour ce type de travail)
(i.e. Ouriginal) : o Non o
Date de
soumission : November 16
Nom :
Al Madani Mohammed
Signature :