- #1
Agent Smith
- 337
- 36
- TL;DR Summary
- Hypothesis testing by comparing 2 means.
We have a question where we're testing the hypothesis that a certain diet (call it diet A) causes weight loss. We get ##n_1## people who we put on diet A (treatment group) and another ##n_2## people who we keep on a normal diet (control group). We find that the mean weight loss in the treatment group is ##m_T## with a standard deviation ##s_T##. The mean weight loss in the control group is ##m_C## and standard deviation is ##s_C##.
##H_0##: Diet A is not effective i.e. ##m_T = m_C##
##H_1##: Diet A is effective i.e. ##m_T > m_C##
Assume all conditions for inference have been met
We "combine the distributions" (I don't know the appropriate word) and compute ##m_T - m_C##. This is the difference in the means of weight loss for the treatment and control groups. Correct?
We compute the standard deviation for ##m_T - m_C## like so: ##\sigma_{T - C} = \sqrt{\frac{s_T^2}{n_1} + \frac{s_C ^2}{n_2}}##. This is the standard deviaton of the sampling distribution of the difference in mean weight loss for the treatment and control groups. Correct?
We compute the z/t score ##z = \frac{\left(m_T - m_C\right) - 0}{\sigma_{T - C}}##
We then look up the p-value from a z/t table.
If the p-value ##\leq## alpha then we reject ##H_0## and accept ##H_1## and if the p-value > alpha, we fail to reject ##H_0##
##H_0##: Diet A is not effective i.e. ##m_T = m_C##
##H_1##: Diet A is effective i.e. ##m_T > m_C##
Assume all conditions for inference have been met
We "combine the distributions" (I don't know the appropriate word) and compute ##m_T - m_C##. This is the difference in the means of weight loss for the treatment and control groups. Correct?
We compute the standard deviation for ##m_T - m_C## like so: ##\sigma_{T - C} = \sqrt{\frac{s_T^2}{n_1} + \frac{s_C ^2}{n_2}}##. This is the standard deviaton of the sampling distribution of the difference in mean weight loss for the treatment and control groups. Correct?
We compute the z/t score ##z = \frac{\left(m_T - m_C\right) - 0}{\sigma_{T - C}}##
We then look up the p-value from a z/t table.
If the p-value ##\leq## alpha then we reject ##H_0## and accept ##H_1## and if the p-value > alpha, we fail to reject ##H_0##
Last edited: