Random Variables Probability distribution functions Expected values.

Slides:



Advertisements
Similar presentations
Discrete Random Variables To understand what we mean by a discrete random variable To understand that the total sample space adds up to 1 To understand.
Advertisements

Chapter 5 Probability Distributions. E.g., X is the number of heads obtained in 3 tosses of a coin. [X=0] = {TTT} [X=1] = {HTT, THT, TTH} [X=2] = {HHT,
Section 7.4 (partially). Section Summary Expected Value Linearity of Expectations Independent Random Variables.
Random variables Random experiment outcome numerical measure/aspect of outcome Random variable S outcome R number Random variable.
Probability Distributions: Finite Random Variables.
S1: Chapter 8 Discrete Random Variables Dr J Frost Last modified: 25 th October 2013.
20/6/1435 h Sunday Lecture 11 Jan Mathematical Expectation مثا ل قيمة Y 13 المجموع P(y)3/41/41 Y p(y)3/4 6/4.
The Binomial Distribution Permutations: How many different pairs of two items are possible from these four letters: L, M. N, P. L,M L,N L,P M,L M,N M,P.
14/6/1435 lecture 10 Lecture 9. The probability distribution for the discrete variable Satify the following conditions P(x)>= 0 for all x.
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.
5.3 Random Variables  Random Variable  Discrete Random Variables  Continuous Random Variables  Normal Distributions as Probability Distributions 1.
Random Variables. A random variable X is a real valued function defined on the sample space, X : S  R. The set { s  S : X ( s )  [ a, b ] is an event}.
Lecture 1 Sec
Random Variable. Random variable A random variable χ is a function (rule) that assigns a number to each outcome of a chance experiment. A function χ acts.
Project 1 Lecture Notes. Table of Contents Basic Probability Word Processing Mathematics Summation Notation Expected Value Database Functions and Filtering.
4.1 Probability Distributions NOTES Coach Bridges.
22C:19 Discrete Structures Discrete Probability Spring 2014 Sukumar Ghosh.
Random Variables an important concept in probability.
Probability Distributions
Random Variables Learn how to characterize the pattern of the distribution of values that a random variable may have, and how to use the pattern to find.
The Outwood Grange Family of Schools Let Me Count The Ways (teacher notes): 1. Obviously an important skill in problem solving is to be able to count the.
AP STATISTICS Section 7.1 Random Variables. Objective: To be able to recognize discrete and continuous random variables and calculate probabilities using.
1 Keep Life Simple! We live and work and dream, Each has his little scheme, Sometimes we laugh; sometimes we cry, And thus the days go by.
Discrete Math Section 16.3 Use the Binomial Probability theorem to find the probability of a given outcome on repeated independent trials. Flip a coin.
Statistics October 6, Random Variable – A random variable is a variable whose value is a numerical outcome of a random phenomenon. – A random variable.
Binomial Probability Theorem In a rainy season, there is 60% chance that it will rain on a particular day. What is the probability that there will exactly.
Math 1320 Chapter 7: Probability 7.1 Sample Spaces and Events.
Lecture 21 Dr. MUMTAZ AHMED MTH 161: Introduction To Statistics.
CHAPTER 5 Discrete Probability Distributions. Chapter 5 Overview  Introduction  5-1 Probability Distributions  5-2 Mean, Variance, Standard Deviation,
Random Variables By: 1.
Terminologies in Probability
CHAPTER 6 Random Variables
Math 145 October 5, 2010.
Random Variables.
Random Variables Random variables assigns a number to each outcome of a random circumstance, or equivalently, a random variable assigns a number to each.
Math 145 June 9, 2009.
22C:19 Discrete Math Discrete Probability
Reference: (Material source and pages)
UNIT 8 Discrete Probability Distributions
Algorithms CSCI 235, Fall 2017 Lecture 10 Probability II
Discrete and Continuous Random Variables
Math 145.
Warm Up Which of the following are combinations?
Terminologies in Probability
Math 145 February 22, 2016.
Lesson 10.1 Sample Spaces and Probability
Statistical Inference for Managers
Terminologies in Probability
6.1: Discrete and Continuous Random Variables
Terminologies in Probability
Random Variable Two Types:
Warmup Consider tossing a fair coin 3 times.
Expected values and variances
Random Variables and Probability Distributions
Math 145 September 4, 2011.
Terminologies in Probability
Math 145 February 26, 2013.
Math 145 June 11, 2014.
Math 145 September 29, 2008.
Math 145 June 8, 2010.
Section 1 – Discrete and Continuous Random Variables
Algorithms CSCI 235, Spring 2019 Lecture 10 Probability II
Math 145 October 3, 2006.
Terminologies in Probability
6.2 Probability Models.
Terminologies in Probability
Math 145 September 24, 2014.
Math 145 October 1, 2013.
Math 145 February 24, 2015.
Math 145 July 2, 2012.
Presentation transcript:

Random Variables Probability distribution functions Expected values

Random variables (r.v.) Random variables assign numbers to outcomes of a random experiment –Outcomes of the random experiments can already be numbers or non-numeric. Why defining random variables? –It simplifies our way to get to a mathematical model for real life. They are usually indicated with the last letters of the alphabet: X, Y,..

Examples Flip a coin thrice. –Could define the following random variable: –X = #H in the three flips –X can assume the values 0, 1, 2, 3 Roll two dice –X = sum of the two faces showing up –X = 2, 3, 4, …, 12 –Y = 1 if sum > 7, Y = 0 if sum ≤ 7. Note: a r.v. properly defined assigns a numerical value to each outcome of S

Discrete Random variables A random variable is discrete if all its possible outcomes can be counted. –# H in flipping the coin thrice –Number of children in a family –Number of stars in a galaxy(?) Will concentrate on these first

How do I assign probabilities to r.v.? The outcome of a r.v. depends on the outcome of the experiment on which the random variable is defined. For each value (outcome) of the r.v. add the probabilities of the corresponding outcomes in the random experiment on which the r.v. is defined.

Flip a Coin Three Times Outcomes: HHH HHT HTH HTT THH THT TTH TTT X = number of Heads P(X = 3) = 1/8 P(X = 2) = 3/8 P(X = 1) = 3/8 P(X = 0) = 1/8

Random Variable Each outcome is a number Name it X P( X = 1 ) =.2, P( X = 2 ) =.6,… 123 P X=123 P.2.6.2

Probability distribution function pdf Table k0123 P(X=k)1/83/8 1/8 1.Prob.’s add up to ≤ P(X=k) ≤ 1 for every k. 3.Other #’s have prob. = 0

Roll Two Dice Outcomes: (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) pdf X = sum of the two rolls

Example k P(X=k) P(X < 3) = P(X=2) = 0.1 P(X ≤ 3) = P(X=2) + P(X=3) = = 0.2 Cumulative distribution function (CDF) P(X ≤ k) = sum of all probabilities up to k

P(X > 4) = P(X=5) + P(X=6) + P(X=7) = 0.5 = 1 – P(X ≤ 4) P(3 < X ≤ 6) = P(X=4) + P(X=5) + P(X=6) = 0.7 = P(X ≤ 6) – P(X ≤ 3) P(X=3 OR X=6) = P(X=3) + P(X=6) = 0.2 X=j and X=k are MUTUALLY EXCLUSIVE Example - continues

Score on the Quiz Probability of scoring better than 50% is P(X >50) = P(X= 60) + P(X=80) + P(X=100) = =.85 Score P

Background: Sigma Notation A short hand for writing long sums

Expected Value Mean of X over the long run Equivalent notation Both refer to the possible values (outcomes) of the r.v.

Examples k25 P(X=k)1/32/3 E(X) = 2 P(X=2) + 5 P(X=5) = 2(1/3) + 5(2/3) = 2/3 + 10/3 =12/3 = 4

k25 P(X=k)1/32/3

Banker’s Offer = $138,000

Who wants to be a Millionaire? Quit = $100,000. Guess right X= $250,000. Guess wrong X= $32,000. P(Right = ¼)  E(X) = 250(¼) + 32(¾) = $86,500 P(Right = ½)  E(X) = 250(½) + 32(½) = $141,000

Expected Quiz Score E(X) = 20(.1) + 40(.05) + 60(.15) + 80(.3) + 100(.4) = = 77 Score P

Properties of E(X) For any two random variables, X, Y E(X+Y) = E(X) + E(Y) For any constants a, b such that Y = a+bX E(Y) = a + b E(X)

E(X+Y) = E(X) + E(Y) (Linearity) An exam is composed by five questions. Each question has four (given) possible answers, only one of which is correct. A correct anwer is worth 20 points while an incorrect answer gets -4 points. No penalties are given for no answer. If a student answers at random at all questions what’s he/she’s expected score?

Solution Each question can be modeled with a random variable X with values: –X = 20 if answer is correct –X = -4 if answer is not correct If a student answers at random: P(X = 20) = ¼ and P(X = - 4) = ¾ E(X) = 20 ∙ ¼ + (-4) ¾ = 2

If we assign a r.v. to any of the 5 questions of the exam, say X 1, …, X 5 Expected score E(X 1 +X 2 +X 3 +X 4 +X 5 ) = = E(X 1 )+E(X 2 )+E(X 3 )+E(X 4 )+E(X 5 ) = =10

Linear combinations What’s Y = a + b X? Mathematically a linear combination From a practical point of view it could be a change of the unit of measurement X degrees in Celsius, Y degrees in Fahrenheit Y = ∙ X (a=32, b=1.8) X = feet, Y = inches Y = 12 ∙ X (a=0, b=12)