480 likes | 757 Views
Continuous Random Variables. Continuous Random Variables Infinite Number of Possibilities. Discussion topics Cumulative distribution functions Method of calculation Relationship to pdf General characteristics of a continuous rv Mean and variance Standard models
E N D
Continuous Random Variables statistical processes
Continuous Random Variables Infinite Number of Possibilities • Discussion topics • Cumulative distribution functions • Method of calculation • Relationship to pdf • General characteristics of a continuous rv • Mean and variance • Standard models • Use as models for physical processes • Testing for normality statistical processes
F(y0) y0 Cumulative Distribution Functions What does the CDF look like for a discrete random variable?? F(y0) = p(y y0) statistical processes
F(y1) F(y0) y0 y1 CDFs - Calculating p(y0 y y1) p(y0 y y1) = F(y1) - F(y0) statistical processes
CDFs of Continuous RVs - Some Characteristics • CDF is continuous • What about for a discrete rv • Monotonically increasing function • Has asymptotes at 0 and 1 • Does F(y) have to be 0 & 1 at the extremes? • Some previously encountered values F(m) = 0.50 median F(QL) = 0.25 lower quartile F(QU) = 0.75 upper quartile statistical processes
Relationships Involving CDF & PDF For a continuous rv, what is p(y = y0)? statistical processes
Function g of y Pdf of y Expected Values - Continuous RVs Recall that E( ) is a linear operator. statistical processes
May be 1, 2, … “about the point y0” Moments - Useful Descriptors of Distributions • General form for a moment of a rv E(y - y0)k Above read as: “the kth moment about the point y0” • What is the 1st moment about the origin? • What is the 2nd moment about the mean? statistical processes
Moments – Lower Order Moments • 1st moment about the origin E(y - 0)1 = E(y) • 2nd moment about the mean E(y - μ)2 = VAR(y) statistical processes
Higher Order Moments - About the Mean • Skewness is 3rd moment about the mean E[(y - )3] • If > 0 skewed to the right • If < 0 skewed to the left • If = 0 symmetric • Kurtosis is 4th moment about the mean E[(y - )4] • If > 0 fat tailed • If < 0 thin tailed • If = 0 normal distribution • Look at results from Excel Descriptive Statistics statistical processes
Kurtosis negative – thin tailed Positive skewness – to the right Higher Order Moments – About the Mean statistical processes
Continuous Distribution FunctionsSome Commonly Encountered Models • Recall purpose of describing standard distribution functions • Models for processes found in nature • Building blocks for statistical analysis • Many, many other standard models • Specialized purposes statistical processes
Why does this have to be this value? Uniform Distribution- A Simple Model f(y) 1/(b-a) y a b When would you use this type of distribution function? Can you think of an application for this function? What does the CDF look like? statistical processes
Uniform Distribution Function statistical processes
c = 14 b = 6 a = 2 Triangular Distribution What do the parameters, a, b & c represent? When would this be a useful model? statistical processes
Triangular Distribution – PDF & CDF for y~Triang(a,b,c) statistical processes
Triangular Distribution - Mean & Variance statistical processes
Note convention = 5 Location parameter Normal Distribution - A Bell Curve 2 is shape parameter Would you use the above to model the weight of an object? What is a truncated normal distribution? statistical processes
y~N(, 2) PDF z the standard normal variable z = (y - ) / y ~ N(, 2) z ~ N(0, 1) What does this do? Note why if y is a rv then z must be a rv. Normal Distributions - Characteristics & Extension • CDF • No closed form expression • What does this mean & imply? statistical processes
Transforming to z Values Why are transformations to z values useful? 1) Detection of outliers easier 2) F(y0) = F(z0) • What does the above mean? • Can produce tables of F(z) • “Z” Table in back of Text statistical processes
For a given value z0, Table 4 gives the area A (shown above) Using Standard Normal Tables z0 Let z0 = 0.27, what is A? Verify the empirical rule. What is interpretation of A? statistical processes
Finding Probabilities - y~N(, 2) Given y~N(120, 152), find • p(y 120) • p(y < 120) • p(y < 108) • p(115 y 124) statistical processes
SW use these: Best Fit Stat:Fit many others Assessing Normality • Objective • Given a set of observations of rv y • Is y a normally distributed rv? What is a more general problem? • Methods of addressing more general problem • 2 test (read as Chi squared) • Kolmogorov-Smirnov test • Anderson-Darling test Why would you be interested in knowing? statistical processes
Normality Tests - Visual Inspection • Visual inspection • Construct plot (histogram, stem & leaf, etc.) • Does it look normal? • Advantages of method • Simple, no special expertise needed to conduct or interpret • Disadvantages • Crude, no specific measures • Dependent on analyst statistical processes
Normality Tests - Interquartile Range • Calculate IQR • Recall IQR? • Find ratio IQR/s • s is standard deviation of sample observations • If IQR/s 1.3 sample is ~N • Why should IQR/s 1.3? • For z (QU - QL) / s = [0.67 - (-0.67)] / 1 = 1.34 What are advantages & disadvantages? statistical processes
Normality Tests - Normal Probability Plot • Several approaches • Same general concept • Plot observations vs. E(observation if ~N) • Should be approximately linear relationship • Steps • Generate n random samples of zi from ~ N(0,1) • Convert zi to corresponding yi • Generating E(observation if ~N) • Rank all yi • Plot the actual observations vs. randomly generated yi What should the plot look like? And why?? statistical processes
Continuing With Standard Models - The Gamma Distribution y~ ( , ) • PDF • CDF • No closed form solution • Interesting characteristics • Only assumes non-negative values • Described by two parameters • a shape parameter • a scale parameter = ; 2 = 2 statistical processes
Gamma becomes a 2 distribution when = /2 and = 2 (for an integer), y~X2() Turns out even more interesting The 2 DistributionA Special Case of the Gamma statistical processes
Preview - Coming Attractions • Uses of the 2 distribution • Estimating the variance of a population • Goodness of fit test • Take sample observations • Postulate distribution of parent population • How good is fit of postulated distribution? • Will discuss both of above during course statistical processes
Gamma becomes an exponential when = 1 and = any constant, y~Exp( ) Interesting characteristic Memoryless distribution (aka Markov property) Exponential DistributionAnother Special Case of a Gamma statistical processes
s t What Do We Mean byMemoryless What does this mean in English? statistical processes
Exponential & Poisson - Two Sides to the Same Coin What is y for each of the above? What are and , respectively? What is the relationship between and ? Can you see relationship between exp. & poisson? statistical processes
Exponential & Poisson - A More Formal Relationship • Consider case of incoming phone calls x # of calls in 1 minute, x ~ Poi() • If just received call, what is p(>30 minutes to next call)? • Let y # of calls in t minutes y ~ Poi(t) Why?? statistical processes
Continuing With Example • What happens when you calculate p(y=0)? If above is p(T > t), what is p(T t)?? What does p(T t) remind you of?? statistical processes
Seeing Relationships - Exponential & Poisson statistical processes
Seeing Relationships - Exponential & Poisson The same expressions! RV y is general expression statistical processes
Exponential Distribution - Typical Form statistical processes
Exercise • Consider following problem • You manufacture power supplies that exhibit on average 2 failures every 8000 hours of operation • What is p(you see 2 failures in 4000 hours of operation)? • What is p(power supply will operate >6000 hours without a failure)? statistical processes
Almost like saying 1 failure in 4000 hours Exercise statistical processes
Exercise (continued) Can you solve this using the Poisson distribution?? statistical processes
Weibull Distribution y~W( , ) • Valid only for y 0 Comments on Weibull • Also used for reliability modeling • May also degenerate into exponential distribution statistical processes
Beta Distribution y~ B( , ) • Valid for [0,1] Comments on Beta • What physical processes can we model that fall in [0,1]? • How can we make outside [0,1]? • Useful for project scheduling statistical processes
Class 4 Readings & Problems • Reading assignment • M & S • Chapter 5 Sections 5.1 - 5.9 • B & C • Chapter 5 • Recommended problems • M & S Chapter 5 • 62, 82, 86, 87,88,89, 96, 98 statistical processes