Docsity

Elements of Statistics: Sample Distributions, Confidence Intervals, and Hypothesis Testing, Study notes of Statistics

Toggle sidebar
bg1
ELEMENTS OF STATISTICS
OUTLINE
•Sample Distributions
•Confidence Intervals
•Hypothesis Testing
Reading: G. R. Cooper & C. D. McGillem 4.4 - 4.5
EE/STAT 322, #14 1
SAMPLE DISTRIBUTIONS
•Asamplemean ˆ
X=1
nn
i=1 Xiis unbiased and have a variance of σ2
x/n.
•We still want to know the distribution of ˆ
X, and how good it is.
•Define a new RV Z=ˆ
X−X
σ/√n.
We can verify that Zhas zero mean and unit variance ( σ2
z=1).
•If nis large ( n>30), we can approximate ˆ
Xand Zas Gaussian RVs.
FZ(z)=Φ(z)=1−Q(z)is a Gaussian distribution function.
EE/STAT 322, #14 2
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Elements of Statistics: Sample Distributions, Confidence Intervals, and Hypothesis Testing and more Study notes Statistics in PDF only on Docsity!

ELEMENTS OF STATISTICS

OUTLINE

  • Sample Distributions
  • Confidence Intervals
  • Hypothesis Testing

Reading: G. R. Cooper & C. D. McGillem 4.4 - 4.

EE/STAT 322, #14 1

SAMPLE DISTRIBUTIONS

  • A sample mean Xˆ = (^) n^1

∑n i=1 Xi^ is unbiased and have a variance of^ σ

2 x/n.

  • We still want to know the distribution of Xˆ, and how good it is.
  • Define a new RV Z = Xˆ−X σ/√n.

We can verify that Z has zero mean and unit variance ( σ^2 z = 1).

  • If n is large ( n > 30 ), we can approximate Xˆ and Z as Gaussian RVs.

FZ (z) = Φ(z) = 1 − Q(z) is a Gaussian distribution function.

SAMPLE DISTRIBUTIONS (CONT.)

If n is small ( n < 30 ): we approximate it with sample variance σ 

S/^ ˜ √n = S/√n − 1. Define T = Xˆ ˜−X S/√n =^

Xˆ−X S/√n− 1.

T has a Student’s distribution with v = n − 1 degrees of freedom, its PDF is given by

fT (t) = Γ(

v+1 2 ) √πvΓ(v/2)(1 + t^2 /v)−v+1 (^2).

Γ(k + 1) = kΓ(k), any k; Γ(k + 1) = k!, integer k.

f (^) Z ( z )

X

f (^) T ( t )

− (^3) − 2 − (^10 1 2 3) or t

Gaussian

  1. 2 student's

  2. 4

PDF of Normalized RV

EE/STAT 322, #14 3

CONFIDENCE INTERVAL

  • Sample mean gives a point estimation;

Confidence interval studies the chance that an estimate falls within a certain interval of the true mean X.

  • q-percent confidence interval is the interval within which the estimate lies in with a probability of q/ 100. The limits are called confidence limits and q is the confidence level.

CONFIDENCE INTERVAL (CONT.)

Example: A sample mean Xˆ is taken given X = 10, σ^2 = 9, and n = 900 samples. Find the 95% confidence interval.

Solution: We can denote the interval as [X − kσ/

n, X + kσ/

n].

Given P (X − kσ/

n ≤ Xˆ ≤ X + kσ/

n) = 95%, we need to determine k next.

Define Z = Xˆ−X σ/√n, we get^1 −^2 Q(k) = 0.^95 ,^ Q(k) = 0.^025 ,^ ⇒k^ = 1.^96.

So the interval for Xˆ is given by [10− 1. 96 ·

900] =

[9. 804 , 10 .196].

If we want to find the 90% confidence interval, we solve 1 − 2 Q(k) = 0. 90 , Q(k) = 0. 05 , ⇒k = 1. 64.

EE/STAT 322, #14 7

CONFIDENCE INTERVAL (CONT.)

Example: (Ex 4-4.1) Calculate PDF for the Student’s t density for t = 1 and v = 4.

Solution:

fT (t) =

Γ(v+1 2 ) √ πvΓ(v/2)

(1 + t^2 /v)−

v+1 2

Γ(^52 )

π4Γ(2)

(1 + 1/4)−^52 = 0. 2147.

CONFIDENCE INTERVAL (CONT.)

Example: (Ex 4-4.2) A large population of resistors whose values have a true mean of 100 Ω and sample STD of 4. Find the confidence limits of the sample mean for a confidence interval of 95 %. for (a) sample size n = 100; (b) n = 9.

Solution: (a). Let the resistance value be denoted as X. X = 100, S˜ = 4.

Define Z = Xˆ−X S/^ ˜√n. Since^ n^ = 100^ is large, we know^ Z^ ∼^ N^ (0,^ 1).

We get 2Φ(k) − 1 = 1 − 2 Q(k) = 0. 95 , Q(k) = 0. 025 , ⇒k = 1. 96.

Thus, the limits are [X − k S/˜

n, X + k S/˜

n] = [100 − 1. 96 · 4 / 10 , 100 +

  1. 96 · 4 /10] = [99. 22 , 100 .78].

EE/STAT 322, #14 9

CONFIDENCE INTERVAL (CONT.)

(b). n = 9 is small, we use Student’s t PDF for Z.

2 FT (k) − 1 = 0. 95 ⇒FT (k) = 0. 975 ⇒k = 2. 306.

In Table 4-2 of textbook, for v = n−1 = 8, it shows that for FT (t) = 0. 975 , t = 2. 306.

Thus, the limits are [X − k S/˜

n, X + k S/˜

n] = [100 − 2. 306 · 4 / 3 , 100 + 2. 306 · 4 /3] = [96. 93 , 103 .07].

If we use Gaussian assumption on Z, we get 2Φ(k) − 1 = 0. 95 ⇒k = 1. 96.

So [X − k S/˜

n, X + k S/˜

n] = [100 − 1. 96 · 4 / 3 , 100 + 1. 96 · 4 /3] = [97. 39 , 102 .61].

HYPOTHESIS TESTING (CONT.)

Example: A provider claims that his capacitors have mean values of 300 V

or greater. We test 100 samples and find the sample mean Xˆ = 290, and unbiased sample STD is 40. Use a 99% confidence interval, check whether the claim is true.

Solution: This is one-sided test. We know that S˜ = 40, n = 100, X ≥ 300.

Let us find the confidence lower-limit Xc, then compare Xˆ with Xc.

Define Z = Xˆ−X S/^ ˜√n.^ Since^ n^ = 100^ is large,^ we know^ Z^ ∼^ N^ (0,^ 1). Equivalently, we compare Z with Zc = XS/ ˜c−√Xn.

z = 29040 −/ 10300 = − 2. 5 , and

zc fZ^ (z)dz^ = 1^ −^ Φ(zc) = 0.^99 ,^ ⇒zc^ =^ −^2.^33.

z ∈ [zc, ∞), so the claim is false.

EE/STAT 322, #14 13

HYPOTHESIS TESTING (CONT.)

Example: Given the same setting as the previous, if we change q to 99 .5%, how would the result change?

Solution:

zc fZ^ (z)dz^ = 1^ −^ Φ(zc) = 0.^995 ,^ ⇒zc^ =^ −^2.^575.

Now z ∈ [zc, ∞), so the claim is true.

Large confidence interval leads to less-strict tests.

Define: level of significance + level of confidence = 100%

HYPOTHESIS TESTING (CONT.)

Example: For the same capacitor-test problem. Let n = 9, (^) Xˆ = 290, S^ ˜ = 40. For level of confidence of 99%, find whether the claim is true.

Solution: n = 9 < 30 , so we use Student’s t distribution.

Define t = Xˆ−X S/^ ˜√n. We compare^ t^ with^ tc^ =^

Xc−X S/^ ˜√n.

t = 29040 −/^3003 = − 0. 75 ,

∫ (^) ∞ tc fT^ (t)dt^ = 1^ −^ FT^ (tc) = 0.^99 ,^ ⇒FT^ (tc) = 0.^01 , and^ tc^ =^ −^2.^896. (From Table 4-4.2)

Procedure: FT (−tc) = 0. 99 ⇒−tc = 2. 896.

Now t ∈ [tc, ∞), so the claim is true.

⇒Smaller number of samples is not strict.

EE/STAT 322, #14 15

QUESTIONS & ANSWERS

Q1) A random number generator produces the following random numbers: 0.76, 0.23, 0.17.

(a) Find the sample mean;

(b) If the generator produces three digit random numbers that are uniformly distributed between 0.00 and 0.99, find the variance of the sample mean. (c) How large should the sample size be in order to obtain a sample mean whose standard deviation is no greater than 0.01?