Top Banner
41

Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

Mar 07, 2018

Download

Documents

hoangthu
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...
Page 2: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

LastLecture

• ImportanceofStatisticalMeasurements

• DistinguishCategoricalfromNumericalvariables

• Knowingdifferentwaysofstatisticallydescribingdata

Page 3: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

LectureGoals

• VariabilityMeasurement– Percentiles

• Shape– Skewness,Kurtosis

• NormaldistributionoftheMean,SD

• MoreontheCentralLimitTheorem

• ConfidenceIntervals

Page 4: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

Notations

Characteristic Population(Parameter)

Sample(Statistic)

Mean

Variance

StandardDeviation(SD)

1  1  

2 ∑ ̅ 21  2 ∑ 21  

∑ ̅ 21  ∑ 2

1  

Page 5: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

StatisticalDescriptionofData…contd.

• Statisticsdescribesanumericsetofdatabyits- Center- Variability- Shape

• Statisticsdescribesacategoricalsetofdataby- Frequency,percentageorproportionofeachcategory

Page 6: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

MethodsofVariability Measurement

• Percentiles:Percentiles:Ifdataisorderedanddividedinto100parts,thencutpointsarecalledPercentiles.25th percentileistheQ1,50thpercentileistheMedian(Q2)andthe75th percentileofthedataisQ3.

Innotations,percentilesofadataisthe((n+1)/100)pth observationofthedata,wherepisthedesiredpercentileandnisthenumberofobservationsofdata.

Page 7: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

Percentiles

• Apercentileisavaluebelowwhichacertainpercentageoftheobservationslie

Example‐1:

DataSet:2,2,3,4,5,5,5,6,7,8,8,8,8,8,9,9,10,11,11,12

−Whatisthepercentilerankof‘10’?

Page 8: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

Percentiles

2,2,3,4,5,5,5,6,7,8,8,8,8,8,9,9,10,11,11,12

−Whatisthepercentilerankof‘10’?

− Ans.:PercentileRankof‘10’= 16

20 * 100 = 80%

Page 9: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

Percentiles

• Example‐2:(exerciseforstudents)

DataSet:2,2,3,4,5,5,5,6,7,8,8,8,8,8,9,9,10,11,11,12

−Whatvalueexistsatthepercentilerankingof25%?(i.e.whatscorehad25ofthescoresbelowit?)

Page 10: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

Percentiles

2,2,3,4,5,5,5,6,7,8,8,8,8,8,9,9,10,11,11,12

−Whatvalueexistsatthepercentilerankingof25%?

Value#=Percentile

100 * (n+1)

Page 11: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

StatisticalDescriptionofData...Contd.

• Statisticsdescribesanumericsetofdatabyits- Center- Variability- Shape

• Statisticsdescribesacategoricalsetofdataby- Frequency,percentageorproportionofeachcategory

Page 12: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

ShapeofData• Shapeofdataismeasuredby

- Skewness- Kurtosis

Page 13: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

Skewness

• Measuresasymmetryofdata- Positiveorrightskewed:Longerrighttail- Negativeorleftskewed:Longerlefttail

2/3

1

2

1

3

21

)(

)(Skewness

Then, ns.observatio be ,...,Let

n

ii

n

ii

n

xx

xxn

nxxx

Page 14: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

Kurtosis

• Measurespeakednessofthedistributionofdata.Thekurtosisofnormaldistributionis0.

3)(

)(Kurtosis

Then, ns.observatio be ,...,Let

2

1

2

1

4

21

n

ii

n

ii

n

xx

xxn

nxxx

Page 15: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

SummaryoftheVariable‘Age’inthegivendataset

Mean 90.41666667

Standard Error 3.902649518

Median 84

Mode 84

Standard Deviation 30.22979318

Sample Variance 913.8403955

Kurtosis -1.183899591

Skewness 0.389872725

Range 95

Minimum 48

Maximum 143

Sum 5425

Count 60

Histogram of Age

Age in Month

Num

ber o

f Sub

ject

s

40 60 80 100 120 140 160

02

46

810

Page 16: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

manystatisticaltestsassumevaluesarenormallydistributed

notalwaysthecase!examinedatapriortoprocessing

Page 17: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

TheNormalDistribution

Page 18: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

TheNormalDistribution

Page 19: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

TheStandardNormalCurve

• Standardizethe‘mean’tomakeit0

Page 20: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

CumulativeProbability

Page 21: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

TheEmpiricalRule

• Instatistics,the68–95–99.7rule,alsoknownasthethree‐sigmaruleorempiricalrule,statesthatnearlyallvaluesliewithinthreestandarddeviationsofthemeaninanormaldistribution.

• 68.27%ofthevaluesliewithinonestandarddeviationofthemean.

Page 22: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

Exercise‐ 1

• Thetestscoresforaclassarenormallydistributed.Theaveragetestscoreis75andthestandarddeviationis10.Drawthedataonthenormalcurve.

Page 23: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

Exercise‐ 2

• Whatistheprobabilityofastudentscoringbelow95onthistest?

• P(X<95)=?

Page 24: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

Exercise‐ 3

• Whatistheprobabilityofastudentscoringbetween55and65onthistest?

• P(55<X<95)=?

Page 25: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

Z‐test:Exercise‐ 4

• Thetestscoresforaclassarenormallydistributed.Given, =75and =10Whatistheprobabilitythestudentscoredabovea60?

• Z‐distribution:

Page 26: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

Exercise‐ 4

• Z

Page 27: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

Z‐values

• http://medicalnights.com/table‐of‐z‐values/

Page 28: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

T‐test:Conditions

• ThepopulationSDisunknown• Thesamplesizeislessthan30

• T‐distribution:

Page 29: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

T‐scores:Exercise‐ 5

• Theavg.testscoresforapopulationis75.Asampleof9studentsarerandomlyselected.TheSDforthesampleis10.

Whatistheprobabilitytheaveragescoreforthesampleisabove80?

Page 30: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

CentralLimitTheorem

• Thesamplemeanwillbeapproximatelynormallydistributedforlargesamplesizes,regardlessofthedistributionfromwhichwearesampling.

Page 31: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

CriticalValues

Page 32: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

ConfidenceInterval

Page 33: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

EstimatingthePopulationmean

Page 34: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

ConfidenceIntervals

• Confidenceinterval=

Page 35: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

ConfidenceLevel

• Themoreconfidentwewishtobe,thelargerourconfidenceintervalwillbe

• Note:ahighconfidenceisnotalwaysveryuseful• i.e.– “Icanguaranteethatthevalueisbetween1~1million.”

Page 36: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

GumballGuessingGame

Page 37: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

ComputingConfidenceIntervals

• Firstcomputesamplemeanandsamplevariance.

• ThenThasStudent'st‐distributionwithn− 1degreesoffreedom,where

Page 38: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

T‐table

• http://en.wikipedia.org/wiki/Student's_t‐distribution

Page 39: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

− What%ofthepopulationshouldbeincludedinthesample?dependsonaccuracy

• 2measuresaffecttheaccuratenessofthedata:

• marginoferror(orconfidenceintervals):‐ Positiveandnegativedeviationonresultsofthesample

• 5%marginerror:result=90%non‐congested• for‘sure’85%(90%‐5)and95%(90%+5)oftheentirenetworkactually isnon‐congested

• confidencelevel:‐ Howoftenthepercentageofthepopulationactuallylieswithintheboundariesofthemarginoferror• 95%confidencelevel=95%ofthetime85%‐ 95%non‐congested

Whereapplicable:SampleSize(recap)

Page 40: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

t‐tablevalues‐ intuition

Page 41: Last Lecture - Department of Electrical Engineering ...yasmeen/Statistics-Lec03.pdf · Critical Values. Confidence Interval. ... • Then T has Student's t‐distribution with n ...

NextLecture

• HypothesisTesting

• Correlation,Regression