1 / 24

Chapter 7

Chapter 7. Random Variables. Warm UP. P. 402 #9. Random Variable. A random variable is a variable whose value is a numerical outcome of a random phenomenon. We denote random variables by capital letters near the end of the alphabet, such as X or Y. Introduction.

Download Presentation

Chapter 7

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. Chapter 7 Random Variables

  2. Warm UP • P. 402 #9

  3. Random Variable • A random variable is a variable whose value is a numerical outcome of a random phenomenon. • We denote random variables by capital letters near the end of the alphabet, such as X or Y.

  4. Introduction • The outcome of an experiment need not be a number, for example, the outcome when a coin is tossed can be 'heads' or 'tails'. However, we often want to represent outcomes as numbers. A random variable is a function that associates a unique numerical value with every outcome of an experiment. The value of the random variable will vary from trial to trial as the experiment is repeated.

  5. 7.1 Discrete and Continuous Random Variables • There are two types of random variable - discrete and continuous. A random variable has either an associated probability distribution (discrete random variable) or probability density function (continuous random variable).

  6. Examples • Ex 1: A coin is tossed ten times. The random variable X is the number of tails that are noted. X can only take the values 0, 1, ..., 10, so X is a discrete random variable. • Ex 2:A light bulb is burned until it burns out. The random variable Y is its lifetime in hours. Y can take any positive real value, so Y is a continuous random variable.

  7. Discrete • A discrete random variable is one which may take on only a countable number of distinct values such as 0, 1, 2, 3, 4, ... • Discrete random variables are usually (but not necessarily) counts. • If a random variable can take only a finite number of distinct values, then it must be discrete. • Examples of discrete random variables include the number of children in a family, the Friday night attendance at a cinema, the number of patients in a doctor's office, the number of defective light bulbs in a box of ten.

  8. Probability Distribution • A table of values of X (or Y) and the probabilities that represent them. They must satisfy 2 requirements: • A. Each is a number between 0 and 1. • B. The sum of the probabilities adds to 1.

  9. Probability histograms can be used to display probability distributions. • The top picture is the probability histogram for random digits 1-9. • The bottom pictures is the probability histogram for Benford’s Law.

  10. Problem 7.1 p395Roll of the die a. P(rolling a # <3) = 1/6 +1/6 = 2/6 or 1/3 b.Averages in order: .156, .174,.186,.158,.16,.166

  11. Problem 7.2 p396 Three Children • GGG, GGB, GBG, GBB, BBB, BBG, BGB, BGG; P(of any one) = 1/8 • P(X=2) = 3/8, see table below • See below

  12. Problem 7.3 p396 Social Class in England • The percent in class 5 is 1%. • .48+.38+.08+.05+.01 = 1, Satisfies the requirement for a discrete probability distribution. • P(X≤ 3) = .48 + .38 + .08 = .94 • P(X< 3) = .48 + .38 = .86 • P(X> 3) = .05 + .01 = .06 OR P(X≥ 4) = .05 + .01 = .06

  13. Continuous Random Variables • A continuous random variable is one which takes an infinite number of possible values. • Continuous random variables are usually measurements. • Examples include height, weight, the amount of sugar in an orange, the time required to run a mile.

  14. A continuous random variable is not defined at specific values. Instead, it is defined over an interval of values, and is represented by the area under a curve (in advanced mathematics, this is known as an integral). • The probability of observing any single value is equal to 0, since the number of values which may be assumed by the random variable is infinite.

  15. Suppose a random variable X takes all values over an interval of real numbers. Then the probability that X is in the set of outcomes A, P(A), is defined to be the area above A and under a curve. The curve, which represents a function p(x), must satisfy the following: • 1: The curve has no negative values (p(x) > 0 for all x) • 2: The total area under the curve is equal to 1. • A curve meeting these requirements is known as a density curve.

  16. The Uniform Distribution • A random number generator acting over an interval of numbers (a,b) has a continuous distribution. Since any interval of numbers of equal width has an equal probability of being observed, the curve describing the distribution is a rectangle, with constant height across the interval and 0 height elsewhere. Since the area under the curve must be equal to 1, the length of the interval determines the height of the curve.

  17. Uniform Distribution

  18. The previous graphs plotted the density curves for random number generatored over the intervals (4,5) (top left), (2,6) (top right), (5,5.5) (lower left), and (3,5) (lower right). The distributions corresponding to these curves are known as uniform distributions.

  19. Remember that our notation for Normal distributions is N(μ,σ),where μ is the mean and σ is the standard deviation. Then Z = X- μ/ σ , and Z is a normal random variable with distribution N(0,1). From this we can standardize any normal distribution plot. Then, using the z-score we can find probabilities of events from the original distribution.

  20. A class of 500 students have a class averages with a normal distribution. • The next four histograms represent the same grades, but their intervals differ. You could make the width of the intervals narrower and narrower, until finally the smooth curve can be drawn on the graph. This curve is the density function.

More Related