Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Topic 4 - Continuous distributions Basics of continuous distributions Uniform distribution Normal distribution Gamma distribution.

Similar presentations


Presentation on theme: "1 Topic 4 - Continuous distributions Basics of continuous distributions Uniform distribution Normal distribution Gamma distribution."— Presentation transcript:

1 1 Topic 4 - Continuous distributions Basics of continuous distributions Uniform distribution Normal distribution Gamma distribution

2 2 Continuous Random Variables A continuous random variable can take on values from an entire interval of the real line. The probability density function (pdf) of a continuous random variable, X, is a function f ( x ) such that for a < b The cumulative density function (cdf) of X is defined as 2

3 33 Some relationships What is the relationship between the pdf ( f) and the cdf ( F) ? – You integrate the pdf to get the cdf – You take the derivative of the cdf to get the pdf P ( a ≤ X ≤ b ) = F ( b ) – F ( a ) P(X = a) = P ( a ≤ X ≤ a ) = F ( a ) – F ( a ) = 0

4 44 Pipeline example A pipeline is 100 miles long and every location along the pipeline is equally likely to break Let X be the distance measured in miles from the pipeline origin where a break occurs What is the cdf for X ? What is the pdf for X ? What is P(30 ≤ X ≤ 50)?

5 55 Requirements of a pdf A pdf must satisfy the following two requirements: Does the pipeline pdf satisfy these requirements?

6 66 Mean and variance of a cont. random variable

7 Comparisons discrete to continous 7

8 88 Uniform distribution A uniform distribution on the interval from A to B, U ( A, B ), is defined by a pdf of the form Does f ( x ) meet requirements? What is the cdf for the Uniform distribution?

9 99 Uniform, etc. What is the mean of the Uniform distribution? What is the variance of the Uniform distribution? –Using the same methodology as outlined above….

10 10 Gamma distribution The gamma distribution,  is defined by the following pdf where This is more for background purposes. We will not be doing Gamma calculations by hand. Properties of the gamma function,  –For  –If  is a positive integer,  – 

11 11 Properties of the Gamma distribution The Gamma is a valid pdf. All probabilities are at least 0 and the integral across all values of X (summation) is 1. Example w/o calculus is not possible, but “Proofs” information of the above concept are contained briefly in the Moment Generating Functions section of Topic 3 Files.

12 12 More on the gamma distribution The gamma distribution is used as a probability model for the time or space before the  th event in a Poisson process where events occur at the rate  Number of events is fixed and the interval is varied. Opposite of the Poisson.  is called the shape parameter –Normally listed as a specific number of events in the problem.  is called the scale parameter,  where  is defined by the Poisson. The exponential distribution is a special case of the gamma This with  This distribution is used to model the time “between” events that are Poisson distributed (the “next” occurrence).

13 13 Uses of the Gamma Distribution Some examples of use for the Gamma include: –Queuing models, the flow of items through manufacturing and distribution processes and the load on web servers and the varied forms of telecommunications systems. These are based on a series of exponentially distributed values, which is a simplified Gamma distribution (mean time between arrivals). –Due to its moderately skewed profile, it can be used as a model in a range of disciplines. Climatology, where it is a workable model for rainfall Financial services where it has been used for modelling insurance claims and the size of loan defaults and as such has been used in probability of ruin and value at risk calculations.

14 14 Back to the clunker car Recall that my car breaks down once a week on average. If the breakdowns occur as events in a Poisson process, then what is the probability less than a week passes before my first breakdown? Gamma or Poisson? Which calculator

15 15 Pipe example Defects along a piece of pipe occur as events in a Poisson process with an average of 2 defects every 10 feet. What is the probability that the third defect will occur at least 20 feet from the beginning of the pipe? – –How do you define the distribution? –How do you write the probability statement in this case? Which calculator

16 16 Check out counter example Customers arriving at a checkout counter of a supermarket are Poisson distributed at a rate of one every two minutes. What is the probability that at most 10 minutes pass before a 3 rd customer arrives in the line? –What’s lambda? Occurrences over time…..1 per 2 minutes or 5 per 10 minutes, so lambda is 5/10 –What’s alpha? Shape parameter…..in this case, the probability associated with the 3 rd customer. –What’s beta? Scale parameter….always 1 divided by lambda, so in this case, it’d be 2. Which calculator

17 17 Normal distribution The normal distribution, N(  2 ), has a pdf given by The normal distribution is always bell shaped. The normal distribution is defined in terms of its mean and standard deviation, since those parameters are on a consistent basis and are comparable. Again, we will not be doing hand calculations of probabilities using this function, but you could approximate it by taking the integral within the stated limits.

18 18 Empirical rule This is a rough approximation or “back of the envelope” guide to the areas under the Normal. What is the “approximate” or “rough” probability ….. –a normal falls within one standard deviation of the mean? –a normal falls within two standard deviations of the mean? –a normal falls within three standard deviations of the mean? 18

19 19 Empirical rule (cont) What is the “approximate” or “rough” probability for a normal distribution that a randomly selected value - –Falls +/- 1 standard deviation of the mean? –Falls +/- 2 standard deviation of the mean? –Falls +/- 3 standard deviation of the mean? 19

20 20 Side effects of anti-depressant meds The weight gain associated with an antidepressant is normally distributed with a mean of 6 lbs and a standard deviation of 3 lbs. Using the Empirical Rule ---- What is the approximate probability of weight loss? What is the approximate probability of a weight gain between 0 and 12 pounds? What is the approximate probability of a weight gain between 9 and 12 pounds?

21 21 Weight gain example – more exact The weight gain associated with an antidepressant is normally distributed with a mean of 6 lbs and a standard deviation of 3 lbs. What is the probability of weight gain? What is the probability of gaining between 0 and 12 lbs? Normal calculator

22 22 Cement Production Example ImanAggie Redimix has a contract with TxDot to supply concrete for one of the overpasses on Hwy 6 just south of town. Assume that company’s production is normally distributed with a mean of 3,200 psi and a standard deviation of 250 psi, what’s the probability that a specific batch will have a strength below 2,700 psi? Why is that important? Demonstrate on the next slide.

23 23 Cement Production Example (cont) The distribution of production values looks like this.. Normal calculator

24 24 Standard normal distribution If X has a N(  2 ) distribution, then Z=( X -  )/  has a standard normal distribution, N (0,1). The standard normal is an important reference distribution. P( X ≤ x ) = P( Z ≤ ( x -  )/  ) =  ( x -  )/  The cdf of a standard normal,  z ), is tabled in many textbooks. Standardized values, ( x -  )/  indicate how far in standard deviations the value x is from  For any normal distribution, probabilities can be phrased in terms of standardized values

25 25 Examples of converting x to Z and from Z to x It’s important to be able to make this conversion. The cement foreman doesn’t know a Z from a hole in the ground, but he knows his production (which is all x values) Given X~N(3200,250), what’s P(X<2700)? Remember that Phi of -2,, is the area to the left of 2 standard deviations to the left of the mean on the Normal.

26 26 ….and conversely Suppose that ImanAggie wants to make the marketing claim that less than 1% of their product fall below a certain psi level. How do you determine that level of psi? What’s the value of psi, such that 5% of the overall production is below that level? This type of calculation shows up a lot in Statistics.

27 27 Comparison of X and Z values

28 28 Is my data normal? In StatCrunch, a quantile-quantile plot (QQ plot) plots ordered data values versus quantiles of a standard normal distribution. If the data are from a normal distribution, the points should lie approximately on a straight line. BIG problems associated with assuming you have a normal, when the data’s not really normal. QQ Plot Example

29 29 Other distributions The Weibull distribution and the log normal distribution are used to model mean time to failure. Therefore, used a lot in reliability studies. The beta distribution is used to model proportions. There are many other distributions out there. Choose the one that serves as the best probability model for your setting. Waaay out of scope for STAT 211… The additional file for Topic 4 has worked out examples (some with discussion) for a variety of continuous distribution applications.


Download ppt "1 Topic 4 - Continuous distributions Basics of continuous distributions Uniform distribution Normal distribution Gamma distribution."

Similar presentations


Ads by Google