2024-11-04
It seems natural to think that adding the right vitamins to a pig’s diet might produce fatter pigs faster. You’ve decided to study the effects of B12 in two doses (0mg and 5mg). But pigs have bacteria living in their intestines that might prevent the uptake of vitamins, so you decided to give antibiotics to the pigs in one of two doses (0mg or 40 mg). You design your experiment in such a way that 3 piglets are randomly assigned to each of the 4 treatment conditions. You measure their weight every day, and take each pig’s average daily weight gain as your final number recorded.
For each of the following interaction graphs, answer the following questions with YES or NO.
\[{y}_{ijk}={\mu}+{\alpha}_{i}+{\beta}_{j}+{\alpha\beta}_{ij}+{e}_{ijk}\]
\[{SS}_{A} = \sum_{i=1}^{a}bn(\bar{y}_{i..}-\bar{y}_{…})^{2}\]
\[{SS}_{B} = \sum_{j=1}^{b}an(\bar{y}_{.j.}-\bar{y}_{…})^{2}\]
\[{SS}_{AB} = n\sum_{i=1}^{a}\sum_{j=1}^{b}(\bar{y}_{ij.}-\bar{y}_{i..}-\bar{y}_{.j.}+\bar{y}_{…})^{2}\]
\[{SS}_{E} = \sum_{i=1}^{a}\sum_{j=1}^{b}\sum_{k=1}^{n}({y}_{ijk}-\bar{y}_{ij.})^{2}\]
\[{df}_{A}=a-1\]
\[{df}_{B}=b-1\]
\[{df}_{AB}=(a-1)(b-1)\]
\[{df}_{E}=ab(n-1)\]
\[{MS}_{A}=\frac{{SS}_{A}}{{df}_{A}}\]
\[{MS}_{B}=\frac{{SS}_{B}}{{df}_{B}}\]
\[{MS}_{AB}=\frac{{SS}_{AB}}{{df}_{AB}}\]
\[{MS}_{E}=\frac{{SS}_{E}}{{df}_{E}}\]
The ultimate statistics we want to calculate is Variability in treatment effects/Variability in residuals. The F-ratio.
\[F = \frac{{MS}_{A}}{{MS}_{E}}\]
\[F = \frac{{MS}_{B}}{{MS}_{E}}\]
\[F = \frac{{MS}_{AB}}{{MS}_{E}}\]
\[{y}_{ijk}={\mu}+{\alpha}_{i}+{\beta}_{j}+{\alpha\beta}_{ij}+{e}_{ijk}\]
| Source | SS | df | MS | F |
|---|---|---|---|---|
| Treatment A | \(\sum_{i=1}^{a}bn(\bar{y}_{i..}-\bar{y}_{…})^{2}\) | \(a-1\) | \(\frac{{SS}_{A}}{{df}_{A}}\) | \(\frac{{MS}_{A}}{{MS}_{E}}\) |
| Treatment B | \(\sum_{j=1}^{b}an(\bar{y}_{.j.}-\bar{y}_{…})^{2}\) | \(b-1\) | \(\frac{{SS}_{B}}{{df}_{B}}\) | \(\frac{{MS}_{B}}{{MS}_{E}}\) |
| Interaction AB | \(n\sum_{i=1}^{a}\sum_{j=1}^{b}(\bar{y}_{ij.}-\bar{y}_{i..}-\bar{y}_{.j.}+\bar{y}_{…})^{2}\) | \((a-1)(b-1)\) | \(\frac{{SS}_{AB}}{{df}_{AB}}\) | \(\frac{{MS}_{AB}}{{MS}_{E}}\) |
| Error | \(\sum_{i=1}^{a}\sum_{j=1}^{b}\sum_{k=1}^{n}({y}_{ijk}-\bar{y}_{ij.})^{2}\) | \(ab(n-1)\) | \(\frac{{SS}_{E}}{{df}_{E}}\) |
A professor wanted to compare three different teaching methods to determine how students
would perceive the course: 1) instructionist, 2) inquiry-based, and 3) team-based. She randomly assigned the same class (same topic different students) from 6 different semesters to treatments. At the end of the semester students were asked to rate the course on a 5-point scale, and the average class rating was calculated.
A psychologist wants to study the effect of anxiety on 4 different types of memory. Twelve participants are assigned to one of two anxiety conditions: 1) low anxiety group is told that they will be awarded $5 for participation and $10 if they remember sufficiently accurately, and 2) high anxiety group is told they will be awarded $5 for participation and $100 if they remember sufficiently accurately. All subjects perform four memory trials in random order, testing 4 different types of memory. The number of errors on each trial is recorded.