Random Variables and Expectation. Random Variables A random variable X is a mapping from a sample space S to a target set T, usually N or R. Example:

Slides:



Advertisements
Similar presentations
Introduction to Probability
Advertisements

Theoretical Probability
Lecture Discrete Probability. 5.3 Bayes’ Theorem We have seen that the following holds: We can write one conditional probability in terms of the.
Clear your desk for your quiz. Unit 2 Day 8 Expected Value Average expectation per game if the game is played many times Can be used to evaluate and.
Copyright © 2006 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 16 Mathematics of Managing Risks Weighted Average Expected Value.
Take out a coin! You win 4 dollars for heads, and lose 2 dollars for tails.
Solve for x. 28 = 4(2x + 1) = 8x = 8x + 8 – 8 – 8 20 = 8x = x Distribute Combine Subtract Divide.
Games of probability What are my chances?. Roll a single die (6 faces). –What is the probability of each number showing on top? Activity 1: Simple probability:
Section 7.4 (partially). Section Summary Expected Value Linearity of Expectations Independent Random Variables.
April 2, 2015Applied Discrete Mathematics Week 8: Advanced Counting 1 Random Variables In some experiments, we would like to assign a numerical value to.
Random Variables A Random Variable assigns a numerical value to all possible outcomes of a random experiment We do not consider the actual events but we.
Math 310 Section 7.2 Probability. Succession of Events So far, our discussion of events have been in terms of a single stage scenario. We might be looking.
Expected Value.  In gambling on an uncertain future, knowing the odds is only part of the story!  Example: I flip a fair coin. If it lands HEADS, you.
Lecture 6: Descriptive Statistics: Probability, Distribution, Univariate Data.
Chapter 16: Random Variables
Warm up: Solve each system (any method). W-up 11/4 1) Cars are being produced by two factories, factory 1 produces twice as many cars (better management)
Discrete Random Variables: PMFs and Moments Lemon Chapter 2 Intro to Probability
1 Bernoulli trial and binomial distribution Bernoulli trialBinomial distribution x (# H) 01 P(x)P(x)P(x)P(x)(1 – p)p ?
Expected values and variances. Formula For a discrete random variable X and pmf p(X): Expected value: Variance: Alternate formula for variance:  Var(x)=E(X^2)-[E(X)]^2.
Probability Distributions. Essential Question: What is a probability distribution and how is it displayed?
Lecture Discrete Probability. 5.3 Bayes’ Theorem We have seen that the following holds: We can write one conditional probability in terms of the.
Quiz Time! Clear your desk except for a pencil & calculator!
4.1 Probability Distributions. Do you remember? Relative Frequency Histogram.
Binomial Experiment A binomial experiment (also known as a Bernoulli trial) is a statistical experiment that has the following properties:
COMP 170 L2 L17: Random Variables and Expectation Page 1.
Chapter 16: Random Variables
Probability and Statistics
Expected Value.
5.1 Probability in our Daily Lives.  Which of these list is a “random” list of results when flipping a fair coin 10 times?  A) T H T H T H T H T H 
Discrete Distributions. Random Variable - A numerical variable whose value depends on the outcome of a chance experiment.
BUS304 – Probability Theory1 Probability Distribution  Random Variable:  A variable with random (unknown) value. Examples 1. Roll a die twice: Let x.
WOULD YOU PLAY THIS GAME? Roll a dice, and win $1000 dollars if you roll a 6.
Probability Distributions
C4: DISCRETE RANDOM VARIABLES CIS 2033 based on Dekking et al. A Modern Introduction to Probability and Statistics Longin Jan Latecki.
Bernoulli Trials, Geometric and Binomial Probability models.
Introduction to Probability – Experimental Probability.
Unit 4: Probability Day 2: Basic Probability. Standards and Benchmarks Select and apply counting procedures, such as the multiplication and addition.
CSC317 1 Randomized algorithms Hiring problem We always want the best hire for a job! Using employment agency to send one candidate at a time Each day,
ROLL A PAIR OF DICE AND ADD THE NUMBERS Possible Outcomes: There are 6 x 6 = 36 equally likely.
When could two experimental probabilities be equal? Question of the day.
Expected Value and Fair Game S-MD.6 (+) Use probabilities to make fair decisions (e.g., drawing by lots, using a random number generator). S-MD.7 (+) Analyze.
Binomial Distribution. Bernoulli Trials Repeated identical trials are called Bernoulli trials if: 1. There are two possible outcomes for each trial, denoted.
Random Variables Lecture Lecturer : FATEN AL-HUSSAIN.
2-6 Probability Theoretical & Experimental. Probability – how likely it is that something will happen – Has a range from 0 – 1 – 0 means it definitely.
Section 7.3. Why we need Bayes?  How to assess the probability that a particular event occurs on the basis of partial evidence.  The probability p(F)
16.6 Expected Value.
Sec. 4-5: Applying Ratios to Probability
Conditional Probability
Relative Frequency.
Expected Value.
Now it’s time to look at…
Expectation & Variance of a Discrete Random Variable
Probability Trees By Anthony Stones.
The Binomial Distribution
Probability Key Questions
Expected Value.
Expected values and variances
Applied Discrete Mathematics Week 12: Discrete Probability
Investigation 2 Experimental and Theoretical Probability
Expected Value.
Fun… Tree Diagrams… Probability.
Complete the sample space diagram on your whiteboards
Probability.
Discrete Random Variables: Basics
Discrete Random Variables: Basics
Probability.
Discrete Random Variables: Basics
Warm Up What is the type of sampling for 1-3? 1. “The names of 50 contestants are written on 50 cards. The cards are placed in a hat and 10 names are drawn.”
Chapter 11 Probability.
Presentation transcript:

Random Variables and Expectation

Random Variables A random variable X is a mapping from a sample space S to a target set T, usually N or R. Example: S = coin flips, X(s) = 1 if the flip comes up heads, 0 if it comes up tails Example: S = Harvard basketball games, and for any game s ∈ S, X(s) = 1 if Harvard wins game s, 0 if Harvard loses. These are examples of Bernoulli trials: The random variable has the values 0 and 1 only.

More Random Variables Example: S = sequences of 10 coin flips, X(s) = number of heads in outcome s. E.g. X(HTTHTHTTTH) = 4. Example: S = Harvard basketball games, X(s) = number of points player LR scored in game s.

Probability Mass Function For any x ∈ T, Pr({s ∈ S: X(s) = x}) is a well defined probability. (Min 0, max 1, sum to 1 over all possible values of x, etc.) Usually we just write Pr(X=x). Similarly we might write Pr(X<x) Example: S = Roll of a die, X(s) = number that comes up on roll s. Pr(X=4) = 1/6. Pr(X<4) = ½.

Probability Mass Function Example: S = result of rolling a die twice X(s) = 1 if the rolls are equal X(s) = 0 if the rolls are unequal Pr(X=0) = 5/6 Pr(X=1) = 1/6.

Probability Mass Function Example: S = sequences of 10 coin flips, X(s) = number of heads in outcome s. Then Pr(X=0) = = Pr(X=10), and by a previous calculation, Pr(X=5) ≈.25

Expectation The Expected Value or Expectation of a random variable is the weighted average of its possible values, weighted by the probability of those values.

Expectation, example If a die is rolled three times, what is the expected number of common values? –That is, 464 would have 2 common values; 123 would have 1. Pr(X=1) = 6∙5∙4/6 3 = 20/36 Pr(X=3) = 6/6 3 = 1/36 Pr(X=2) = 1-Pr(X=1)-Pr(X=3) = 15/36 E(X) = (20/36)∙1 + (15/36)∙2 + (1/36)∙3 ≈ 1.47

Variance The expected value E(X) of a random variable X is also called the mean. The variance of X is the expected value of the random variable (x-E(X)) 2, the expected value of the square of the difference from the mean. That is, Variance is always positive, and measures the “spread” of the values of X.

Same mean, different variance ⅓ ⅕ Low variance High variance

Variance Example Roll one die, X can be 1, 2, 3, 4, 5, or 6, each with probability 1/6. So E(X) = 3.5, so

Variance Example Roll two dice and add them. There are 36 outcomes, and X can be 1, 2, …, 12. But the probabilities vary. So E(X) = 7 and x Pr(x)1/362/363/364/365/366/365/364/363/262/361/36

FINIS