• Keine Ergebnisse gefunden

Power calculation in general

N/A
N/A
Protected

Academic year: 2022

Aktie "Power calculation in general"

Copied!
9
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Power, Type I and II Error

Type I error = reject H0 when H0 is true. The probability of a Type I error is called the

significance level of the test, denoted by α.

Type II error= fail to reject H0 when H0 is false. The probability of a type II error is denoted by β.

The power of a test is

power = P ( reject H0| H0 is false ) = 1 β

(2)

Test statistic under H

0

and H

A

Power

H0 HA

α/2 α/2

t 0 t δ

(t = t1α/2)

(3)

Power calculation in general

Prospective: want a power of 80%, determine the necessary sample size.

Retrospective: sample size was given, test not significant, how much power did we have?

(4)

2-sample t test

Let X11, . . . , X1n iid and X21, . . . , X2n iid independent.

H0 : X1i ∼ N1, σ2), X2j ∼ N2, σ2) with µ1 = µ2

HA : X1i ∼ N1, σ2), X2j ∼ N2, σ2) with µ1 6= µ2

Under H0:

X¯1 X¯2 ∼ N(0, σ2(n1 + n1)) Xσ¯1X¯2

2/n ∼ N(0, 1)

Estimate σ2 by Sp2 = S12+2S22 t = X¯1X¯2

Sp

2/n follows a t distribution with 2n 2 df

(5)

Power calculation

We reject H0 if t = |x¯1x¯2|

sp

2/n > t1α/2,2n2.

1β = P(X¯1 X¯2 Spp

2/n < t1−α/2,2n−2|HA)+P(X¯1 X¯2 Spp

2/n > t1−α/2,2n−2|HA).

Under HA X¯1X¯2δ

Sp

2/n follows a t distribution with 2n 2 df.

This implies

1β = P(X¯1 X¯2 δ Spp

2/n > t1−α/2 δ Spp

2/n)+P(X¯1 X¯2 δ Spp

2/n < tα/2 δ Spp

2/n)

| {z }

Prob ≈0 (for δ>0)

.

(6)

Quantiles of the t distribution

1 β

tβ

It follows that tβ = t1α/2 Sδn

p

2

(7)

Equations for power calculation

For any δ 6= 0, the following equations hold.

tβ = t1α/2 |δ| n sp

2 (1)

n = 2(t1α/2 tβ)2 · s2p

δ2 (2)

(8)

One-way anova

The power of the F test for H0 : µ1 = µ2 = . . . = µI is

1β = PHA(Test significant) = P (F > F1α,I1,NI|HA).

The distribution of F under HA follows a noncentral

F distribution with non-centrality parameter

δ2 = J

P A2i

σ2 and I 1 and N I degrees of freedom.

There are tables, graphs and software (e.g.

GPower) which determine the power given

I 1, N I, α and δ. Use ∆ = maxAiminAi .

(9)

Daily weight gains

Average daily weight gains are to be compared among pigs receiving 4 levels of vitamin B12 in their diet.

We estimate σ with σˆ = 0.015 lbs./day and we would like to detect a difference maxAi minAi = 0.03

lbs/day. We set α = 0.05 and want a power of 0.90 at least for a balanced design.

This implies ∆ = 2 and leads to a minimum of n = 9

pigs per group.

Referenzen

ÄHNLICHE DOKUMENTE

Indeed, many research projects aim to estimate a quantity rather than test a hypothesis, sample size calculation approaches for which are largely missing from other software

Our main results in [11] were two methods for estimating the sample size n 1−η , required for achieving the given coverage 1 − η in the case of uniform color distribution.. In

Stable gas condensate (oil), motor gasoline, diesel fuel, TS-1 engine jet fuel, liquefi ed gas, WFLH, PHF, GCLD Methanol production plantООО SibmetakhimTomsk1983750 thousand tons

The results indicate medium-size score differences between the categories obesity versus normal weight or underweight for the subscales Food available and Food present as well as

I n diesen drei Geschäftsfeldern ist Magna Steyr Powertrain heute Partner von fast allen Automobilherstellern: Audi, BMW, Daimler Chrysler, Fiat, Ford, General Motors, Ope!,

The answer, according to Hawkins, has its roots in persuasion, communication and argumentation... Mainstream realist and liberal explanations of international institutions

To learn the behavior of the devices, several inverters were offered up to 200% of the specified DC power (increased DC current) and simultaneously recorded

[r]