1 / 18

STT 315

STT 315. Ashwini Maurya. This lecture is based on Chapters 4.1-4.2. Acknowledgement: Author is thankful to Dr. Ashok Sinha, Dr . Jennifer Kaplan and Dr. Parthanil Roy for allowing him to use/edit some of their slides. Random Variable.

mircea
Télécharger la présentation

STT 315

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. STT 315 Ashwini Maurya This lecture is based on Chapters 4.1-4.2 Acknowledgement: Author is thankful to Dr. Ashok Sinha, Dr. Jennifer Kaplan and Dr. Parthanil Roy for allowing him to use/edit some of their slides.

  2. Random Variable A random variable is a numerical variable, values of which are associated to outcome(s) of some random experiment. This means that the values of random variable depends on chance. We usually denote them by capital letters like X, Y, Z etc. Example: Suppose you toss a fair coin twice. Let X = the number of heads out of these two tosses. Then X is a variable which takes the values 0, 1, 2 but the value depends on the outcome of two tosses, which is a random event. Therefore, X is a random variable.

  3. Two Types of Random Variables • Discrete Random Variable: These random variables can assume countable number of values. (e.g. – number of heads out of two tosses of a fair coin – this random variable can only take values 0, 1, 2.) • Continuous Random Variables: These random variables can assume any value contained in one or more intervals. (e.g. – total amount of rainfall (in inches) in East Lansing in 2011.) We first discuss some discrete random variables, and consider some continuous random variables later.

  4. Probability distributions of discrete random variables

  5. Example So, P(X=0) = ¼ , P(X=1) = ¼+¼ = ½ , P(X=2) = ¼. We denote p(x) = P(X=x). X = number of heads in two tosses of a fair coin. X takes values 0, 1, 2.

  6. Probability distribution function Consider a discrete random variable X and define the function: is called the probability distribution function of X. satisfies the following two properties: • for any real number .

  7. Another Example X = number of tails in three tosses of a fair coin. X takes values 0, 1, 2, 3.

  8. Another Example • Hence • P(X=0) = ⅛, • P(X=1) = ⅛ +⅛+ ⅛= ⅜, • P(X=2) = ⅛ + ⅛+ ⅛ = ⅜, and • P(X=3) = ⅛.

  9. Insurance Example Suppose the death rate in a year is 1 out of every 1000 people, and another 2 out of 1000 suffer some kind of disability. Suppose that an insurance company has to pay $10000 for death and $5000 for disability. Define X = amount (in dollars) the insurance company has to pay for one policyholder in a year. X takes values 10000, 5000, 0.

  10. Expected Value • For a discrete random variable X, the expected value of X (or expectation of X) is defined as the sum of the terms value times probability. sum over (value × probability). Suppose X takes values x1, x2,…, xnwith probabilities p(x1), p(x2),…, p(xn) respectively. Then • Often E(X) is also called mean of random variable X, and is denoted by Greek letter μ. • Roughly speaking, E(X) denotes the value you can expect X to take on the average.

  11. Insurance Example (revisited) Suppose the death rate in a year is 1 out of every 1000 people, and another 2 out of 1000 suffer some kind of disability. Suppose that an insurance company has to pay $10000 for death and $5000 for disability. Define X = amount (in dollars) the insurance company has to pay for one policyholder in a year. Then E(X) is computed as follows:

  12. Tossing Coin Thrice Example (revisited) • X = number of tails in three tosses of a fair coin. • Then E(X) is computed as follows: On the average, you can expect 1.5 tails out of 3 tosses of a fair coin.

  13. Variance and Standard Deviation • Variance of a random variable X is defined by • Standard deviation of X is the square-root of the variance of X • If many random variables are involved we may write or to identify. • Variance has the square unit of the random variable, whereas the standard deviation has the same unit as the random variable.

  14. Tossing Coin Thrice Example (revisited) • X = number of tails in three tosses of a fair coin. • Then var(X) is computed as follows: Standard deviation: σ= √0.75 = 0.866.

  15. TI 83/84 Plus commands We can use TI 83/84 to compute mean and standard deviation of a discrete random variable. • Press [STAT]. Under EDIT select 1: Edit and press ENTER. • Columns with names L1, L2 etc. will appear. • Type the values of random variable X under the column L1 and the values of p(x) under the column L2. • Press [STAT] and choose CALC at the top. • Then select 1: 1-Var Stats and press ENTER and 1-Var Stats will appear on the screen. Press [2nd] & 1 (to get L1), then press , (comma) and then press[2nd] & 2 (to get L2). Then press ENTER. • We shall be needing mean (), standard deviation (σx).

  16. Properties: Expectation and Variance • Expectation is the center of the probability distribution of a random variable. • Variance and standard deviations are measures of spread of the probability distribution of a random variable. Larger the variance/standard deviation, larger the spread (or dispersion). • For any real numbers a and b • The Chebyshev and empirical rules are also valid involving mean μ and standard deviation σ.

  17. An example: A Gambling Game • In a casino, you can play the following game: if you pay $10, the game-manager will toss a fair coin 3 times. You will earn $5 for every tail and nothing for the head(s). What is your expected profit/loss from this game? Is it wise to play this game over and over again? • Let X = the number of tails out of 3 tosses of a fair coin, and Y = your profit (in dollars) from this game. • Then you will pay $10 and make $5X, and therefore, Y = 5X - 10. • From our previous calculation: • Your expected profit: E(Y) = E(5X - 10) = 5E(X) - 10 = (5 × 1.5) - 10 = -2.5. • It is not wise to play this game because on the average, you are expected to lose $2.5 per game.

  18. An example: A Gambling Game • In a casino, you can play the following game: if you pay $10, the game-manager will toss a fair coin 3 times. You will earn $5 for every tail and nothing for the head(s). What is the variance of your profit from this game? What is the standard deviation of your profit from this game? • As we have seen your profit (in dollars) from this game is Y = 5X - 10. Your expected profit: E(Y) = E(5X - 10) = 5E(X) - 10 = (5 × 1.5) - 10 = -2.5. • So standard deviation of your profit: σ(Y) = σ(5X - 10) = 5σ(X) = 5 × 0.866 = 4.33, and variance is σ2 (Y)= (4.33)2 = 18.75.

More Related