probability and statistics
play

Probability and Statistics for Computer Science (II) - PowerPoint PPT Presentation

Probability and Statistics for Computer Science (II) Probabilis+c analysis is mathema+cal, but intui+on dominates and guides the math Prof.


  1. Probability ¡and ¡Statistics ¡ ì ¡ for ¡Computer ¡Science ¡(II) ¡ “Probabilis+c ¡analysis ¡is ¡ mathema+cal, ¡but ¡intui+on ¡ dominates ¡and ¡guides ¡the ¡ math” ¡– ¡Prof. ¡Dimitri ¡ Bertsekas ¡ Credit: ¡wikipedia ¡ Hongye ¡Liu, ¡Teaching ¡Assistant ¡Prof, ¡CS361, ¡UIUC, ¡8.29.2019 ¡

  2. Last ¡time ¡ ✺ Probability ¡a ¡first ¡look ¡ ✺ Outcome ¡and ¡Sample ¡Space ¡ ✺ Event ¡ ✺ Probability ¡ ¡Probability ¡axioms ¡& ¡Proper+es ¡ ✺ Calcula+ng ¡probability ¡

  3. Counting: ¡How ¡many ¡think ¡ pairs ¡can ¡there ¡be? ¡ ¡ ✺ Q. ¡Es+mate ¡for ¡the ¡possible ¡# ¡ of ¡think ¡pairs ¡in ¡a ¡class ¡of ¡180 ¡ ¡ ¡

  4. Counting: ¡How ¡many ¡think ¡ pairs ¡can ¡there ¡be? ¡ ¡ ✺ Q. ¡Es+mate ¡for ¡the ¡possible ¡# ¡ of ¡think ¡pairs ¡in ¡a ¡class ¡of ¡180 ¡ ¡ ¡ C (180 , 2) = 180! 2!178!

  5. Counting: ¡How ¡many ¡think ¡ pairs ¡could ¡there ¡be? ¡ ¡ ✺ Q. ¡Es+mate ¡for ¡# ¡of ¡pairs ¡from ¡ different ¡groups. ¡There ¡are ¡ 4 ¡ even ¡sized ¡groups ¡in ¡a ¡class ¡of ¡ 180 ¡

  6. Counting: ¡How ¡many ¡think ¡ pairs ¡could ¡there ¡be? ¡ ¡ ✺ Q. ¡Es+mate ¡for ¡# ¡of ¡pairs ¡from ¡ different ¡groups. ¡There ¡are ¡ 4 ¡ even ¡sized ¡groups ¡in ¡a ¡class ¡of ¡ 180 ¡ C (4 , 2) · 45 2

  7. Random ¡experiment ¡ ✺ Q: ¡ ¡Is ¡the ¡following ¡experiment ¡a ¡ random ¡experiment ¡for ¡probabilis+c ¡ study? ¡ A. Yes ¡ B. ¡No ¡

  8. Random ¡experiment ¡ ✺ Q: ¡ ¡Is ¡the ¡following ¡experiment ¡a ¡ random ¡experiment ¡for ¡probabilis+c ¡ study? ¡ A. Yes ¡ B. ¡No ¡

  9. Sample ¡space ¡ ✺ Q: ¡What ¡is ¡the ¡sample ¡space ¡of ¡ answering ¡an ¡i-­‑Clicker ¡ques+on? ¡ ¡ ¡ ¡ ¡ ¡ A . ¡ ¡ ¡{A} ¡ ¡ ¡ ¡ ¡ ¡ B . ¡ ¡{B} ¡ ¡ ¡ ¡ ¡ ¡ ¡ C . ¡{C} ¡ ¡ ¡ ¡ D . ¡ ¡ ¡{A,B} ¡ ¡ ¡ E . ¡{A, ¡B, ¡C, ¡D, ¡E} ¡

  10. Sample ¡space ¡ ✺ Q: ¡What ¡is ¡the ¡sample ¡space ¡of ¡ answering ¡an ¡i-­‑Clicker ¡ques+on? ¡ ¡ ¡ ¡ ¡ ¡ A . ¡ ¡ ¡{A} ¡ ¡ ¡ ¡ ¡ ¡ B . ¡ ¡{B} ¡ ¡ ¡ ¡ ¡ ¡ ¡ C . ¡{C} ¡ ¡ ¡ ¡ D . ¡ ¡ ¡{A,B} ¡ ¡ ¡ E . ¡{A, ¡B, ¡C, ¡D, ¡E} ¡

  11. Size ¡of ¡sample ¡space ¡ ✺ Q: ¡What ¡is ¡the ¡size ¡of ¡the ¡sample ¡ space ¡of ¡this ¡experiment? ¡Deal ¡5 ¡ different ¡cards ¡out ¡of ¡a ¡fairly ¡shuffled ¡ deck ¡of ¡standard ¡poker ¡(order ¡ maeers). ¡ ¡ ¡ ¡ ¡ A . ¡ ¡C(52,5) ¡ ¡ ¡ ¡ ¡ ¡ ¡ B . ¡P(52,5) ¡ ¡ ¡ ¡ ¡ ¡ ¡ C . ¡52 ¡

  12. Size ¡of ¡sample ¡space ¡ ✺ Q: ¡What ¡is ¡the ¡size ¡of ¡the ¡sample ¡ space ¡of ¡this ¡experiment? ¡Deal ¡5 ¡ different ¡cards ¡out ¡of ¡a ¡fairly ¡shuffled ¡ deck ¡of ¡standard ¡poker ¡(order ¡ maeers). ¡ ¡ ¡ ¡ ¡ A . ¡ ¡C(52,5) ¡ ¡ ¡ ¡ ¡ ¡ ¡ B . ¡P(52,5) ¡ ¡ ¡ ¡ ¡ ¡ ¡ C . ¡52 ¡

  13. Event ¡ ✺ Roll ¡a ¡4-­‑sided ¡die ¡twice ¡ ¡The ¡event ¡“max ¡is ¡4” ¡and ¡“sum ¡is ¡4” ¡ ¡are ¡disjoint. ¡ ¡A. ¡True ¡ ¡B. ¡False ¡

  14. Event ¡ ✺ Roll ¡a ¡4-­‑sided ¡die ¡twice ¡ ¡The ¡event ¡“max ¡is ¡4” ¡and ¡“sum ¡is ¡4” ¡ ¡are ¡disjoint. ¡ ¡A. ¡True ¡ ¡B. ¡False ¡

  15. Probability ¡ ✺ Q: ¡A ¡deck ¡of ¡ordinary ¡cards ¡is ¡shuffled ¡ and ¡13 ¡cards ¡are ¡dealt. ¡What ¡is ¡the ¡ probability ¡that ¡the ¡last ¡card ¡dealt ¡is ¡an ¡ ace? ¡ A . ¡4*P(51,12)/P(52,13) ¡ ¡ B . ¡4/13 ¡ ¡ ¡ ¡ C . ¡4*C(51,12)/C(52,13) ¡

  16. Probability ¡ ✺ Q: ¡A ¡deck ¡of ¡ordinary ¡cards ¡is ¡shuffled ¡ and ¡13 ¡cards ¡are ¡dealt. ¡What ¡is ¡the ¡ probability ¡that ¡the ¡last ¡card ¡dealt ¡is ¡an ¡ ace? ¡ A . ¡ 4* ¡P(51,12)/P(52,13) ¡ ¡ ¡ B . ¡4/13 ¡ ¡ ¡ ¡ C . ¡4*C(51,12)/C(52,13) ¡ 4* ¡P(51,12)/P(52,13) ¡= ¡1/13 ¡

  17. Content ¡ ✺ Probability ¡ ¡ ✺ Coun*ng ¡ ¡ ✺ Condi+onal ¡Probability ¡ ✺ Independence ¡ ¡

  18. Counting ¡for ¡countable ¡finite ¡ events’ ¡probability ¡ ¡ ✺ From ¡the ¡last ¡axiom, ¡the ¡probability ¡of ¡event ¡ E ¡ is ¡the ¡sum ¡of ¡probabili+es ¡of ¡the ¡disjoint ¡ outcomes ¡ ¡ � P ( E ) = P ( A i ) A i ∈ E ✺ If ¡the ¡outcomes ¡are ¡atomic ¡and ¡have ¡equal ¡ probability, ¡ number of outcomes in E P ( E ) = total number of outcomes in Ω

  19. Addition ¡principle ¡ ¡ ✺ Suppose ¡there ¡are ¡ n ¡disjoint ¡ events, ¡the ¡number ¡of ¡ outcomes ¡for ¡any ¡of ¡these ¡ events ¡will ¡be ¡the ¡sum ¡of ¡the ¡ outcomes ¡of ¡these ¡events. ¡

  20. Multiplication ¡principle ¡ ¡ ✺ Suppose ¡that ¡a ¡choice ¡is ¡made ¡ in ¡two ¡consecu+ve ¡stages ¡ ✺ Stage ¡1 ¡has ¡ m ¡choices ¡ ✺ Stage ¡2 ¡has ¡ n ¡choices ¡ ✺ Then ¡the ¡total ¡number ¡of ¡ choices ¡is ¡ mn ¡

  21. Multiplication: ¡example ¡ ✺ How ¡many ¡ways ¡are ¡there ¡to ¡ draw ¡two ¡cards ¡of ¡the ¡same ¡suit ¡ from ¡a ¡standard ¡deck ¡of ¡52 ¡cards? ¡ The ¡draw ¡is ¡without ¡replacement. ¡

  22. Multiplication: ¡example ¡ ✺ How ¡many ¡ways ¡are ¡there ¡to ¡ draw ¡two ¡cards ¡of ¡the ¡same ¡suit ¡ from ¡a ¡standard ¡deck ¡of ¡52 ¡cards? ¡ The ¡draw ¡is ¡without ¡replacement. ¡ 52×12 ¡

  23. Permutations ¡(order ¡matters) ¡ ¡ ✺ From ¡10 ¡digits ¡(0,…9) ¡pick ¡3 ¡numbers ¡for ¡ a ¡CS ¡course ¡number ¡(no ¡repe++on), ¡how ¡ many ¡possible ¡numbers ¡are ¡there? ¡ 10×9×8 ¡= ¡P(10,3) ¡= ¡720 ¡ n ! P ( n, r ) = ( n − r )!

  24. Combinations ¡(order ¡not ¡ important) ¡ ¡ ✺ A ¡graph ¡has ¡N ¡ver+ces, ¡how ¡many ¡edges ¡ could ¡there ¡exist ¡at ¡most? ¡Edges ¡are ¡un-­‑ direc+onal. ¡ ¡N×(N-­‑1)/2 ¡ n ! ( n − r )! r ! = P ( n, r ) = C ( n, n − r ) C ( n, r ) = r !

  25. Partition ¡ ¡ ✺ How ¡many ¡ways ¡are ¡there ¡to ¡rearrange ¡ ILLINOIS? ¡ 8! 3!2!1!1!1! I ¡ L ¡ ✺ General ¡form ¡ n ! n 1 ! n 2 ! ...n r !

  26. Allocation ¡ ¡ ✺ Pupng ¡6 ¡iden+cal ¡leeers ¡into ¡ 3 ¡mailboxs ¡(empty ¡allowed) ¡ L L L L L L Choose ¡2 ¡from ¡the ¡8 ¡posi+ons ¡

  27. Allocation ¡ ¡ ✺ Pupng ¡6 ¡iden+cal ¡leeers ¡into ¡ 3 ¡mailboxs ¡(empty ¡allowed) ¡ L L L L L L Choose ¡2 ¡from ¡the ¡8 ¡posi+ons: ¡ C(8,2) ¡= ¡28 ¡

  28. Allocation: ¡beads ¡ ¡ ✺ Pupng ¡3000 ¡beads ¡randomly ¡ into ¡20 ¡bins ¡(empty ¡allowed) ¡ 3019! C (3019 , 19) = 19!3000!

  29. Probability: ¡Birthday ¡problem ¡ ¡ ✺ Among ¡30 ¡people, ¡what ¡is ¡the ¡ probability ¡that ¡at ¡least ¡2 ¡of ¡them ¡ celebrate ¡their ¡birthday ¡on ¡the ¡same ¡ day? ¡Assume ¡that ¡there ¡is ¡no ¡ February ¡29 ¡and ¡each ¡day ¡of ¡the ¡year ¡ is ¡equally ¡likely ¡to ¡be ¡a ¡birthday. ¡

  30. Probability: ¡Birthday ¡problem ¡ The ¡probability ¡some ¡people ¡share ¡the ¡ ¡same ¡birthday ¡in ¡a ¡room ¡of ¡30 ¡people ¡ = 1 − P { all birthdays are different } = 1 − P (365 , 30) 365 30 = 1 − 365 × 364 × ... 336 365 30 ≃ 0 . 706

  31. Content ¡ ✺ Probability ¡ ¡ ✺ Coun+ng ¡ ¡ ✺ Condi*onal ¡Probability ¡ ✺ Independence ¡ ¡

  32. Conditional ¡Probability ¡ ✺ Mo+va+on ¡of ¡condi+onal ¡ probability ¡ ✺ We ¡are ¡not ¡always ¡uncertain ¡about ¡ everything ¡ ✺ We ¡oren ¡only ¡need ¡to ¡compute ¡ probability ¡under ¡certain ¡condi+ons ¡ ✺ Use ¡data ¡to ¡decide ¡model ¡parameters ¡

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