Docsity

Applied Statistics for the Life Sciences - Problem Set 6 with Solution | STAT 371, Study notes of Statistics

Toggle sidebar
bg1
Quoc Tran B248D MSC [email protected]
STAT 371 Discussion #6 October 24, 2006
1. The following table shows the number of bacteria colonies present in each of several petri dishes,
after E.coli bacteria were added to the dishes and they were incubated for 24 hours. The “soap”
dishes contained a solution prepared from ordinary soap, the “control” dishes contained a solution
of sterile water. (see the data on the blackboard).
Question: Is there any difference between these two groups?
2. Comparing Two Groups
(a) Standard error of (¯y1−¯y2)
SE(¯y1−¯y2)=ss2
1
n1
+s2
2
n2
(b) The confidence interval for µ1−µ2
•If the population standard deviations are known, the confidence interval for µ1−µ2is:
(¯
Y1−¯
Y2)±z×sσ2
1
n1
+σ2
2
n2
where zis selected so that the area between −zand zunder the StandardNormal curve
is the desired confidence level.
•If the population standard deviations are unknown, the confidence interval for µ1−µ2is:
(¯
Y1−¯
Y2)±t×ss2
1
n1
+s2
2
n2
Here is the df formula:
df = (SE2
1+ SE2
2)2
SE4
1/(n1−1) + SE4
2/(n2−1)
where SE1=s1/√n1and SE2=s2/√n2.
3. Hypothesis Tests
(a) Testing
•H0:µ1=µ2
•Test statistic:
ts=(¯y1−¯y2)
qs2
1
n1+s2
2
n2
•Alternative hypothesis and P-values
Alternative Hypothesis P-values
HA:µ1−µ2>0 Pr{T > ts}
HA:µ1−µ2<0 Pr{T < ts}= Pr{T > −ts}
HA:µ1−µ26= 0 2 Pr{T > |ts|}
(b) Interpreting a P-Value
The p-value is a measure of how consistent the data is with the null hypothesis in consideration
of a specific alternative hypothesis. The smaller the p-value, the more inconsistent the data
is with the null hypothesis, the stronger the evidence is against the null hypothesis in favor of
the alternative.
Office hours: 2:30-4:30pm Tues. at B248D MSC 1http://www.stat.wisc.edu/∼tran
pf2

Partial preview of the text

Download Applied Statistics for the Life Sciences - Problem Set 6 with Solution | STAT 371 and more Study notes Statistics in PDF only on Docsity!

Quoc Tran B248D MSC [email protected]

STAT 371 Discussion #6 October 24, 2006

  1. The following table shows the number of bacteria colonies present in each of several petri dishes, after E.coli bacteria were added to the dishes and they were incubated for 24 hours. The “soap” dishes contained a solution prepared from ordinary soap, the “control” dishes contained a solution of sterile water. (see the data on the blackboard). Question: Is there any difference between these two groups?
  2. Comparing Two Groups

(a) Standard error of (¯y 1 − y¯ 2 )

SE(¯y 1 −y¯ 2 ) =

s^21 n 1

s^22 n 2

(b) The confidence interval for μ 1 − μ 2

  • If the population standard deviations are known, the confidence interval for μ 1 − μ 2 is:

( Y¯ 1 − Y¯ 2 ) ± z ×

σ 12 n 1

σ 22 n 2

where z is selected so that the area between −z and z under the StandardN ormal curve is the desired confidence level.

  • If the population standard deviations are unknown, the confidence interval for μ 1 − μ 2 is:

( Y¯ 1 − Y¯ 2 ) ± t ×

s^21 n 1

s^22 n 2

Here is the df formula: df =

(SE^21 + SE^22 )^2

SE^41 /(n 1 − 1) + SE^42 /(n 2 − 1) where SE 1 = s 1 /

n 1 and SE 2 = s 2 /

n 2.

  1. Hypothesis Tests

(a) Testing

  • H 0 : μ 1 = μ 2
  • Test statistic: ts = (¯y 1 − y¯ 2 ) √ s^21 n 1 +^

s^22 n 2

  • Alternative hypothesis and P-values Alternative Hypothesis P-values HA : μ 1 − μ 2 > 0 Pr{T > ts} HA : μ 1 − μ 2 < 0 Pr{T < ts} = Pr{T > −ts} HA : μ 1 − μ 2 6 = 0 2 Pr{T > |ts|} (b) Interpreting a P-Value The p-value is a measure of how consistent the data is with the null hypothesis in consideration of a specific alternative hypothesis. The smaller the p-value, the more inconsistent the data is with the null hypothesis, the stronger the evidence is against the null hypothesis in favor of the alternative.

Office hours: 2:30-4:30pm Tues. at B248D MSC 1 http://www.stat.wisc.edu/∼tran

Quoc Tran B248D MSC [email protected]

(c) Comparing α and P-values

  • The significance level α and p-values are both areas under t curves, but they are not the same thing.
  • The significance level α is a prespecified, arbitrary value, that does not depend on the data.
  • The p-value depends on the data.
  • Rejecting the null hypothesis when the p-value is less than the significance level α (d) Type I and Type II Errors
  • Rejecting a true null hypothesis is a Type I error. The probability of a Type I error is α = Pr{rejecting H 0 — H 0 is true}. You cannot make a Type I error when the null hypothesis is false, or you accept the null hypothesis.
  • Not rejecting a false null hypothesis is a Type II error. The probability of Type II error is β = Pr{ not rejecting H 0 — H 0 is false}. You cannot make a Type II error when the null hypothesis is true, or you reject the null hypothesis. (e) Relationship between t tests and confidence intervals We would reject the null hypothesis H 0 : μ 1 − μ 2 = 0 versus HA : μ 1 − μ 2 6 = 0 at the α = 0. 05 level of significance if and only if a 95% confidence interval for μ 1 − μ 2 does not contain 0. (f) Power The chance of not making a Type II error when H 0 is false–that is the chance of rejecting H 0 when it is false–is called the power of a statistic test:

Power = 1 − β = P r{reject H 0 —H 0 is false}

  1. Examples
    • Example 1: 7.37 on page 247.
    • Example 2: Suppose that a 95% confidence interval for (μ 1 −μ 2 ) is calculated to be (− 2. 4 , − 0 .8). If we test H 0 : μ 1 = μ 2 versus HA : μ 1 6 = μ 2 using α = 0.10, will we reject H 0? Why or why not?

Office hours: 2:30-4:30pm Tues. at B248D MSC 2 http://www.stat.wisc.edu/∼tran