probability and statistics
play

Probability and Statistics for Computer Science - PowerPoint PPT Presentation

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


  1. Probability ¡and ¡Statistics ¡ ì ¡ for ¡Computer ¡Science ¡ ¡ “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, ¡1.30.2020 ¡

  2. Homework ¡(I) ¡ ✺ Due ¡1/30 ¡at ¡11:59pm ¡ ✺ There ¡is ¡one ¡op+onal ¡problem ¡with ¡ extra ¡5 ¡points. ¡(Won’t ¡be ¡in ¡exams) ¡

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

  4. What’s ¡“Probability” ¡about? ¡ ✺ Probability ¡provides ¡mathema+cal ¡ tools/models ¡to ¡reason ¡about ¡ uncertainty/randomness ¡ ✺ We ¡deal ¡with ¡data, ¡but ¡o[en ¡ hypothe+cal, ¡simplified ¡ ✺ The ¡purpose ¡is ¡to ¡reason ¡how ¡likely ¡ something ¡will ¡happen ¡ ¡

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

  6. Outcome ¡ ✺ An ¡outcome ¡ A ¡is ¡a ¡possible ¡result ¡ of ¡a ¡random ¡repeatable ¡ experiment ¡ Random: ¡ ¡ uncertain, ¡ ¡ Nondeter-­‑ ¡ minis+c, ¡… ¡ ¡ ✺

  7. Sample ¡space ¡ ✺ The ¡Sample ¡Space, ¡ Ω, ¡ is ¡the ¡ set ¡of ¡all ¡possible ¡outcomes ¡ associated ¡with ¡the ¡ experiment ¡ ✺ Discrete ¡or ¡Con+nuous ¡

  8. Sample ¡Space ¡example ¡(1) ¡ ✺ Experiment: ¡we ¡roll ¡a ¡tetrahedral ¡die ¡ twice ¡ ✺ Discrete ¡Sample ¡space: ¡ ¡ {(1,1), ¡(1,2)….} ¡

  9. Sample ¡Space ¡example ¡(2) ¡ ✺ Experiment: ¡Romeo ¡and ¡Juliet’s ¡date ¡ ✺ Con7nuous ¡Sample ¡space: ¡ ¡

  10. Sample ¡Space ¡depends ¡on ¡ experiment ¡(3) ¡ ✺ Different ¡coin ¡tosses ¡ ✺ Toss ¡a ¡fair ¡coin ¡ ✺ Toss ¡a ¡fair ¡coin ¡twice ¡ ✺ Toss ¡un+l ¡a ¡head ¡appears ¡

  11. Sample ¡Space ¡depends ¡on ¡ experiment ¡(4) ¡ ✺ Drawing ¡2 ¡socks ¡one ¡at ¡a ¡+me ¡from ¡a ¡bag ¡ containing ¡1 ¡blue ¡sock, ¡1 ¡orange ¡sock ¡and ¡1 ¡ white ¡sock ¡ with ¡replacement ? ¡ ✺ Drawing ¡2 ¡socks ¡one ¡at ¡a ¡+me ¡from ¡a ¡bag ¡ containing ¡1 ¡blue ¡sock, ¡1 ¡orange ¡sock ¡and ¡1 ¡ white ¡sock ¡ without ¡replacement ? ¡

  12. Q. ¡ ✺ Drawing ¡2 ¡socks ¡one ¡at ¡a ¡+me ¡from ¡a ¡bag ¡ containing ¡1 ¡blue ¡sock, ¡1 ¡orange ¡sock ¡and ¡1 ¡ white ¡sock ¡ with ¡replacement ? ¡What ¡is ¡the ¡ size ¡of ¡the ¡sample ¡space? ¡ ¡A. ¡5 ¡ ¡ ¡B. ¡7 ¡ ¡ ¡C. ¡9 ¡

  13. Q. ¡ ✺ Drawing ¡2 ¡socks ¡one ¡at ¡a ¡+me ¡from ¡a ¡bag ¡ containing ¡1 ¡blue ¡sock, ¡1 ¡orange ¡sock ¡and ¡1 ¡ white ¡sock ¡ without ¡replacement ? ¡What ¡is ¡ the ¡size ¡of ¡the ¡sample ¡space? ¡ ¡A. ¡5 ¡ ¡ ¡B. ¡6 ¡ ¡ ¡C. ¡9 ¡

  14. Sample ¡Space ¡in ¡real ¡life ¡ ¡ ✺ Grades ¡in ¡a ¡course ¡ ✺ Possible ¡muta+ons ¡in ¡a ¡gene ¡

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

  16. Event ¡ ¡ ✺ An ¡event ¡E ¡is ¡a ¡subset ¡of ¡the ¡sample ¡space ¡Ω ¡ ✺ So ¡an ¡event ¡is ¡a ¡set ¡of ¡outcomes ¡that ¡is ¡a ¡ subset ¡of ¡Ω, ¡ie. ¡ ✺ Zero ¡outcome ¡ ✺ One ¡outcome ¡ ✺ Several ¡outcomes ¡ ✺ All ¡outcomes ¡

  17. The ¡same ¡experiment ¡may ¡have ¡ different ¡events ¡ ¡ ✺ When ¡two ¡coins ¡are ¡tossed ¡ ✺ B oth ¡coins ¡come ¡up ¡the ¡same? ¡ ✺ At ¡least ¡one ¡head ¡comes ¡up? ¡

  18. Some ¡experiment ¡may ¡never ¡end ¡ ¡ ✺ Experiment: ¡Tossing ¡a ¡coin ¡un+l ¡a ¡head ¡ appears ¡ ✺ E: ¡Coin ¡is ¡tossed ¡at ¡least ¡3 ¡+mes ¡ This ¡event ¡includes ¡infinite ¡# ¡of ¡outcomes ¡

  19. Venn ¡Diagrams ¡of ¡events ¡as ¡sets ¡ E 2 Ω E 1 E 1 − E 2 E c E 1 ∪ E 2 E 1 ∩ E 2 1

  20. Combining ¡events ¡ ¡ ✺ Say ¡we ¡roll ¡a ¡six-­‑sided ¡die. ¡Let ¡ E 1 = { 1 , 2 , 5 } and E 2 = { 2 , 4 , 6 } ✺ What ¡is ¡ E 1 ∪ E 2 ✺ What ¡is ¡ E 1 ∩ E 2 ✺ What ¡is ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ E 1 − E 2 ✺ What ¡is ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ E c 1 = Ω − E 1

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

  22. Frequency ¡Interpretation ¡of ¡ Probability ¡ ✺ Given ¡an ¡experiment ¡with ¡an ¡outcome ¡ A , ¡ we ¡can ¡calculate ¡the ¡probability ¡of ¡ A ¡by ¡ repea+ng ¡the ¡experiment ¡over ¡and ¡over ¡ number of time A occurs P ( A ) = lim N N − > ∞ ✺ So, ¡ 0 ≤ P ( A ) ≤ 1 � P ( A i ) = 1 A i ∈ Ω

  23. Axiomatic ¡Definition ¡of ¡Probability ¡ ✺ A ¡probability ¡func+on ¡is ¡any ¡func+on ¡P ¡that ¡maps ¡ sets ¡to ¡real ¡number ¡and ¡sa+sfies ¡the ¡following ¡ three ¡ axioms: ¡ ¡ ¡1 ¡) ¡Probability ¡of ¡any ¡event ¡E ¡is ¡non-­‑nega+ve ¡ ¡ P ( E ) ≥ 0 ¡2) ¡Every ¡experiment ¡has ¡an ¡outcome ¡ ¡ P ( Ω ) = 1 ¡

  24. Axiomatic ¡Definition ¡of ¡Probability ¡ ¡ ¡3) ¡The ¡probability ¡of ¡disjoint ¡events ¡is ¡addi+ve ¡ N ¡ � P ( E 1 ∪ E 2 ∪ ... ∪ E N ) = P ( E i ) i =1 if E i ∩ E j = Ø for all i � = j

  25. Q. ¡ ✺ Toss ¡a ¡coin ¡3 ¡+mes ¡ ¡The ¡event ¡“exactly ¡2 ¡heads ¡appears” ¡ and ¡“exactly ¡2 ¡tails ¡appears” ¡are ¡disjoint. ¡ ¡A. ¡True ¡ ¡B. ¡False ¡

  26. Venn ¡Diagrams ¡of ¡events ¡as ¡sets ¡ E 2 Ω E 1 E 1 − E 2 E c E 1 ∪ E 2 E 1 ∩ E 2 1

  27. Properties ¡of ¡probability ¡ ✺ The ¡complement ¡ ¡ P ( E c ) = 1 − P ( E ) ¡ ✺ The ¡difference ¡ P ( E 1 − E 2 ) = P ( E 1 ) − P ( E 1 ∩ E 2 )

  28. Properties ¡of ¡probability ¡ ¡ ✺ The ¡union ¡ P ( E 1 ∪ E 2 ) = P ( E 1 ) + P ( E 2 ) − P ( E 1 ∩ E 2 ) ✺ The ¡union ¡of ¡mul+ple ¡E ¡ P ( E 1 ∪ E 2 ∪ E 3 ) = P ( E 1 ) + P ( E 2 ) + P ( E 3 ) − P ( E 1 ∩ E 2 ) − P ( E 2 ∩ E 3 ) − P ( E 3 ∩ E 1 ) + P ( E 1 ∩ E 2 ∩ E 3 )

  29. Content ¡ ✺ Probability ¡a ¡first ¡look ¡ ✺ Outcome ¡and ¡Sample ¡Space ¡ ✺ Event ¡ ✺ Probability ¡ ¡Probability ¡axioms ¡& ¡Proper+es ¡ ✺ Calcula7ng ¡probability ¡

  30. The ¡Calculation ¡of ¡Probability ¡ ✺ Discrete ¡countable ¡finite ¡E ¡ ✺ Discrete ¡countable ¡infinite ¡E ¡ ✺ Con+nuous ¡E ¡

  31. The ¡Calculation ¡of ¡Probability ¡ ✺ Discrete/countable ¡finite ¡E ¡ ✺ Discrete/countable ¡infinite ¡E ¡ ✺ Con+nuous ¡E ¡

  32. Counting ¡to ¡determine ¡probability ¡ of ¡countable ¡finite ¡E ¡ ✺ 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 Ω

  33. Probability ¡using ¡counting: ¡(1) ¡ ✺ Tossing ¡a ¡fair ¡coin ¡twice: ¡ ✺ Prob. ¡that ¡it ¡appears ¡the ¡same? ¡ ✺ Prob. ¡that ¡at ¡least ¡one ¡head ¡appears? ¡

  34. Probability ¡using ¡counting: ¡(2) ¡ ✺ 4 ¡rolls ¡of ¡a ¡5-­‑sided ¡die: ¡ ¡ E : ¡they ¡all ¡give ¡different ¡numbers ¡ ✺ Number ¡of ¡outcomes ¡that ¡make ¡the ¡event ¡ happen: ¡ ¡ ¡ ¡ ✺ Number ¡of ¡outcomes ¡in ¡the ¡sample ¡space ¡ ¡ ¡ ✺ Probability: ¡ ¡

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