Professional Documents
Culture Documents
Hypothesis: To Test Whether The
Hypothesis: To Test Whether The
Hypothesis: To Test Whether The
2. Hypothesis
Q1. If we wanted to test whether the volume of a shipment of lumber was less than usual
(μ0=39000μ0=39000 cubic feet).
> Set.seed(0)
data: treeVolume
t = -12.2883, df = 74, p-value < 2.2e-16
alternative hypothesis: true mean is not equal to 39000
95 percent confidence interval:
36033.60 36861.38
sample estimates:
mean of x
36447.49
We see that the current shipment of lumber has a significantly lower volume than we usually see:
Q2. Let’s say that we work at a large health clinic and we’re testing a new drug, Procardia, that’s
meant to reduce hypertension. We find 1000 individuals with a high systolic blood pressure
(¯x=145x¯=145mmHg, SD=9SD=9mmHg), we give them Procardia for a month, and then
measure their blood pressure again. We find that the mean systolic blood pressure has decreased
to 138mmHg with a standard deviation 8mmHg.
> set.seed(2820)
Paired t-test
4. Statistical Techniques
5. R code
> Set.seed(0)
> set.seed(2820)
6. Results
7. Interpretations
1. We see that the current shipment of lumber has a significantly lower volume than we
usually see.
2. We see that there is a statistically significant difference in mean.