probability
play

Probability 3.1 Discrete Random Variables Basics Anna Karlin Most - PowerPoint PPT Presentation

Probability 3.1 Discrete Random Variables Basics Anna Karlin Most slides by Alex Tsun Agenda Recap on rvs Expectation Linearity of Expectation (LoE) Law of the Unconscious Statistician (Lotus) Random Variable Probability Mass


  1. Probability 3.1 Discrete Random Variables Basics Anna Karlin Most slides by Alex Tsun

  2. Agenda ● Recap on rvs ● Expectation ● Linearity of Expectation (LoE) ● Law of the Unconscious Statistician (Lotus)

  3. Random Variable

  4. Probability Mass Function (PMF)

  5. Homeworks of 3 students returned randomly ● Each permutation equally likely ● X: # people who get their own homework Prob Outcome w X(w) 1/6 1 2 3 3 1/6 1 3 2 1 1/6 2 1 3 1 1/6 2 3 1 0 1/6 3 1 2 0 1/6 3 2 1 1

  6. Expectation

  7. Homeworks of 3 students returned randomly ● Each permutation equally likely ● X: # people who get their own homework ● What is E(X)? Prob Outcome w X(w) 1/6 1 2 3 3 1/6 1 3 2 1 1/6 2 1 3 1 1/6 2 3 1 0 1/6 3 1 2 0 1/6 3 2 1 1

  8. Repeated coin flipping Flip a biased coin with probability p of coming up Heads n times. Each flip independent of all others. X is number of Heads. What is E(X)?

  9. Repeated coin flipping Flip a biased coin with probability p of coming up Heads n times. X is number of Heads. What is E(X)?

  10. Linearity of Expectation (Idea) Let’s say you and your friend sell fish for a living. ● Every day you catch X fish, with E[X] = 3 . ● Every day your friend catches Y fish, with E[Y] = 7 . how many fish do the two of you bring in ( Z = X + Y ) on an average day? E[Z] = E[X + Y] = e[X] + E[Y] = 3 + 7 = 10 You can sell each fish for $5 at a store, but you need to pay $20 in rent. How much profit do you expect to make? E[5Z - 20] = 5E[Z] - 20 = 5 x 10 - 20 = 30

  11. Linearity of Expectation (Idea) Let’s say you and your friend sell fish for a living. ● Every day you catch X fish, with E[X] = 3 . ● Every day your friend catches Y fish, with E[Y] = 7 . how many fish do the two of you bring in ( Z = X + Y ) on an average day? E[Z] = E[X + Y] = You can sell each fish for $5 at a store, but you need to pay $20 in rent. How much profit do you expect to make? E[5Z - 20] = 5E[Z] - 20 = 5 x 10 - 20 = 30

  12. Linearity of Expectation (Idea) Let’s say you and your friend sell fish for a living. ● Every day you catch X fish, with E[X] = 3 . ● Every day your friend catches Y fish, with E[Y] = 7 . how many fish do the two of you bring in ( Z = X + Y ) on an average day? E[Z] = E[X + Y] = e[X] + E[Y] = 3 + 7 = 10 You can sell each fish for $5 at a store, but you need to pay $20 in rent. How much profit do you expect to make? E[5Z - 20] = 5E[Z] - 20 = 5 x 10 - 20 = 30

  13. Linearity of Expectation (Idea) Let’s say you and your friend sell fish for a living. ● Every day you catch X fish, with E[X] = 3 . ● Every day your friend catches Y fish, with E[Y] = 7 . how many fish do the two of you bring in ( Z = X + Y ) on an average day? E[Z] = E[X + Y] = e[X] + E[Y] = 3 + 7 = 10 You can sell each fish for $5 at a store, but you need to pay $20 in rent. How much profit do you expect to make? E[5Z - 20] = 5E[Z] - 20 = 5 x 10 - 20 = 30

  14. Linearity of Expectation (LoE)

  15. Linearity of Expectation (Proof)

  16. <latexit sha1_base64="CxIQlQmNr6yr2qKRf1V6LcRsARQ=">ACKHicbVBdS8MwFE39nPOr6qMvwSGsCKOdgr6IQxF8nOC2wlZKmVbWJqWJBVG2c/xb/i4gie/WXmHZ7mJsXEs4951ySe4KYUalse2KsrK6tb2wWtorbO7t7+bBYVNGicCkgSMWCTdAkjDKSUNRxYgbC4LCgJFWMLzL9NYzEZJG/EmNYuKFqM9pj2KkNOWbN/dl13fgGXT9qr47rBspmbfcgte5aOk2A1VozTsyilu+WbIrdl5wGTgzUAKzqvmR6cb4SQkXGpGw7dqy8FAlFMSPjYieRJEZ4iPqkrSFHIZFemi86hqea6cJeJPThCubs/ESKQilHYaCdIVIDuahl5H9aO1G9Ky+lPE4U4Xj6UC9hUEUwSw12qSBYsZEGCAuq/wrxAmElc62qENwFldeBs1qxTmvVB8vSrXbWRwFcAxOQBk4BLUwAOogwbA4AW8gU/wZbwa78a3MZlaV4zZzBH4U8bPL02Kn2w=</latexit> Corollary: linearity for sum of lots of r.v.s E ( X 1 + X 2 + . . . + X n ) = E ( X 1 ) + E ( X 2 ) + . . . + E ( X n ) Proof by induction!

  17. Homeworks of students returned randomly ● Each permutation equally likely ● X: # people who get their own homework ● What is E(X) when there are n students? Prob Outcome w X 1/6 1 2 3 3 1/6 1 3 2 1 1/6 2 1 3 1 1/6 2 3 1 0 1/6 3 1 2 0 1/6 3 2 1 1

  18. Indicator random variable ● For any event A, can define the indicator random variable for A

  19. Computing complicated expectations ● Often boils down to finding the right way to decompose the random variable into simple random variables (often indicator random variables) and then applying linearity of expectation.

  20. Repeated coin flipping Flip a biased coin with probability p of coming up Heads n times. X is number of Heads. What is E(X)?

  21. Repeated coin flipping Flip a biased coin with probability p of coming up Heads n times. X is number of Heads. What is E(X)?

  22. Pairs with same birthday ● In a class of m students, on average how many pairs of people have the same birthday?

  23. Pairs with same birthday ● In a class of m students, on average how many pairs of people have the same birthday?

  24. Rotating the table n people are sitting around a circular table. There is a nametag in each place Nobody is sitting in front of their own nametag. Rotate the table by a random number k of positions between 1 and n-1 (equally likely). X is the number of people that end up front of their own nametag. What is E(X)?

  25. Linearity of Expectation with Indicators

  26. <latexit sha1_base64="wXxnJWBAdvMNeJ+5V5smUWXQjCg=">AB/HicbZDLSsNAFIYn9VbrLdqlm8EipJuSVEGXRSm4rGAv0IYymU7SoZNJmJkIdRXceNCEbc+iDvfxkmbhb+MPDxn3M4Z34vZlQq2/42ShubW9s75d3K3v7B4ZF5fNKTUSIw6eKIRWLgIUkY5aSrqGJkEAuCQo+Rvje7zev9RyIkjfiDSmPihijg1KcYKW2NzWrbCqxBvQ5HnMDAauc8Nmt2w14IroNTQA0U6ozNr9EkwklIuMIMSTl07Fi5GRKYkbmlVEiSYzwDAVkqJGjkEg3Wxw/h+famUA/EvpxBRfu74kMhVKmoac7Q6SmcrWm/Vhonyr92M8jhRhOPlIj9hUEUwTwJOqCBYsVQDwoLqWyGeIoGw0nlVdAjO6pfXodsOBeN5v1lrXVTxFEGp+AMWMABV6AF7kAHdAEGKXgGr+DNeDJejHfjY9laMoqZKvgj4/MHmqSKA=</latexit> <latexit sha1_base64="q4MXmMcea5sthUJtvutns/oRyTU=">ACPnicbVC7SgNBFJ317fqKWtoMBsXGuBsFbYSgjaWCiYFsCLOTm2RwdnaZuauGJV9m4zfYWdpYKGJr6STZwteBgcM59zH3hIkUBj3vyZmYnJqemZ2bdxcWl5ZXCqtrNROnmkOVxzLW9ZAZkEJBFQVKqCcaWBRKuAqvT4f+1Q1oI2J1if0EmhHrKtERnKGVWoVqnR7TISuUBm3c8yA+nSbBgh3mN0K7NFExyG16l45CNzdofm/6wag2vmMVqHolbwR6F/i56RIcpy3Co9BO+ZpBAq5ZMY0fC/BZsY0Ci5h4AapgYTxa9aFhqWKRWCa2ej8Ad2ySpt2Ym2fQjpSv3dkLDKmH4W2MmLYM7+9ofif10ixc9TMhEpSBMXHizqpBjTYZa0LTRwlH1LGNfC/pXyHtOMo03ctSH4v0/+S2rlkr9fKl8cFCsneRxzZINskh3ik0NSIWfknFQJ/fkmbySN+fBeXHenY9x6YST96yTH3A+vwA7u6wz</latexit> Linearity is special! In general E ( g ( X )) 6 = g ( E ( X )) ● ( with prob 1 / 2 1 X = with prob 1 / 2 − 1

  27. <latexit sha1_base64="JZCdgKcKqIRgefCLdY3tgGsxMbU=">AB73icbVBNS8NAEJ3Ur1q/qh69LBahvZSkCnosiuCxgm0DbSib7aZdutnE3Y1Qv+EFw+KePXvePfuE1z0NYHA4/3ZpiZ58ecKW3b31ZhbX1jc6u4XdrZ3ds/KB8edVSUSELbJOKRdH2sKGeCtjXTnLqxpDj0Oe36k5u532iUrFIPOhpTL0QjwQLGMHaSO5tdVR1azU0KFfsup0BrRInJxXI0RqUv/rDiCQhFZpwrFTPsWPtpVhqRjidlfqJojEmEzyiPUMFDqny0uzeGTozyhAFkTQlNMrU3xMpDpWahr7pDLEeq2VvLv7n9RIdXHkpE3GiqSCLRUHCkY7Q/Hk0ZJISzaeGYCKZuRWRMZaYaBNRyYTgL+8SjqNunNeb9xfVJrXeRxFOIFTqIDl9CEO2hBGwhweIZXeLMerRfr3fpYtBasfOY/sD6/AHrS46U</latexit> <latexit sha1_base64="wXxnJWBAdvMNeJ+5V5smUWXQjCg=">AB/HicbZDLSsNAFIYn9VbrLdqlm8EipJuSVEGXRSm4rGAv0IYymU7SoZNJmJkIdRXceNCEbc+iDvfxkmbhb+MPDxn3M4Z34vZlQq2/42ShubW9s75d3K3v7B4ZF5fNKTUSIw6eKIRWLgIUkY5aSrqGJkEAuCQo+Rvje7zev9RyIkjfiDSmPihijg1KcYKW2NzWrbCqxBvQ5HnMDAauc8Nmt2w14IroNTQA0U6ozNr9EkwklIuMIMSTl07Fi5GRKYkbmlVEiSYzwDAVkqJGjkEg3Wxw/h+famUA/EvpxBRfu74kMhVKmoac7Q6SmcrWm/Vhonyr92M8jhRhOPlIj9hUEUwTwJOqCBYsVQDwoLqWyGeIoGw0nlVdAjO6pfXodsOBeN5v1lrXVTxFEGp+AMWMABV6AF7kAHdAEGKXgGr+DNeDJejHfjY9laMoqZKvgj4/MHmqSKA=</latexit> Linearity is special! E ( g ( X )) 6 = g ( E ( X )) ● In general E ( g ( X )) ● How DO we compute ?

  28. Homeworks of 3 students returned randomly ● Each permutation equally likely ● X: # people who get their own homework What is E(X 3 mod 2)? ● Prob Outcome w X(w) 1/6 1 2 3 3 1/6 1 3 2 1 1/6 2 1 3 1 1/6 2 3 1 0 1/6 3 1 2 0 1/6 3 2 1 1

  29. Law of the Unconscious Statistician (Lotus)

  30. Probability Alex Tsun Joshua Fan

  31. Probability 3.3 Variance and standard Deviation Most slides by Alex Tsun

  32. Variance (Intuition) Which game would you rather play? We flip a fair coin. Game 1: ● If heads, You pay me $1. ● If Tails, I pay you $1. Game 2: ● If Heads, you pay me $1000. ● If Tails, I pay you $1000.

  33. Variance (Intuition) how far is a random variable from its mean, on average?

  34. Variance (Intuition) how far is a random variable from its mean, on average?

  35. Variance (Intuition) how far is a random variable from its mean, on average?

  36. Variance and Standard Deviation (SD)

  37. Variance and Standard Deviation (SD) More Useful

  38. Variance and Standard Deviation (SD) More Useful

  39. Variance (Property)

  40. Variance (Property)

  41. Variance Which game would you rather play? We flip a fair coin. Game 1: ● If heads, You pay me $1. ● If Tails, I pay you $1. Game 2: ● If Heads, you pay me $1000. ● If Tails, I pay you $1000.

  42. Variance (Example) LOTUS

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend