Random Variables. Outcome X (1, 1) 2 (2, 1) 3 (3, 1) 4 (4, 1) 5. (6, 1) (6, 2) (6, 3) (6, 4) (6, 5) (6, 6) }

Similar documents
Random Variables. A Random Variable is a rule that assigns a number to each outcome of an experiment.

Outcome X (1, 1) 2 (2, 1) 3 (3, 1) 4 (4, 1) 5 {(1, 1) (1, 2) (1, 3) (1, 4) (1, 5) (1, 6) (6, 1) (6, 2) (6, 3) (6, 4) (6, 5) (6, 6)}

HUDM4122 Probability and Statistical Inference. February 2, 2015

MATH , Summer I Homework - 05

= = 0.1%. On the other hand, if there are three winning tickets, then the probability of winning one of these winning tickets must be 3 (1)

Counting methods (Part 4): More combinations

Exercise Class XI Chapter 16 Probability Maths

Beginnings of Probability I

Class XII Chapter 13 Probability Maths. Exercise 13.1

CSC/MTH 231 Discrete Structures II Spring, Homework 5

Stat 20: Intro to Probability and Statistics

RANDOM EXPERIMENTS AND EVENTS

b. 2 ; the probability of choosing a white d. P(white) 25, or a a. Since the probability of choosing a

3. a. P(white) =, or. b. ; the probability of choosing a white block. d. P(white) =, or. 4. a. = 1 b. 0 c. = 0

Probability. Ms. Weinstein Probability & Statistics

Copyright 2015 Edmentum - All rights reserved Picture is not drawn to scale.

1. A factory makes calculators. Over a long period, 2 % of them are found to be faulty. A random sample of 100 calculators is tested.

4.1 Sample Spaces and Events

STATISTICS and PROBABILITY GRADE 6

Junior Circle Meeting 5 Probability. May 2, ii. In an actual experiment, can one get a different number of heads when flipping a coin 100 times?

Discrete Random Variables Day 1

The Teachers Circle Mar. 20, 2012 HOW TO GAMBLE IF YOU MUST (I ll bet you $5 that if you give me $10, I ll give you $20.)

Probability MAT230. Fall Discrete Mathematics. MAT230 (Discrete Math) Probability Fall / 37

S = {(1, 1), (1, 2),, (6, 6)}

Ex 1: A coin is flipped. Heads, you win $1. Tails, you lose $1. What is the expected value of this game?

Week in Review #5 ( , 3.1)

Exam III Review Problems

1. The chance of getting a flush in a 5-card poker hand is about 2 in 1000.

23 Applications of Probability to Combinatorics

November 11, Chapter 8: Probability: The Mathematics of Chance

6. a) Determine the probability distribution. b) Determine the expected sum of two dice. c) Repeat parts a) and b) for the sum of

Chapter 11: Probability and Counting Techniques

I. WHAT IS PROBABILITY?

Suppose Y is a random variable with probability distribution function f(y). The mathematical expectation, or expected value, E(Y) is defined as:

3.2 Measures of Central Tendency

Independence Is The Word

Unit 9: Probability Assignments

Probability and Counting Rules. Chapter 3

, x {1, 2, k}, where k > 0. (a) Write down P(X = 2). (1) (b) Show that k = 3. (4) Find E(X). (2) (Total 7 marks)

Probability. Dr. Zhang Fordham Univ.

INTRODUCTORY STATISTICS LECTURE 4 PROBABILITY

4.3 Rules of Probability

1. More on Binomial Distributions

The topic for the third and final major portion of the course is Probability. We will aim to make sense of statements such as the following:

Chapter 7 Homework Problems. 1. If a carefully made die is rolled once, it is reasonable to assign probability 1/6 to each of the six faces.

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 13

CHAPTER 7 Probability

Counting and Probability

Probability Essential Math 12 Mr. Morin

2. The Extensive Form of a Game

Probability Distributions. Probability Distributions. J. Boulton. May 08, 2013 MDM 4U1. Where are we?

Due Friday February 17th before noon in the TA drop box, basement, AP&M. HOMEWORK 3 : HAND IN ONLY QUESTIONS: 2, 4, 8, 11, 13, 15, 21, 24, 27

Review Questions on Ch4 and Ch5

Probability: Terminology and Examples Spring January 1, / 22

1. How to identify the sample space of a probability experiment and how to identify simple events

Chapter 6: Probability and Simulation. The study of randomness

Section 6.1 #16. Question: What is the probability that a five-card poker hand contains a flush, that is, five cards of the same suit?

Casino Lab AP Statistics

Raise your hand if you rode a bus within the past month. Record the number of raised hands.

Rosen, Discrete Mathematics and Its Applications, 6th edition Extra Examples

Probability and Counting Techniques

PROBABILITY. 1. Introduction. Candidates should able to:

7.1 Chance Surprises, 7.2 Predicting the Future in an Uncertain World, 7.4 Down for the Count

Lenarz Math 102 Practice Exam # 3 Name: 1. A 10-sided die is rolled 100 times with the following results:

10-7 Simulations. Do 20 trials and record the results in a frequency table. Divide the frequency by 20 to get the probabilities.

Probability. March 06, J. Boulton MDM 4U1. P(A) = n(a) n(s) Introductory Probability

The next several lectures will be concerned with probability theory. We will aim to make sense of statements such as the following:

Stat 20: Intro to Probability and Statistics

1. Determine whether the following experiments are binomial.

Probability --QUESTIONS-- Principles of Math 12 - Probability Practice Exam 1

Section Summary. Finite Probability Probabilities of Complements and Unions of Events Probabilistic Reasoning

Math 147 Lecture Notes: Lecture 21

Expected Value, continued

If a regular six-sided die is rolled, the possible outcomes can be listed as {1, 2, 3, 4, 5, 6} there are 6 outcomes.

Counting and Probability

Important Distributions 7/17/2006

Worksheets for GCSE Mathematics. Probability. mr-mathematics.com Maths Resources for Teachers. Handling Data

Homework 8 (for lectures on 10/14,10/16)

Chapter 11: Probability and Counting Techniques

The study of probability is concerned with the likelihood of events occurring. Many situations can be analyzed using a simplified model of probability

There is no class tomorrow! Have a good weekend! Scores will be posted in Compass early Friday morning J

TEST A CHAPTER 11, PROBABILITY

STAT Chapter 14 From Randomness to Probability

Math 4610, Problems to be Worked in Class

Unit 1B-Modelling with Statistics. By: Niha, Julia, Jankhna, and Prerana

A. 15 B. 24 C. 45 D. 54

Name Class Date. Introducing Probability Distributions

10-7 Simulations. 5. VIDEO GAMES Ian works at a video game store. Last year he sold 95% of the new-release video games.

Chapter 8: Probability: The Mathematics of Chance

Module 5: Probability and Randomness Practice exercises

Date. Probability. Chapter

Module 4 Project Maths Development Team Draft (Version 2)

Algebra 1B notes and problems May 14, 2009 Independent events page 1

Discrete Structures for Computer Science

ITEC 2600 Introduction to Analytical Programming. Instructor: Prof. Z. Yang Office: DB3049

STATION 1: ROULETTE. Name of Guesser Tally of Wins Tally of Losses # of Wins #1 #2

Week 1: Probability models and counting

3.6 Theoretical and Experimental Coin Tosses

Waiting Times. Lesson1. Unit UNIT 7 PATTERNS IN CHANCE

Dependence. Math Circle. October 15, 2016

Transcription:

Random Variables When we perform an experiment, we are often interested in recording various pieces of numerical data for each trial. For example, when a patient visits the doctor s office, their height, weight, temperature and blood pressure are recorded. These observations vary from patient to patient, hence they are called variables. We tend to call these random variables, because we cannot predict what their value will be for the next trial of the experiment (for the next patient). Rather than repeat and write the words height, weight and blood pressure many times, we tend to give random variables names such as X, Y.... We usually use capital letters to denote the name of the variable and lowercase letters to denote the values.

Random Variables A Random Variable is a rule that assigns a number to each outcome of an experiment. Example: An experiment consists of rolling a pair of dice, one red and one green, and observing the pair of numbers on the uppermost faces (red first). We let X denote the sum of the numbers on the uppermost faces. Below, we show the outcomes on the left and the values of X associated to some of the outcomes on the right: { (1, 1) (1, 2) (1, 3) (1, 4) (1, 5) (1, 6) (2, 1) (2, 2) (2, 3) (2, 4) (2, 5) (2, 6) (3, 1) (3, 2) (3, 3) (3, 4) (3, 5) (3, 6) (4, 1) (4, 2) (4, 3) (4, 4) (4, 5) (4, 6) (5, 1) (5, 2) (5, 3) (5, 4) (5, 5) (5, 6) (6, 1) (6, 2) (6, 3) (6, 4) (6, 5) (6, 6) } Outcome X (1, 1) 2 (2, 1) 3 (3, 1) 4 (4, 1) 5..

Dice example (a) What are the possible values of X? 1 + 1 = 2, 1 + 2 = 3,..., 6 + 6 = 12. (b) There are 2 outcomes of this experiment for which X has a value of 3, namely (2, 1) and (1, 2). How many outcomes are associated with the remaining values of X? Value of X Number of outcomes 2 1 (1,1) 3 2 (1,2), (2,1) 4 3 (1,3), (2,2), (3,1) 5 4 (1,4), (2,3), (3,2), (4,1) 6 5 (1,5), (2,4), (3,3), (4,2), (5,1) 7 6 (1,6), (2,4), (3,4), (4,3), (5,2), (6,1) 8 5 (2,6), (3,5), (4,4), (5,3), (6,2) 9 4 (3,6), (4,5), (5,4), (6,3) 10 3 (4,6), (5,5), (4,6) 11 2 (5,6), (6,5) 12 1 (6,6)

Dice example (c) We could also define other variables associated to this experiment. Let Y be the product of the numbers on the uppermost faces. What are the values of Y associated to the various outcomes?

Dice example Outcome Y (1, 1) 1 (2, 1), (1, 2) 2 (3, 1), (1, 3) 3 (4, 1), (1, 4) 4 (5, 1), (1, 5) 5 (6, 1), (1, 6) 6 Outcome Y (3, 3) 9 (4, 3), (3, 4) 12 (5, 3), (3, 5) 15 (6, 3), (3, 6) 18 Outcome Y (2, 2) 4 (3, 2), (2, 3) 6 (4, 2), (2, 4) 8 (5, 2), (2, 5) 10 (6, 2), (2, 6) 12 Outcome Y (4, 4) 16 (4, 5), (5, 4) 20 (4, 6), (6, 4) 24 (5, 5) 25 (5, 6), (6, 5) 30 (6, 6) 36

Dice example (d) What are the possible values of Y? 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 16, 18, 20, 24, 25, 30, 36 (e) Draw up a frequency table for these values. Value 1 2 3 4 5 6 8 9 10 12 15 16 18 20 24 25 30 36 Frequency 1 2 2 3 2 4 1 1 2 4 2 1 2 2 2 1 2 1

Coin example Example: An experiment consists of flipping a coin 4 times and observing the sequence of heads and tails. The random variable X is the number of heads in the observed sequence. Draw a table that shows the possible values of X and the number of outcomes associated to each value. Value of X outcomes no. of outcomes 4 HHHH 1 3 HHHT, HHTH, HTHH, THHH 4 2 HHTT, HTHT, HTTH, THHT, THTH, TTHH 6 1 HTTT, THTT, TTHT, TTTH 4 0 TTTT 1

Discrete vs. continuous random variables For some random variables, the possible values of the variable can be listed in either a finite or an infinite list. These variables are called discrete random variables. Some examples: Experiment Roll a pair of six-sided dice Roll a pair of six-sided dice Toss a coin 10 times Choose a small pack of M&M s at random Choose a year at random Random Variable, X Sum of the numbers Product of the numbers Number of tails The number of blue M&M s in the pack The number of people who ran the Boston Marathon in that year On the other hand, a continuous random variable can assume any value in some interval. Some examples: Experiment Choose a patient at random Choose an apple at random at your local grocery store Choose a customer at random at Subway Random Variable, X Patient s Height Weight of the apple The length of time the customer waits to be served

Probability Distributions For a discrete random variable with finitely many possible values, we can calculate the probability that a particular value of the random variable will be observed by adding the probabilities of the outcomes of our experiment associated to that value of the random variable (assuming that we know those probabilities). This assignment of probabilities to each possible value of X is called the probability distribution of X.

Dice example Example If I roll a pair of fair six sided dice and observe the pair of numbers on the uppermost face, all outcomes 1 are equally likely, each with a probability of. Let X 36 denote the sum of the pair of numbers observed. We saw that a value of 3 for X is associated to two outcomes in our sample space: (2, 1) and (1, 2). Therefore the probability that X takes the value 3 or P(X = 3) is the sum of the probabilities of the two outcomes (2, 1) and (1, 2) which is 2. That is 36 P(X = 3) = 2 36. If X is a discrete random variable with finitely many possible values, we can display the probability distribution of X in a table where the possible values of X are listed alongside their probabilities.

Dice example I roll a pair of fair six sided dice and observe the pair of numbers on the uppermost face. Let X denote the sum of the pair of numbers observed. Complete the table showing the probability distribution of X below: {(1, 1) (1, 2) (1, 3) (1, 4) (1, 5) (1, 6) (2, 1) (2, 2) (2, 3) (2, 4) (2, 5) (2, 6) (3, 1) (3, 2) (3, 3) (3, 4) (3, 5) (3, 6) (4, 1) (4, 2) (4, 3) (4, 4) (4, 5) (4, 6) (5, 1) (5, 2) (5, 3) (5, 4) (5, 5) (5, 6) (6, 1) (6, 2) (6, 3) (6, 4) (6, 5) (6, 6)} X 2 3 4 5 6 7 8 9 10 11 12 P(X)

Dice example X 2 3 4 5 6 7 8 9 10 11 12 P(X) 1 36 2 36 3 36 4 36 5 36 6 36 5 36 4 36 3 36 2 36 1 36 This table is an example of a probability distribution associated to a random variable.

Probability Distributions If a discrete random variable has possible values x 1, x 2, x 3,..., x k, then a probability distribution P(X) is a rule that assigns a probability P(x i ) to each value x i. More specifically, 0 P(x i ) 1 for each x i. P(x 1 ) + P(x 2 ) + + P(x k ) = 1. Example An experiment consists of flipping a coin 4 times and observing the sequence of heads and tails. The random variable X is the number of heads in the observed sequence. Fill in probabilities for each possible values of X in the table below. X 0 1 2 3 4 P(X)?????

Coin Example X 0 1 2 3 4 P(X) 1 16 4 16 6 16 4 16 1 16

Bar graphs of distributions We can also represent a probability distribution for a discrete random variable with finitely many possible values graphically by constructing a bar graph. We form a category for each value of the random variable (centered at that value) which does not contain any other possible value of the random variable. We make each category of equal width and above each category we draw a bar with height equal to the probability of the corresponding value. If the possible values of the random variable are integers, we can give each bar a base of width 1.

Bar graphs of distributions Example: An experiment consists of flipping a coin 4 times and observing the sequence of heads and tails. The random variable X is the number of heads in the observed sequence. The following is a graphical representation of the probability distribution of X. 0.35 0.30 0.25 0.20 0.15 0.10 0.05 0 1 2 3 4

Bar graphs of distributions Example: The following is a probability distribution histogram for a random variable X. 0.2 0.1 1 2 3 4 5 6 X What is P(X 5)?

Bar graphs of distributions 0.2 0.1 1 2 3 4 5 6 X P(X 5) = P(X = 5) + P(X = 4) + P(X = 3) + P(X = 1) = 0.2 + 0.1 + 0.2 + 0.2 + 0.1 = 0.8 OR P(X 5) = 1 P(X = 6) = 1 0.2 = 0.8.

Some gambling examples Example: In a carnival game a player flips a coin twice. The player pays $1 to play. The player then receives $1 for every head observed and pays $1, to the game attendant, for every tail observed. Find the probability distribution for the random variable X = the player s (net) earnings. There are 4 possible outcomes HH, HT, T H, T T. The return to the player in the case HH is 1, the return to the player in the case HT or T H is 1, and the return to the player in the case T T is 3. Hence P(X = 1) = 1 4, P(X = 1) = 2 4 and P(X = 3) = 1 4.

Some gambling examples A roulette wheel has 18 red numbers, 18 black numbers and 2 green numbers. When the wheel is spun and a ball dropped onto it, the ball is equally likely to land on any of the 38 numbers. When you bet $1 on red, if the ball lands on a red number you get your $1 back plus $1 profit, and if the ball lands on a black or a green number, you lose your initial dollar. What is the probability distribution for your earnings for this game if you bet $1 on red? There are only two outcomes: you win $1 or you get $1. P(X = 1) = 18 18 + 18 + 2 = 18 38. P(X = 1) = 18 + 2 18 + 18 + 2 = 20 38. Since 18 20 is less than 1/2, and is greater than 1/2, you 38 38 lose more often than you win at Roulette (naturally; otherwise the casino wouldn t offer it!)

A puzzle about roulette A roulette wheel has 18 red numbers, 18 black numbers and 2 green numbers. When the wheel is spun and a ball dropped onto it, the ball is equally likely to land on any of the 38 numbers. When you bet $1 on red, if the ball lands on a red number you get your $1 back plus $1 profit, and if the ball lands on a black or a green number, you lose your initial dollar. So the probability of winning on a single roll by betting on red is 18/38, which is less that 1/2. This seems like a fool s game. But here s a possible strategy for playing it: 1. Begin by betting a dollar on red. 2. If you win, take your winnings and go home. 3. If you lose, place two one-dollar bets in a row on red. 4. Whatever happens on those two rolls, go home (either with your winnings to date, or cutting your losses) Question: Is this a winning strategy? Specifically, what is the probability that you will leave the roulette wheel with more money than you began with, and is this probability more or less than 1/2?

Solution Let X be net winnings from this strategy. Possible outcomes/values for X: Win on first roll, probability 18/38.474, X = +1 Lose on first, win on next two, probability (20/38)(18/38) 2.118, X = +1 Lose on first, win exactly one of next two, probability (20/38)2(18/38)(20/38).262, X = 1 Lose all three, probability (20/38) 3.146, X = 3. So X takes value +1 with probability.592, value 1 with probability.262, and value 3 with probability.146. The strategy is winning you have a net gain more often than a net loss!

More examples Example (Netty s Scam): Netty the Incredible runs the following scam in her spare time: She has a business where she forecasts the gender of the unborn child for expectant couples, for a small price. The couple come for a visit to Netty s office and, having met them, Netty retires to her ante-room to gaze into her Crystal Ball. In reality, Netty flips a coin. If the result is Heads, she will predict a boy and if the result is Tails, she will predict a girl. Netty returns to her office and tells the couple of what she saw in her crystal ball. She collects her fee of $100 from the couple and promises to return $150 if she was wrong.

More examples What is the probability distribution for Netty s earnings per consultancy in this business? Netty will win $100 if she wins and lose $50 if she loses. Let X be the random variable which is the amount Netty wins in one consultancy. Hence P(X = 100) = 0.5 and P(X = 50) = 0.5.

More examples Example: Harold and Maude play a card game as follows. Harold picks a card from a standard deck of 52 cards, and Maude tries to guess its suit without looking at it. If Maude guesses correctly, Harold gives her $3.00; otherwise, Maude gives Harold $1.00. What is the probability distribution for Maude s earnings for this game (assuming she is not psychic )? Let X be the random variable which is the amount Maude wins in one round. Either Maude wins $3 or she looses $1. Hence P(X = 3) = 13 52 = 1 4 and P(X = 1) = 1 1 4 = 3 4.

More examples Example: At a carnival game, the player plays $1 to play and then rolls a pair of fair six-sided dice. If the sum of the numbers on the uppermost face of the dice is 9 or higher, the game attendant gives the player $5. Otherwise, the player receives nothing from the attendant. Let X denote the earnings for the player for this game. What is the probability distribution for X? The player either wins $5 - $1 = $4 or looses $1. P(X = 4) = 4 + 3 + 2 + 1 36 = 10 36 and P(X = 1) = 26 36.

More examples Example: The rules of a carnival game are as follows: 1. The player pays $1 to play the game. 2. The player then flips a fair coin, if the player gets a head the game attendant gives the player $2 and the player stops playing. 3. If the player gets a tail on the coin, the player rolls a fair six-sided die. If the player gets a six, the game attendant gives the player $1 and the game is over. 4. If the player does not get a six on the die, the game is over and the game attendant gives nothing to the player. Let X denote the player s (net) earnings for this game, what is the probability distribution of X?

More examples A tree diagram could help. net earning = 1 0.5 0 0.5 T 1 6 net earning = 0 5 6 net earning = -1 P(X = 1) = 0.5; P(X = 0) = 1 2 1 6 = 1 12 ; P(X = 1) = 1 2 5 6 = 5 12.