elec 303 – random signals lecture 18 – statistics, confidence intervals dr. farinaz koushanfar...

33
ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Upload: theodora-malone

Post on 18-Dec-2015

224 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

ELEC 303 – Random Signals

Lecture 18 – Statistics, Confidence IntervalsDr. Farinaz Koushanfar

ECE Dept., Rice UniversityNov 10, 2009

Page 2: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Statistics

Page 3: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Example

Page 4: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Reduction of Cholesterol Level

Page 5: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Example (Cont’d)

Page 6: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Sample Mean

Page 7: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Sample Median

Page 8: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Sample Median (Cont’d)

Page 9: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Sample Mean vs. Sample Median

Page 10: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Percentile

Page 11: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Location of Data

Page 12: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Variability

Page 13: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Averages

Page 14: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Sample Variance

Page 15: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Statistics

Page 16: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Standard Deviation

Page 17: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Sample Range

Page 18: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Interquartile Range

Page 19: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Averaging?

Page 20: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Data Handling

Page 21: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Dot Plots

Page 22: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Histogram

Page 23: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Example

Page 24: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Histogram (Cont’d)

Page 25: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Histogram (Cont’d)

Page 26: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Confidence interval

• Consider an estimator for unknown • We fix a confidence level, 1-• For every replace the single point estimator

with a lower estimate and upper one s.t.

• We call , a 1- confidence interval

1)ˆˆ(P nn

]ˆ,ˆ[ nn

Page 27: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Confidence interval - example

• Observations Xi’s are i.i.d normal with unknown mean and known variance /n

• Let =0.05• Find the 95% confidence interval

Page 28: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Confidence interval (CI)

• Wrong: the true parameter lies in the CI with 95% probability….

• Correct: Suppose that is fixed• We construct the CI many times, using the

same statistical procedure• Obtain a collection of n observations and

construct the corresponding CI for each• About 95% of these CIs will include

Page 29: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

A note on Central Limit Theorem (CLT)

• Let X1, X2, X3, ... Xn be a sequence of n independent and identically distributed RVs with finite expectation µ and variance σ2 > 0

• CLT: as the sample size n increases, PDF of the sample average of the RVs approaches N(µ,σ2/n) irrespective of the shape of the original distribution

Page 30: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

CLT

A probability density function Density of a sum of two variables

Density of a sum of three variables Density of a sum of four variables

Page 31: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

CLT

• Let the sum of n random variables be Sn, given by Sn = X1 + ... + Xn. Then, defining a new RV

• The distribution of Zn converges towards the N(0,1) as n approaches (this is convergence in distribution),written as

• In terms of the CDFs

Page 32: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Confidence interval approximation

• Suppose that the observations Xi are i.i.d with mean and variance that are unknown

• Estimate the mean and (unbiased) variance

• We may estimate the variance /n of the sample mean by the above estimate

• For any given , we may use the CLT to approximate the confidence interval in this case

From the normal table:

Page 33: ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009

Confidence interval approximation

• Two different approximations in effect:– Treating the sum as if it is a normal RV– The true variance is replaces by the estimated

variance from the sample

• Even in the special case where the Xi’s are i.i.d normal, the variance is an estimate and the RV Tn (below) is not normally distributed