1 / 25

Continuous Random Variable

Continuous Random Variable. Random Variables. Random variables can be classified as either discrete or continuous. Example: Discrete: mostly counts Continuous: time, distance, etc. . Difference between discrete and continuous random variables.

andra
Download Presentation

Continuous Random Variable

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Continuous Random Variable

  2. Random Variables • Random variables can be classified as either discrete or continuous. • Example: • Discrete: mostly counts • Continuous: time, distance, etc.

  3. Difference between discrete and continuous random variables • 1. They are used to describe different types of quantities. • 2. We use distinct values for discrete random variables but continuousreal numbers for continuous random variables. • 3. Numbers between the values of discrete random variable makes no sense, for example, P(0)=0.5, P(1)=0.5, then P(1.5) has no meaning at all. But that is not true for continuous random variables.

  4. Difference between discrete and continuous random variables • Both discrete and continuous random variables have sample space. • For discrete r.v., there may be finite or infinite number of sample points in the sample space. • For continuous r.v., there are always infinitely many sample points in the sample space.

  5. Difference between discrete and continuous random variables • *** For discrete r.v., given the pmf, we can find the probability of each sample point in the sample space. • *** But for continuous r.v., we DO NOT consider the probability of each sample point in the sample space because it is defined to be ZERO!

  6. Difference between discrete and continuous random variables • In another word, • For discrete random variables, only the value listed in the PMF have positive probabilities, all other values have probability zero. We can find probability for some specific value or an interval of values. • For continuous random variables, the probability of every specific value is zero. Probability only exists for an interval of values for continuous r.v..

  7. Example • Let X be the number of stops for a citybus going from downtown Lafayette to Purdue campus. X is a discrete/continuous? • Let Y be the distance from the train station and where a citybus can stop at when it comes from downtown Lafayette to Purdue campus. Y is a discrete/continuous? • P(X=3 stops)=? • P(Y=150 yards)=?

  8. Ways to identify a continuous random variable • PDF and CDF. • PDF is Probability Density Function, it is similar to the PMF for discrete random variables, but unlike PMF, it does not tell us about the probability. • CDF is Cumulative Distribution Function, it has a counterpart for discrete random variables, but for continuous random variables, it is the only way we can find a probability.

  9. For discrete random variables: • PMF: P(X=K) • CDF: P(a < X < b) = ∑KP(X=K) • For continuous random variables: • PDF: f(x) • CDF: F(x)=P(a < X < b) = ∫ab f(x)dx

  10. Summary • For discrete random variables, both PMF and CDF can tell us probabilities. • For continuous random variables, ONLY CDF can tell us probabilities.

  11. Look at PDF for continuous r.v. • Given X is a continuous random variable with sample space Ω and its PDF is f(x), f(x) must satisfy the following conditions: • 1. 0≤ f(x) • 2. ∫Ωf(x) dx= 1 • The same as the conditions for discrete random variables.

  12. Example I • A continuous random variable X has the pdf f(x)=c(x-1)(2-x) over the interval [1, 2] and 0 elsewhere. What value of c makes f(x) a valid pdf for X?

  13. Example I • What is P(x>1.5)?

  14. Uniform Probability Distribution • Think about the citybus example and simplify it. Suppose the citybus starts at point A and goes toward point B, if this bus can stop at will, or stop at each point between A and B with equal probability, we let X be the distance between where the bus stops and point A. • Then X is a random variable and it is said to follow a Uniform distribution.

  15. Uniform Probability Distribution • We will talk about several continuous distributions, we need to know: • Their PDF • How to calculate probability under those distributions. • How to find mean and variance for those random variables

  16. Uniform Probability Distribution • For Uniform: • PDF: • In order to calculate the probability, we need to know the distance between A and B. • In another word, the parameters for a uniform distribution are A and B in this case, where A and B are defined as the distance mark for the two points.

  17. Uniform Probability Distribution • For example, if B is 2000 yards away from A, then B-A=2000. • And the probability that the bus stops within 200 yards from A would be

  18. Uniform Probability Distribution • Then what is the probability that the bus stops somewhere between 400 yards away from A and 600 yards away from A?

  19. Uniform Probability Distribution • What is the probability that the bus stops within 200 yards away from point B?

  20. Uniform Probability Distribution • What is the probability that the bus stops half way between A and B.

  21. Uniform Probability Distribution Given that a continuous r.v. follows a uniform distribution with pdf:

  22. Uniform Probability Distribution • Let T be the time when a STAT225 student turned in his/her exam 1 hour after the exam started. Suppose this time is uniformly/evenly distributed between 9pm and 9:30pm. • What is the pdf of T?

  23. Uniform Probability Distribution • What is the probability that a student turned in the exam between 9:10pm and 9:25pm?

  24. Uniform Probability Distribution • What is the mean and standard deviation of T?

  25. Uniform Probability Distribution • What is the probability that a student turned in the exam at 9:30pm? • What is the probability that a student turned in the exam by 9:30pm?

More Related