DOC PREVIEW
UCLA STATS 100A - July 9-Lecture part III (will finish on July 11)

This preview shows page 1-2-3-4 out of 11 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Random variablesDiscrete Random VariablesJuana [email protected] Department of StatisticsJuly 9J. Sanchez Stat 100A Intro ProbabilityAnnouncementsRemember: Midterm 1 on Tuesday, JULY 16th, 10:00-11:30 (regularexam). 11:35-11:50 simulation required.ROOM: BROAD, 2160E (Notice change of room)J. Sanchez Stat 100A Intro ProbabilityReference reading: Ross, chapter 4 (8th edition, 9th edition) (4.1-4.5 ).I. Definition of a discrete random variableII. Definition of probability of the value of a discrete randomvariable. Probability distribution of a discrete random variable.III. Definition of expected value, variance and standard deviation ofa discrete random variable and of a function of a discrete randomvariable.J. Sanchez Stat 100A Intro ProbabilityI. Definition of a random variableDefinition of Random VariableA random variable X is a function from a sample space S into the realnumbers. Random variables can be discrete or continuous, depending onthe type of sample space.We denote the name of the random variable by a capital letter, andpossible values of the random variable by the same but lowercase letter.We start in this lesson with discrete random variable.J. Sanchez Stat 100A Intro ProbabilityNotesNotesNotesNotesII. Definition of discrete random variableDiscrete random variableA random variable that can take on at most a countable number ofpossible values is said to be discrete. For a discrete random variable X,we define the probability mass function P of X byP(a) = P(X = a)Probability mass functionLet sibe an outcome in a countable sample space with k outcomes S ,i = 1, ...., kP(X = x) =XiP(si∈ S | X(si) = x)The probability mass function is positive for at most a countable numberof values of a.XxP(X ) = 1J. Sanchez Stat 100A Intro ProbabilityClass assigment at the end of last day(See lecture notes of the end of last day)In a family of 3, where probability of a girl is 1/2,Sample Space bbb, bbg, bgb, bgg, gbb, gbg, ggb, gggProbabilities (1/2)3, (1/2)3, (1/2)3, (1/2)3, (1/2)3, (1/2)3, (1/2)3, (1/2)3Let A be the event ”at least two girls”A = {bgg, gbg , ggb, ggg }.P(A) = 4(1/2)3= 1/2.J. Sanchez Stat 100A Intro ProbabilityIn that example, we could represent the problem in terms of randomvariable X, the number of girls in a family of 3Sample Space bbb, bbg, bgb, bgg, gbb, gbg, ggb, gggRandom variable X 0, 1, 1, 2, 1, 2, 2, 3Probabilities (1/2)3, (1/2)3, (1/2)3, (1/2)3, (1/2)3, (1/2)3, (1/2)3, (1/2)3And thenP(A) = P(X ≥ 2) = 1/2J. Sanchez Stat 100A Intro ProbabilityThe representation above is not complete. A probability distributionspecifies unique values of the random variable and their probabilities. Welearn in this lesson to represent the probability distribution of a randomvariable. In the above case, the probability distribution of X (”number ofgirls in a family of 3”) is:X P(X)030(1/2)0(1/2)3= 1/8131(1/2)1(1/2)2= 3/8232(1/2)2(1/2)1= 3/8333(1/2)3(1/2)0= 1/8And we can grab the answer directly from the probability distribution:P(A) = P(X ≥ 2) = (3/8 + 1/8) = 4/8 = 1/2J. Sanchez Stat 100A Intro ProbabilityNotesNotesNotesNotesExampleTwo fair dice are tossed. The firsttoss is denoted by a and thesecond by b. Let X be a functionthat assigns to each point (a, b) inS the maximum of its numbers,i.e. X (a, b) = max(a, b). Then Xis a random variable that can takethe possible valuesS =(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)Probability mass function for XX P(X)1 1/362 3/363 5/364 7/365 9/366 11/36J. Sanchez Stat 100A Intro ProbabilityLet A the event that X > 3, B theevent that X ≤ 3 and C the eventthat X ≤ 2 ∪ X > 3.P(A) =736+936+1136=2736P(B) = 1 − P(A) =836P(C ) = 1 − P(X = 3) = 1 −536All rules of probability learned willapply as well.X P(X)1 1/362 3/363 5/364 7/365 9/366 11/36J. Sanchez Stat 100A Intro ProbabilityII Using Definition of probability of the value of a discreterandom variableThat is how we computed the probabilities. In the example whereX=max(a,b) in the roll of two fair dice,P(X=1) = P( (1,1) ) = 1/36P(X=2) =P( (1,2), (2,2), (2,1) ) =3/36P(X=3) = P( (1,3), (3,1), (2,3), (3,2), (3,3) ) = 5/36P(X=4) = P((1,4), (2,4), (3,4), (4,4), (4,1), (4,2), (4,3))= 7/36P(X= 5) = ....... etc.P(X=6)=J. Sanchez Stat 100A Intro ProbabilityII Using Definition of probability of the value of a discreterandom variableThat is how we computed the probabilities. In the example whereX=max(a,b) in the roll of two fair dice,P(X=1) = P( (1,1) ) = 1/36P(X=2) = P( (1,2), (2,2), (2,1) ) =3/36P(X=3) =P( (1,3), (3,1), (2,3), (3,2), (3,3) ) = 5/36P(X=4) = P((1,4), (2,4), (3,4), (4,4), (4,1), (4,2), (4,3))= 7/36P(X= 5) = ....... etc.P(X=6)=J. Sanchez Stat 100A Intro ProbabilityNotesNotesNotesNotesII Using Definition of probability of the value of a discreterandom variableThat is how we computed the probabilities. In the example whereX=max(a,b) in the roll of two fair dice,P(X=1) = P( (1,1) ) = 1/36P(X=2) = P( (1,2), (2,2), (2,1) ) =3/36P(X=3) = P( (1,3), (3,1), (2,3), (3,2), (3,3) ) =5/36P(X=4) = P((1,4), (2,4), (3,4), (4,4), (4,1), (4,2), (4,3))= 7/36P(X= 5) = ....... etc.P(X=6)=J. Sanchez Stat 100A Intro ProbabilityII Using Definition of probability of the value of a discreterandom variableThat is how we computed the probabilities. In the example whereX=max(a,b) in the roll of two fair dice,P(X=1) = P( (1,1) ) = 1/36P(X=2) = P( (1,2), (2,2), (2,1) ) =3/36P(X=3) = P( (1,3), (3,1), (2,3), (3,2), (3,3) ) = 5/36P(X=4) =P((1,4), (2,4), (3,4), (4,4), (4,1), (4,2), (4,3))= 7/36P(X= 5) = ....... etc.P(X=6)=J. Sanchez Stat 100A Intro ProbabilityII Using Definition of probability of the value of a discreterandom variableThat is how we computed the probabilities. In the example whereX=max(a,b) in the roll of two fair dice,P(X=1) = P( (1,1) ) = 1/36P(X=2) = P( (1,2), (2,2), (2,1) ) =3/36P(X=3) = P( (1,3), (3,1), (2,3), (3,2), (3,3) ) = 5/36P(X=4) = P((1,4), (2,4), (3,4), (4,4), (4,1), (4,2), (4,3))= 7/36P(X= 5) = ....... etc.P(X=6)=J. Sanchez Stat 100A Intro ProbabilityProbability Distribution of X , where X = max (a, b) in theroll of two diceX P(X)1 1/362 3/363 5/364 7/365 9/366 11/36NOTICEAlthough we write a lot ofinformation in the intermediatesteps to get the S, theprobabilities of outcomes in S andthe random


View Full Document

UCLA STATS 100A - July 9-Lecture part III (will finish on July 11)

Documents in this Course
Hwk8

Hwk8

3 pages

HW09Key

HW09Key

3 pages

Normal

Normal

7 pages

clt

clt

3 pages

Load more
Download July 9-Lecture part III (will finish on July 11)
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view July 9-Lecture part III (will finish on July 11) and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view July 9-Lecture part III (will finish on July 11) 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?