One-tail test: Weighted die

Your friend gives you a single regular die, and say she is worried that it has been weighted to prefer the outcome of 2. She wants you to test it.

Design a significance test for the data of 20 rolls of the die to determine whether the die is weighted. Use significance level α=0.05.

Solution

Let X count the number of 2s that come up.

The Claim: “the die is weighted to prefer 2” The null hypothesis H0: “the die is normal”

Assuming H0 is true, then X∼Bin(20,1/6), and therefore:

PX|H0(k)=(20k)(1/6)k(5/6)20−k

⚠️ Notice that “prefer 2” implies the claim is for more 2s than normal.

Therefore: Choose a one-tail rejection region.

Need r such that:

P[X≥r|H0]=0.05⟺P[X<r|H0]=0.95

Solve for r by computing conditional CDF values:

k:01234567
FX|H0(k):0.0260.1300.3290.5670.7690.8980.9630.989

Therefore, choose r=6:

P[X≥6|H0]<0.04, but P[X≥5|H0]>0.05. Final answer:

R={x|x≥6}

Two-tail test: Circuit voltage

A boosted AC circuit is supposed to maintain an average voltage of 130V with a standard deviation of 2.1V. Nothing else is known about the voltage distribution.

Design a two-tail test incorporating the data of 40 independent measurements to determine if the expected value of the voltage is truly 130V. Use α=0.02.

Solution

Use M40(V) as the decision statistic, i.e. the sample mean of 40 measurements of V.

The Claim to test: E[V]≠130

The null hypothesis H0: E[V]=130

Rejection region:

|M40−130|≥c

where c is chosen so that P[|M40−130|≥c]=0.02


Assuming H0, we expect that:

E[M40]=130,σM402=2.1240≈0.110

Recall Chebyshev’s inequality:

P[|M40−130|≥c]≤σM402c2≈0.110c2

Now solve:

0.110c2=0.02≫≫c≈2.348

Therefore the rejection region should be:

M40<127.65∪132.35<M40

One-tail test with a Gaussian: Weight loss drug

Assume that in the background population in a specific demographic, the distribution of a person’s weight W satisfies W∼𝒩(190,242). Suppose that a pharmaceutical company has developed a weight-loss drug and plans to test it on a group of 64 individuals.

Design a test at the α=0.01 significance level to determine whether the drug is effective.

Solution

Since the drug is tested on 64 individuals, we use the sample mean M64(W) as the decision statistic.

The Claim: “the drug is effective in reducing weight”

The null hypothesis H0: “no effect: weights on the drug still follow 𝒩(190,242)”

Assuming H0 is true, then W∼𝒩(190,242).

⚠️ One-tail test because the drug is expected to reduce weight (unidirectional). Rejection region:

M64(W)≤r

Calculate:

σM642≫≫24264≫≫9

⚠️ Standardized M64(W) is approximately normal!

(The standardization of M64(W) removes the effect of 1n. As if it’s the summation.)

So, standardize and apply CLT:

M64(W)−1909∼𝒩(0,1),≫≫P[M64(W)≤r]≈P[Z≤r−1903]=Φ(r−1903)

Solve:

P[M64(W)≤r]=0.01≫≫Φ(r−1903)=0.01≫≫Φ(190−r3)=0.99≫≫190−r3=2.33≫≫r=183.01

Therefore, the rejection region:

M64(W)≤183.01