Docsity

ANOVA Examples, Study notes of Descriptive statistics

Toggle sidebar
bg1
ANOVA Examples STAT 314
1. If we define s=MSE , then of which parameter is s an estimate?
If we define s=MSE , then
s
i s a n e s t i m a t e o f t h e common population standard deviation,
σ
, of the populations under consideration. (This presumes, of course, that the equal-
standard-deviations assumption holds.)
2. Explain the reason for the word variance in the phrase analysis of variance.
The reason for the word
variance
in the phrase
analysis of variance
is because the analysis
of variance procedure for comparing means involves analyzing the
variation
in the sampl e
data.
3. The null and alternative hypotheses for a one-way ANOVA test are…
H0:
µ
1=
µ
2=L=
µ
k
Ha:Not all means are equal.
Suppose in reality that the null hypothesis is false. Does this mean that no two of the populations
have the same mean? If not, what does it mean?
If, in reality, the null hypothes is is false, this translates into “Not
all
of the means are the
same” or equivalently “
At least two
of the means are not the same.” (Notice that “at least
two” applies to 2 or 3 or … or
k
means.) This last statement in quotes is not equivalent to
saying “
No two
of the populations have the same mean” since this is equivalent to saying,
“
All
of the population means are different.”
4. In a one-way ANOVA, identify the statistic used…
a. as a measure of variation among the sample means.
MSTr
(or
SSTr
) is a statistic that measures the variation among the sample means for a
one-way ANOVA.
b. as a measure of variation within the samples.
MSE
(or
SSE
) is a statistic that measures the variation within the samples for a one-way
ANOVA.
c. to compare the variation among the sample means to the variation within the samples.
The statistic that compares the variation among the sample means to the variation within
the samples is F=MSTr
MSE .
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download ANOVA Examples and more Study notes Descriptive statistics in PDF only on Docsity!

ANOVA Examples STAT 314

  1. If we define s = MSE , then of which parameter is s an estimate?

If we define s = MSE , thens is an estimate of the common population standard deviation, σ, of the populations under consideration. (This presumes, of course, that the equal- standard-deviations assumption holds.)

  1. Explain the reason for the word variance in the phrase analysis of variance.

The reason for the wordvariance in the phraseanalysis of variance is because the analysis of variance procedure for comparing means involves analyzing the variation in the sample data.

  1. The null and alternative hypotheses for a one-way ANOVA test are…

H 0 : μ 1 =μ 2 = L =μ k H (^) a : Not all means are equal.

Suppose in reality that the null hypothesis is false. Does this mean that no two of the populations have the same mean? If not, what does it mean?

If, in reality, the null hypothesis is false, this translates into “Not all of the means are the same” or equivalently “ At least two of the means are not the same.” (Notice that “at least two” applies to 2 or 3 or … ork means.) This last statement in quotes is not equivalent to saying “ No two of the populations have the same mean” since this is equivalent to saying, “ All of the population means are different.”

  1. In a one-way ANOVA, identify the statistic used… a. as a measure of variation among the sample means.

MSTr (orSSTr) is a statistic that measures the variation among the sample means for a one-way ANOVA.

b. as a measure of variation within the samples.

MSE (orSSE) is a statistic that measures the variation within the samples for a one-way ANOVA.

c. to compare the variation among the sample means to the variation within the samples.

The statistic that compares the variation among the sample means to the variation within

the samples is F =

MSTr MSE

  1. The times required by three workers to perform an assembly-line task were recorded on five randomly selected occasions. Here are the times, to the nearest minute.

Hank Joseph Susan 8 8 10 10 9 9 9 9 10 11 8 11 10 10 9

( Note: y 1 = 9.6, y (^) 2 = 8.8 , y (^) 3 = 9.8 , s 1 2 = 1.3, s 2 2 = 0.7, s 3 2 = 0.7, and y = 9.4 .) Construct the one- way ANOVA table for the data. Compute SSTr and SSE using the defining formulas.

SSTr = n 1 ( y 1 − y )

2

+ n 2 ( y 2 − y )

2

+ n 3 ( y 3 − y )

2

2

2

2 = 2.

SSE = ( n 1 − 1 ) s 1 2

  • ( n 2 − 1 ) s 2 2
  • ( n 3 − 1 ) s 3 2

SSTo = SSTr + SSE = 2.8 + 10.8 = 13.

MSTr =

SSTr k − 1

= 1.4 ; MSE =

SSE

N − k

= 0.9; F =

MSTr MSE

Source df S S MS = SS/df F-statistic p-value

Treatments 2 2.8 1.4 1.5556 p-value > 0.

Error 12 10.8 0.

Total 14 13.

  1. Fill in the missing entries of the partially completed one-way ANOVA table.

Source df SS MS = SS/df F-statistic Treatments _____ 2.124 0.708 0. Error 20 _____ _____ Total _____ _____

MSTr =

SSTr df (^) Tr

⇒ df (^) Tr =

SSTr MSTr

F =

MSTr MSE

⇒ MSE =

MSTr F

MSE =

SSE

df (^) E

⇒ SSE = MSE ∗ df E = 0.944 20( ) = 18.

SSTo = SSTr + SSE = 2.124 + 18.880 = 21. dfTo = dfTr + df (^) E = 3 + 20 = 23

Source df SS MS = SS/df F-statistic Treatments 3 2.124 0.708 0. Error 20 18.880 0. Total 23 21.

  1. Four brands of flashlight batteries are to be compared by testing each brand in five flashlights. Twenty flashlights are randomly selected and divided randomly into four groups of five flashlights each. Then each group of flashlights uses a different brand of battery. The lifetimes of the batteries, to the nearest hour, are as follows.

Brand A Brand B Brand C Brand D 42 28 24 20 30 36 36 32 39 31 28 38 28 32 28 28 29 27 33 25

Preliminary data analyses indicate that the independent samples come from normal populations with equal standard deviations. At the 5% significance level, does there appear to be a difference in mean lifetime among the four brands of batteries?

Let the subscripts 1, 2, 3, and 4 refer to BrandA, BrandB, BrandC, and BrandD, respectively. Each sample size is 5, and the total number of pieces of data is 20.

Step 0 : Check Assumptions Step 1 : Hypotheses H 0 : μ 1 =μ 2 =μ 3 =μ 4 ( The mean lifetimes are equal. )

H (^) a : Not all of the means are equal. Step 2 : Significance Level α = 0. Step 3 : Critical Value and Rejection Region F α ,( df 1 = k −1, df (^) 2 = N − k ) = F 0.05,( df 1 = 4 −1, df (^) 2 = 20 − 4 ) = F 0.05,( df 1 =3, df (^) 2 = 16 ) = 3. Reject the null hypothesis ifF ≥ 3.24 (P-value ≤ 0.05). Step 4 : Construct the One-way ANOVA Table T 1 = 168 ; T 2 = 154 ; T 3 = 149 ; T 4 = 143

T = 614 ; y (^) ij 2 j = 1

n (^) i ∑ i = 1

k ∑ =^ y 1 j

2 j = 1

n (^) i ∑ +^ y 2 j

2 j = 1

n (^) i ∑ +^ y 3 j

2 j = 1

n (^) i ∑ +^ y 4 j

2 j = 1

n (^) i ∑ =^ 19,

SSTo = y (^) ij 2 j = 1

n (^) i ∑ i = 1

k ∑ −^

( T )

2

N

2

20

SSTr =

( T 1 )

2

n 1

( T 2 )

2

n 2

( T 3 )

2

n 3

( T 4 )

2

n 4

( T )

2

N

2

5

2

5

2

5

2

5

2

20

SSE = SSTo − SSTr = 560.2 − 68.2 = 492.

Source df SS MS = SS/df F-statistic p-value Treatments 3 68.2 22.7333 0.7393 p-value > 0. Error 16 492.0 30. Total 19 560. Step 5 : Decision Since 0.7393 < 3.24 (p-value > 0.05), fail to reject the null hypothesis. Step 6 : State conclusion in words At the α = 0.05 level of significance, there is not enough evidence to conclude that the mean lifetimes of the brands of batteries differ.

  1. Manufacturers of golf balls always seem to be claiming that their ball goes the farthest. A writer for a sports magazine decided to conduct an impartial test. She randomly selected 20 golf professionals and then randomly assigned four golfers to each of five brands. Each golfer drove the assigned brand of ball. The driving distances, in yards, are displayed in the following table.

Brand 1 Brand 2 Brand 3 Brand 4 Brand 5 286 279 270 284 281 276 277 262 271 293 281 284 277 269 276 274 288 280 275 292

Preliminary data analyses indicate that the independent samples come from normal populations with equal standard deviations. Do the data provide sufficient evidence to conclude that a difference exists in mean weekly earnings among nonsupervisory workers in the five industries? Perform the required hypothesis test using α = 0.05. ( Note: T 1 = 1,117, T 2 = 1,128 , T 3 = 1,089 , T 4 = 1,099,

T 5 = 1,142 , and y (^) ij 2 j = 1

4 ∑ i = 1

5 ∑ =^ 1,555,185 .)

Let the subscripts 1, 2, 3, 4, and 5 refer to Brand 1, Brand 2, Brand 3, Brand 4, and Brand 5 respectively. Each sample size is 4, and the total number of data pieces is 20.

Step 0 : Check Assumptions Step 1 : Hypotheses H 0 : μ 1 =μ 2 =μ 3 =μ 4 =μ 5 ( The mean driving distances are equal. )

H (^) a : Not all of the means are equal. Step 2 : Significance Level α = 0. Step 3 : Critical Value and Rejection Region F α ,( df 1 = k −1, df (^) 2 = N − k ) = F 0.05,( df 1 = 5 −1, df (^) 2 = 20 − 5 ) = F 0.05,( df 1 =4, df (^) 2 = 15 ) = 3. Reject the null hypothesis ifF ≥ 3.06 (P-value ≤ 0.05). Step 4 : Construct the One-way ANOVA Table

T = Ti i = 1

5 ∑ =^ 5,

SSTo = y (^) ij 2 j = 1

4 ∑ i = 1

5 ∑ −^

( T )

2

N

2

20

SSTr =

( T 1 )

2

n 1

( T 2 )

2

n 2

( T 3 )

2

n 3

( T 4 )

2

n 4

( T 5 )

2

n 5

( T )

2

N

2

4

2

4

2

4

2

4

2

4

2

20

SSE = SSTo − SSTr = 1,153.75 − 485.5 = 695.

Source df SS MS = SS/df F-statistic p-value Treatments 4 458.50 114.625 2.4730 0.05 <p-value < 0. Error 15 695.25 46. Total 19 1,153. Step 5 : Decision Since 2.4730 < 3.06 (p-value > 0.05), fail to reject the null hypothesis. Step 6 : State conclusion in words At the α = 0.05 level of significance, there is not enough evidence to conclude that the mean driving distances of the brands of golf balls differ.

  1. A study of the effect of different types of anesthesia on the length of post-operative hospital stay yielded the following for cesarean patients: Group A was given an epidural MS. Group B was given an epidural. Group C was given a spinal. Group D was given general anesthesia. The data are presented below. In general, the general anesthetic is considered to be the most dangerous, the spinal somewhat less so, and the epidural even less, with MS addition providing additional safety. Note that the data are in the form of distributions for each group.

Length of Stay Number of Patients Group A 3 6 4 14 Group B 4 18 5 2 Group C 4 10 5 9 6 1 Group D 4 8 5 12 a. Test for the existence of an effect due to anesthesia type. (Use α = 0.01)

Step 0 : Check Assumptions Step 1 : Hypotheses H 0 : μ A =μ B =μ C =μ D H (^) a : at least one inequality

Step 2 : Significance Level α = 0. Step 3 : Critical Value and Rejection Region Critical Value: F α ,( df 1 = k −1, df (^) 2 = N − k ) = F 0.01, ( df 1 = 3, df (^) 2 = 76 ) ≈ F 0.01, ( df 1 = 3, df (^) 2 = 60 ) = 4. Reject the null hypothesis ifF ≥ 4.13. Step 4 : Construct the One-way ANOVA Table (^ T (^) i )

2

i = 1^ ni

k ∑ =^

[( 3* 6^ ) +^ (^ 4 *14)]

2

[( 4 *18^ ) +^ (5 *2^ )]

2

[( 4 10^ ) +^ (5 9^ ) +^ (6 *1^ )]

2

[( 4 * 8^ ) +^ (5 *12^ )]

2

[^74 ]

2

20

[^82 ]

2

20

[^91 ]

2

20

[^92 ]

2

20

( T )

2

N

[( 3*6) +^ (4 *14^ ) +^ (4 18^ ) +^ (5 2^ ) +^ (^ 4 10) +^ (5 9^ ) +^ (6 *1^ ) +^ (^ 4 8) +^ (512^ )]

2

[( 3*6) +^ (4 * 50^ ) +^ (5 23^ ) +^ (61^ )]

2

[ 339 ]

2

80

y (^) ij^2 j = 1

n (^) i ∑ i = 1

k ∑ =^3

( ) +^4

( ) +^4

( ) +^5

( ) +^4

( ) +^5

( ) +^6

( )

2 ( *8) +^5

2 ( *12) = 1465

SSTr =

( T (^) i )

2

i = 1^ n^ i

k ∑ −^

( Y (^) ..)

2

N

SSE = y (^) ij 2 j = 1

n (^) i ∑ i = 1

k ∑ −^

( T (^) i )

2

i = 1^ n^ i

k ∑ =^1465 −^ 1447.25^ =^ 17.

Source df SS MS = SS/df F-statistic p-value Treatments 3 10.7375 3.5792 15.3219 p-value < 0. Error 76 17.7500 0. Total 79 28. Step 5 : Decision Since 15.3219 ≥ 4.13 (p-value ≤ 0.01), we shall reject the null hypothesis. Step 6 : State conclusion in words At the α = 0.01 level of significance, there exists enough evidence to conclude that there is an effect due to anesthesia type.

b. Does it appear that the assumptions for the analysis of variance are fulfilled? Explain.

From the description of the problem, the samples seem to be independent; however, the variances appear to be a bit different.

c. Construct side-by-side boxplots to check the assumptions. Do the results support your answer in (b)?

Side-by-Side Boxplots

Anesthetic Group

Group A Group B Group C Group D

4

The boxplots seem to be similar in shape (except for Group B, whose spread is close to that of the others), so our results are acceptable.

d. What specific recommendations can be made on the basis of these data?

The epidural MS appears to have the shortest average stay, and it is the safest method; therefore, I recommend use of the epidural MS for the patients.

  1. The table below shows the observed pollution indexes of air samples in two areas of a city. Test the hypothesis that the mean pollution indexes are the same for the two areas. (Use α=0.05.) Also, verify that t^2 = F for the two-sample pooled case. Area A Area B 2.92 4.69 1.84 3. 1.88 4.86 0.95 3. 5.35 5.81 4.26 4. 3.81 5.55 3.18 4. Step 0 : Check Assumptions (ANOVA Approach) Step 1 : Hypotheses (ANOVA Approach) H 0 : μ A =μ B H (^) a : μ A ≠μ B Step 2 : Significance Level α = 0. Step 3 : Critical Value and Rejection Region Critical Value: F α ,( df 1 = k −1, df (^) 2 = N − k ) = F 0.05,( df 1 =1, df (^) 2 = 14 ) = 4. Reject the null hypothesis ifF ≥ 4.60. Step 4 : Construct the One-way ANOVA Table (^ T (^) i )

2

i = 1^ ni

k ∑ =^

2

8

2

8

2

8

2

8

( T )

2

N

2

2

16

y (^) ij^2 j = 1

n (^) i ∑ i = 1

k ∑ =^ 2.^

2

2

2

2

2

2

2

2

= 267.

SSB =

( Y (^) i • )

2

i = 1^ n^ i

t ∑ −^

( Y (^) ••)

2

N

SSW = y (^) ij 2 j = 1

n (^) i ∑ i = 1

t ∑ −^

( Y (^) i • )

2

i = 1^ ni

t ∑ =^ 267.8549^ −^ 241.6357^ =^ 26.

Source df SS MS = SS/df F -statistic p -value Treatments 1 4.0905 4.0905 2.1842 p -value > 0. Error 14 26.2192 1. Total 15 30. Step 5 : Decision Since 2.1842 < 4.60 (p-value > 0.05), we fail to reject the null hypothesis. Step 6 : State conclusion in words At the α = 0.05 level of significance, there is not enough evidence to conclude that there is a difference in the average pollution indexes for the two areas.

The table below shows the observed pollution indexes of air samples in two areas of a city. Test the hypothesis that the mean pollution indexes are the same for the two areas. (Use α=0.05.)

Area A Area B 2.92 4.69 1.84 3. 1.88 4.86 0.95 3. 5.35 5.81 4.26 4. 3.81 5.55 3.18 4. Step 0 : Check Assumptions (Pooled-t Approach) Step 1 : Hypotheses (Pooled-t Approach) H 0 : μ A −μ B = 0 H (^) a : μ A −μ B ≠ 0 Step 2 : Significance Level α = 0. Step 3 : Critical Value(s) and Rejection Region(s) Since we don’t know the population variances ( σ (^) A 2 and σ B 2 ) but think that they are equal (air comes from areas of the same city), we’ll use the pooledt-test. Critical Values: ± t α 2 ,^ df^ = n^ A^ +^ n^ B^ −^2

= ± t 0 .0 2 5, df =1 4 = ±2. Reject the null hypothesis ifT≤–2.145 or ifT ≥ 2.145. Step 4 : Test Statistic

y (^) A =

∑ y^ A nA

= 4.3588 y (^) B =

∑ y^ B nB

s (^) p =

∑^ y^ A^2 −^

(∑ y^ A )

2

nA

  • (^) ∑ y (^) B^2 −

(∑ y^ B )

2

nB

nA + nB − 2

2

8

⎟ +^ 102.4812^ −^

2

8

T =

( y^ A −^ y^ B ) −δ 0

s (^) p

nA

n (^) B

p - value = 2 * P t ( ≥ 1.4780) ⇒ 2 0.05 < p - value < 2 0.1⇒ 0.1< p - value < 0.

Step 5 : Conclusion Since –2.145 ≤ 1.4780 ≤ 2.145 (0.2 >p-value > 0.1 > 0.05 = α), we fail to reject the null hypothesis. Step 6 : State conclusion in words At the α = 0.05 level of significance, there is not enough evidence to conclude that the mean pollution indexes are the same for the two areas.

 ***** Showt 2 =F:**

t = 1.4780 ⇒ t 2 = 2.1845 ≈ 2.1842 = F (off due to rounding error).

  1. A local bank has three branch offices. The bank has a liberal sick leave policy, and a vice-president was concerned with employees taking advantage of this policy. She thought that the tendency to take advantage depended on the branch at which the employee worked. To see if there were differences in the time employees took for sick leave, she asked each branch manager to sample employees randomly and record the number of days of sick leave taken during 1990. Ten employees were chosen, and the data are listed below. Do this data indicate a difference in branches? Use a level of significance of 0.05.

Branch 1 15 20 19 14 Branch 2 11 15 11 Branch 3 18 19 23

Step 0 : Check Assumptions Step 1 : Hypotheses H 0 : μ 1 =μ 2 =μ 3 H (^) a : at least one inequality Step 2 : Significance Level α = 0. Step 3 : Critical Value and Rejection Region Critical Value: F α ,( df 1 = k −1, df (^) 2 = N − k ) = F 0.05,( df 1 =2, df (^) 2 = 7 ) = 4. Reject the null hypothesis ifF ≥ 4.74. Step 4 : Construct the One-way ANOVA Table (^ T (^) i )

2

i = 1^ ni

k ∑ =^

2

4

2

3

2

3

2

4

2

3

2

3

( T )

2

N

2

10

2

10

y (^) ij 2 j = 1

n (^) i ∑ i = 1

k ∑ =^15

2

  • 20 2
  • 19 2
  • 14 2
  • 11 2
  • 15 2
  • 11 2
  • 18 2
  • 19 2
  • 23 2

SSTr =

( T (^) i )

2

i = 1^ n^ i

k ∑ −^

( ) T

2

N

SSE = y (^) ij 2 j = 1

n (^) i ∑ i = 1

k ∑ −^

( T (^) i )

2

i = 1^ n^ i

k ∑ =^2863 −^ 2812.3333^ =^ 50.

Source df S S MS = SS/df F -statistic p -value Treatments 2 89.8333 44.9167 6.2056 0.01 < p -value < 0. Error 7 50.6667 7. Total 9 140. Step 5 : Decision Since 6.2056 ≥ 4.74 (p-value ≤ 0.05), we shall reject the null hypothesis. Step 6 : State conclusion in words At the α = 0.05 level of significance, there exists enough evidence to conclude that there are differences in the branches regarding sick leave taken during 1990.