Random Variables. Copyright 2009 Pearson Education, Inc.

Similar documents
Chapter 16. Random Variables. Copyright 2010 Pearson Education, Inc.

Chapter 16. Random Variables. Copyright 2010, 2007, 2004 Pearson Education, Inc.

STA Module 3B Discrete Random Variables

STA Rev. F Learning Objectives. What is a Random Variable? Module 5 Discrete Random Variables

Random Variables. Note: Be sure that every possible outcome is included in the sum and verify that you have a valid probability model to start with.

Discrete probability distributions

Chapter 16 Random Variables

Chapter 3 - Lecture 3 Expected Values of Discrete Random Va

X Prob

MA 1125 Lecture 14 - Expected Values. Wednesday, October 4, Objectives: Introduce expected values.

15.063: Communicating with Data Summer Recitation 3 Probability II

Sampling Distribution Models. Copyright 2009 Pearson Education, Inc.

TOPIC: PROBABILITY DISTRIBUTIONS

Part 1 In which we meet the law of averages. The Law of Averages. The Expected Value & The Standard Error. Where Are We Going?

Math 140 Introductory Statistics. Next test on Oct 19th

variance risk Alice & Bob are gambling (again). X = Alice s gain per flip: E[X] = Time passes... Alice (yawning) says let s raise the stakes

7. For the table that follows, answer the following questions: x y 1-1/4 2-1/2 3-3/4 4

Insurance companies make bets. They bet that you re going to

Introduction to Statistics I

Statistics for Business and Economics

Mean of a Discrete Random variable. Suppose that X is a discrete random variable whose distribution is : :

EXERCISES RANDOM VARIABLES ON THE COMPUTER

Test 7A AP Statistics Name: Directions: Work on these sheets.

Section 1.3: More Probability and Decisions: Linear Combinations and Continuous Random Variables

MAKING SENSE OF DATA Essentials series

Lecture 8. The Binomial Distribution. Binomial Distribution. Binomial Distribution. Probability Distributions: Normal and Binomial

Lecture 9: Plinko Probabilities, Part III Random Variables, Expected Values and Variances

Section 0: Introduction and Review of Basic Concepts

Bayes s Rule Example. defective. An MP3 player is selected at random and found to be defective. What is the probability it came from Factory I?

Random Variables and Applications OPRE 6301

1/3/12 AP STATS. WARM UP: How was your New Year? EQ: HW: Pg 381 #1, 2, 3, 6, 9, 10, 17, 18, 24, 25, 31. Chapter

Chapter 7. Random Variables

Chapter 5. Continuous Random Variables and Probability Distributions. 5.1 Continuous Random Variables

6.2.1 Linear Transformations

Measuring Risk. Expected value and expected return 9/4/2018. Possibilities, Probabilities and Expected Value

The Provision for Credit Losses & the Allowance for Loan Losses. How Much Do You Expect to Lose?

Homework 9 (for lectures on 4/2)

Statistics for Managers Using Microsoft Excel 7 th Edition

Chapter 14 - Random Variables

Random variables. Discrete random variables. Continuous random variables.

MS-E2114 Investment Science Lecture 5: Mean-variance portfolio theory

A random variable (r. v.) is a variable whose value is a numerical outcome of a random phenomenon.

X P(X=x) E(X)= V(X)= S.D(X)= X P(X=x) E(X)= V(X)= S.D(X)=

Statistics. Marco Caserta IE University. Stats 1 / 56

19. CONFIDENCE INTERVALS FOR THE MEAN; KNOWN VARIANCE

Expectations. Definition Let X be a discrete rv with set of possible values D and pmf p(x). The expected value or mean value of X, denoted by E(X ) or

Econ 424/CFRM 462 Portfolio Risk Budgeting

Discrete Random Variables and Probability Distributions

9 Expectation and Variance

5. In fact, any function of a random variable is also a random variable

Stats CH 6 Intro Activity 1

2.) What is the set of outcomes that describes the event that at least one of the items selected is defective? {AD, DA, DD}

Appendix S: Content Portfolios and Diversification

STOR Lecture 7. Random Variables - I

Learning Goals: * Determining the expected value from a probability distribution. * Applying the expected value formula to solve problems.

6. THE BINOMIAL DISTRIBUTION

Review of Expected Operations

HHH HHT HTH THH HTT THT TTH TTT

Unit 4 The Bernoulli and Binomial Distributions

A random variable (r. v.) is a variable whose value is a numerical outcome of a random phenomenon.

Statistics for Business and Economics: Random Variables (1)

Shifting our focus. We were studying statistics (data, displays, sampling...) The next few lectures focus on probability (randomness) Why?

AP Statistics Chapter 6 - Random Variables

Mean, Variance, and Expectation. Mean

Statistics (This summary is for chapters 17, 28, 29 and section G of chapter 19)

Sampling & populations

CHAPTER 7 RANDOM VARIABLES AND DISCRETE PROBABILTY DISTRIBUTIONS MULTIPLE CHOICE QUESTIONS

MATH MW Elementary Probability Course Notes Part IV: Binomial/Normal distributions Mean and Variance

Simple Random Sample

Review of commonly missed questions on the online quiz. Lecture 7: Random variables] Expected value and standard deviation. Let s bet...

8.2 The Standard Deviation as a Ruler Chapter 8 The Normal and Other Continuous Distributions 8-1

Sampling and sampling distribution

Chapter 14. From Randomness to Probability. Copyright 2010 Pearson Education, Inc.

A LEVEL MATHEMATICS QUESTIONSHEETS DISCRETE RANDOM VARIABLES

Business Statistics 41000: Homework # 2

Estimating parameters 5.3 Confidence Intervals 5.4 Sample Variance

Week 7. Texas A& M University. Department of Mathematics Texas A& M University, College Station Section 3.2, 3.3 and 3.4

Discrete Random Variables

The Standard Deviation as a Ruler and the Normal Model. Copyright 2009 Pearson Education, Inc.

Law of Large Numbers, Central Limit Theorem

05/05/2011. Degree of Risk. Degree of Risk. BUSA 4800/4810 May 5, Uncertainty

Chapter 5: Discrete Probability Distributions

Statistics 6 th Edition

Discrete Probability Distribution

12. THE BINOMIAL DISTRIBUTION

12. THE BINOMIAL DISTRIBUTION

Binomial Random Variable - The count X of successes in a binomial setting

Chapter 5. Sampling Distributions

Chapter 6: Random Variables

Review of the Topics for Midterm I

Chapter 8 Homework Solutions Compiled by Joe Kahlig. speed(x) freq 25 x < x < x < x < x < x < 55 5

Economics 430 Handout on Rational Expectations: Part I. Review of Statistics: Notation and Definitions

Copyright 2011 Pearson Education, Inc. Publishing as Addison-Wesley.

Section 2: Estimation, Confidence Intervals and Testing Hypothesis

STA 6166 Fall 2007 Web-based Course. Notes 10: Probability Models

A.REPRESENTATION OF DATA


INVESTING FOR YOUR RETIREMENT. The choice is yours

Uniform Probability Distribution. Continuous Random Variables &

Transcription:

Random Variables Copyright 2009 Pearson Education, Inc.

A random variable assumes a value based on the outcome of a random event. We use a capital letter, like X, to note a random variable. A particular value of a random variable will be noted with a lower case letter, in this case x. 2

There are two types of random variables: Discrete random variables can take one of a finite number of distinct outcomes. Example: Number of credit hours Continuous random variables can take any numeric value within a range of values. Example: Cost of books this term 3

A probability mol for a random variable consists of: The collection of all possible values of a random variable, and the probabilities that the values occur. Of particular interest is the value we expect a random variable to take on, notated μ (for population mean) or E(X) for expected value. 4

The expected value of a (discrete) random variable can be found by summing the products of each possible value and the probability that it occurs: E X x P x Note: Be sure that every possible outcome is includ in the sum and verify that you have a valid probability mol to start with. 5

x Find the expected value of the random variable P(X=x) 12 0.35 20 0.53 35 0.12 E(x) = Σ x P(X) = 12(0.35) + 20(0.53)+35(0.12) = 19 6

A wheel comes up green 75% of the time and red 25% of the time. If it comes up green, you win $100. If it comes up red, you win nothing. Calculate the expected value of the game. x P(X=x) 100 0.75 0 0.25 E(x) = Σ x P(X) = 100(0.75) + 0(0.25) = $75 7

A company bids on two contracts. It anticipates a profit of $45,000 if it gets the larger contract and a profit of $20,000 if it gets the smaller contract. The company estimates that there is a 28% chance it will get the larger contract and a 61% change it will get the smaller contract. If the company does not get either contract, it will neither gain nor lose money. Assuming the contracts will be award inpenntly, what is the expected profit. 8

x P(x) $45,000.28 $20,000.61 $0.11 E(x) = Σ x P(X) = 45,000*.28 + 20,000*.61 + 0*.11 =$24,800 9

For data, we calculated the standard viation by first computing the viation from the mean and squaring it. We do that with discrete random variables as well. The variance for a random variable is: 2 2 Var X x P x The standard viation for a random variable is: SD X Var X 10

Find the standard viation of the random variable X. x P(X=x) 49 0.4 44 0.3 20 0.2 12 0.1 Var(X) = Σ (x μ) 2 P(x) σ = sqrt(var(x)) μ = E(X) = Σ x P(x) 11

μ = E(X) = Σ x P(x) = 49(0.4)+44(0.3)+20(0.2)+12(0.1) = 38 Var (x) = (49-38) 2 (0.4)+(44-38) 2 (0.3) +(20-38) 2 (0.2)+(12-38) 2 (0.1) = 191.6 σ = sqrt(var(x)) = 13.84 12

In a group of 10 batteries, 3 are ad. You choose 2 batteries at random. a) Create a probability mol for the number of good batteries you get. Number of good 0 1 2 P(number of good) 13

a) Create a probability mol for the number of good batteries you get. Number of good 0 1 2 P(number of good).067.467.467 P(0) = 3/10 * 2/9 = 6/90 = 0.067 P(1) = 7/10*3/9 + 3/10*7/9 = 0.467 P(2) = 7/10 * 6/9 =.467 14

b) Find the expected value of the good ones you get. Number of good 0 1 2 P(number of good).067.467.467 E(x) = Σ x P(x) = 0*.067 + 1*.467 + 2*.467 = 1.4 c) Find the standard viation Var(x) = Σ (x μ) 2 P(x) = (0 1.4) 2 (0.067) + (1 1.4) 2 (0.467) + (2 1.4) 2 (0.467) =0.37416 Σ = sqrt(var(x)) = 0.61 15

Adding or subtracting a constant from data shifts the mean but doesn t change the variance or standard viation: E(X ± c) = E(X) ± c Var(X ± c) = Var(X) Example: Consir everyone in a company receiving a $5000 increase in salary. 16

In general, multiplying each value of a random variable by a constant multiplies the mean by that constant and the variance by the square of the constant: E(aX) = ae(x) Var(aX) = a 2 Var(X) Example: Consir everyone in a company receiving a 10% increase in salary. 17

In general, The mean of the sum of two random variables is the sum of the means. The mean of the difference of two random variables is the difference of the means. E(X ± Y) = E(X) ± E(Y) If the random variables are inpennt, the variance of their sum or difference is always the sum of the variances. Var(X ± Y) = Var(X) + Var(Y) 18

Combining Random Variables (The Bad News) It would be nice if we could go directly from mols of each random variable to a mol for their sum. But, the probability mol for the sum of two random variables is not necessarily the same as the mol we started with even when the variables are inpennt. Thus, even though expected values may add, the probability mol itself is different. 19

A grocery supplier believes that in a dozen eggs, the mean number of broken eggs is 0.6 with a standard viation of 0.5 eggs. You buy 3 dozen eggs without checking them. a) How many broken eggs do you expect to get. E(3x) = 3E(x) = 3*(0.6) = 1.8 b) What is the standard viation Var(x + x + x) =.5^2 +.5^2 +.5^2 = 0.75 E(x + x + x) = sqrt(0.75) =.87 20

Random variables that can take on any value in a range of values are called continuous random variables. Continuous random variables have means (expected values) and variances. 21

Combining Random Variables (The Good News) Nearly everything we ve said about how discrete random variables behave is true of continuous random variables, as well. When two inpennt continuous random variables have Normal mols, so does their sum or difference. This fact will let us apply our knowledge of Normal probabilities to questions about the sum or difference of inpennt random variables. 22

At a certain coffee shop, all the customers buy a cup of coffee and some also buy a doughnut. The shop owner believes that the number of cups he sells each day is normally distributed with a mean of 300 cups and a standard viation of 25 cups. He also believes that the number of doughnuts he sells each day is inpennt of the coffee sales and is normally distributed with a mean of 150 doughnuts and a standard viation of 12. 23

a) The shop is open everyday but Sunday. Assuming day-to-day sales are inpennt, what is the probability he ll sell over 2000 cups of coffee in a week? μ = 6*300 = 1800 Var (6x) = 6Var(x) = 6*25 2 = 3750 σ = sqrt(3750) = 61.24 Z = (2000 1800)/41.24 = 4.85 1 - N(2000,1800,61.24) = 0.000546 =0.001 24

b) If he makes a profit of 50 cents on each cup of coffee and 40 cents on each doughnut, can he reasonably expect to have a day s profit of over $300? P(profit > $300) Daily profit = 0.5*300 + 0.4*150 = $210 Var (0.5C) + Var(0.4D) = 0.25*25 2 + 0.16*12 2 = 179.29 σ = sqrt(179.29) = 13.39 Z = (300 210)/13.39 = 6.72 No. $300 is more than 6 SD away from the mean. 25

c) What is the probability that on any given day he ll sell a doughnut to more than half of his coffee customers? Define a random variable Y = D ½ C. Find the probability that the random variable is greater than zero. μ = 150 ½ (300) = 0 Var(Y) = Var(D) + Var(0.5C) =12 2 +0.25*25 2 =300.25 σ = sqrt(300.25) = 17.33 Z = (0 0)/17.33 = 0 P(Z > 0) = 0.5 26

If X is a random variable with expected value E(X)=µ and Y is a random variable with expected value E(Y)=ν, then the covariance of X and Y is fined as Cov(X,Y) E((X )(Y )) The covariance measures how X and Y vary together. 27

Covariance, unlike correlation, doesn t have to be between -1 and 1. If X and Y have large values, the covariance will be large as well. To fix the problem we can divi the covariance by each of the standard viations to get the correlation: Corr( X, Y) Cov( X, Y) X Y 28

Probability mols are still just mols. Mols can be useful, but they are not reality. Question probabilities as you would data, and think about the assumptions behind your mols. If the mol is wrong, so is everything else. 29

Don t assume everything s Normal. You must Think about whether the Normality Assumption is justified. Watch out for variables that aren t inpennt: You can add expected values of any two random variables, but you can only add variances of inpennt random variables. 30