Docsity

Lecture Notes on Elements of Statistics | STAT 322, Study notes of Statistics

Partial preview of the text

Download Lecture Notes on Elements of Statistics | STAT 322 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, #

1

SAMPLE DISTRIBUTIONS

A sample mean

X

n 1

∑

i n

X

i is unbiased and have a variance of

σ x 2 /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 (

σ z 2

= 1

If

n

is large (

n >

), we can approximate

X

and

Z

as Gaussian RVs.

F

Z

( z ) = Φ(

z ) = 1

Q

z )

is a Gaussian distribution function.

EE/STAT 322, #

2

CONFIDENCE INTERVAL

certain interval of the true meanConfidence interval studies the chance that an estimate falls within aSample mean gives a point estimation;

X

q -percent confidence interval is the interval within which the estimate

lies in with a probability of

q/

. The limits are called confidence limits

and

q

is the confidence level.

EE/STAT 322, #

4

CONFIDENCE INTERVAL

Consider

a

symmetric

interval

around

X

X

kσ/

n

X

X

kσ/

n

.

q/

P

X

k

σ

√

n

X ≤ X + k σ

√

n )

X

kσ/

√

n

X

−

kσ/

√

n

f

ˆ X

(^) ( x ) dx

)

( (^) x

f X^

)

( t

f T^

Gaussian

student's

X

n

k

X

/

σ

n

k

X

/

σ

−

PDF of un-normalized

RV X

A simpler approach: Let

Z

Xˆ

−

X

σ/

√

n .

Z

has zero mean and unit variance.

The interval above corresponds to

− k ≤ Z ≤ k

. Thus,

q/

P

− k ≤ Z ≤ k

k −

k

f Z (^) ( z ) dz

= F Z ( k ) − F Z ( − k ).

Note that

F

Z

( −

k ) +

F

Z

( k ) = 1

EE/STAT 322, #

5

CONFIDENCE INTERVAL (CONT.)

Example:

A sample mean

X

is taken given

X

σ

2

= 9

, and

n

Solution: samples. Find the 95% confidence interval.

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

Q

k ) = 0

k

So the interval for

X

is given by

[

900] =

[

196]

If we want to find the 90% confidence interval, we solve

1 − 2 Q ( k

Q

k ) = 0

k

EE/STAT 322, #

7

CONFIDENCE INTERVAL (CONT.)

Example:

(Ex 4-4.1) Calculate PDF for the Student’s

t

density for

t

= 1

and

v

Solution:

f T (^) ( t ) =

v 2 +

πv

v/

t 2 /v

−

v 2 +

2 5 )

π

4Γ(2)

−

52

EE/STAT 322, #

8

CONFIDENCE INTERVAL (CONT.)

(b).

n

is small, we use Student’s

t

PDF for

Z

F

T (^) ( k ) −

F

T (^) ( k ) = 0

k

In Table 4-2 of textbook, for

v

n

−

, it shows that for

F

T (^) ( t ) = 0

t

= 2

Thus, the limits are

[

X

k

˜

S/

n,

X

k S/˜

n

]

= [

3] = [

07]

If we use Gaussian assumption on

Z

, we get

k ) −

k

So

[

X

k S/˜

n,

X

k S/˜

n

] = [

3] =

[

61]

EE/STAT 322, #

10

HYPOTHESIS TESTING

Problem Statement:

Given an estimate (e.g., sample mean), we want

If true, the hypothesis is accepted; otherwise, the hypothesis is rejected.interval.to know whether or not this estimate is within the given confidence

One-sided and two-sided tests.

1000 Example: A provider claims the bulbs he produced have a mean life of

hours. If we test two bulbs, with a sample mean of 900 hours, can

true?If the sample mean is 1000 hours, can we say the provider’s claim iswe say the provider’s claim is false?

EE/STAT 322, #

11

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

, and

unbiased sample STD is

. Use a 99% confidence interval, check whether

Solution:the claim is true.

This is one-sided test. We know that

S

n

X

Let us find the confidence lower-limit

X

c , then compare

X

with

X

c .

Define

Z

Xˆ

−

X

S/ ˜

√

n .

Since

n

is large,

we know

Z

N

Equivalently, we compare

Z

with

Z c = X c − X

S/ ˜

√

n

.

z

=

290

−

300

40

/ 10

, and

∞ z c f Z ( z )

dz

z c ) = 0

, ⇒ z c = − 2.

z

6 ∈

[

z c , (^) ∞

, so the claim is false.

EE/STAT 322, #

13

HYPOTHESIS TESTING (CONT.)

Example:

Given the same setting as the previous, if we change

q

to

Solution:how would the result change?

∞ z c

f Z (^) ( z ) dz

z c ) = 0

, ⇒ z c = − 2.

Now

z ∈ [ z c , ∞ )

, so the claim is true.

Define: level of significance + level of confidence = 100%Large confidence interval leads to less-strict tests. EE/STAT 322, #

14

QUESTIONS & ANSWERS

Q1)

A random number generator produces the following random numbers:

(b) If the generator produces three digit random numbers that are uniformly(a) Find the sample mean;0.76, 0.23, 0.17.

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?

EE/STAT 322, #

16

QUESTIONS & ANSWERS (CONT.)

Q2)

It is desired to estimate the variance of a random phase angle that is

uniformly distributed over

[

, π

. Find the number of independent samples

1% of the true variance if an unbiased estimate is used.that are required to estimate this variance with a standard deviation that is EE/STAT 322, #

17