![Page 1: D 8 Lecture 14, September 26data8.org/fa16/lectures/lec14.pdfFall 2016 Slides created by Ani Adhikari and John DeNero Lecture 14, September 26 Probability and Sampling Announcements](https://reader034.vdocuments.us/reader034/viewer/2022042804/5f564fe94a55d360d850b17f/html5/thumbnails/1.jpg)
DATA 8Fall 2016
Slides created by Ani Adhikari and John DeNero
Lecture 14, September 26Probability and Sampling
![Page 2: D 8 Lecture 14, September 26data8.org/fa16/lectures/lec14.pdfFall 2016 Slides created by Ani Adhikari and John DeNero Lecture 14, September 26 Probability and Sampling Announcements](https://reader034.vdocuments.us/reader034/viewer/2022042804/5f564fe94a55d360d850b17f/html5/thumbnails/2.jpg)
Announcements● Project 1 Parts 1 and 2 Checkpoint: 5 pm tomorrow
Tuesday 9/27.
● No homework due this week. Homework will be assigned on Friday.
![Page 3: D 8 Lecture 14, September 26data8.org/fa16/lectures/lec14.pdfFall 2016 Slides created by Ani Adhikari and John DeNero Lecture 14, September 26 Probability and Sampling Announcements](https://reader034.vdocuments.us/reader034/viewer/2022042804/5f564fe94a55d360d850b17f/html5/thumbnails/3.jpg)
Monty Hall Problem
(Demo)
![Page 4: D 8 Lecture 14, September 26data8.org/fa16/lectures/lec14.pdfFall 2016 Slides created by Ani Adhikari and John DeNero Lecture 14, September 26 Probability and Sampling Announcements](https://reader034.vdocuments.us/reader034/viewer/2022042804/5f564fe94a55d360d850b17f/html5/thumbnails/4.jpg)
Another Way to See the Answer Contestant Picks Monty Throws Out Remaining Door
Car Goat Goat
Goat Goat Car
Goat Goat Car
Only this column is random. Each row has chance 1/3.
![Page 5: D 8 Lecture 14, September 26data8.org/fa16/lectures/lec14.pdfFall 2016 Slides created by Ani Adhikari and John DeNero Lecture 14, September 26 Probability and Sampling Announcements](https://reader034.vdocuments.us/reader034/viewer/2022042804/5f564fe94a55d360d850b17f/html5/thumbnails/5.jpg)
Probability● Lowest value: 0
○ Chance of event that is impossible● Highest value: 1 (or 100%)
○ Chance of event that is certain
● If an event has chance 70%, then the chance that it doesn’t happen is○ 100% - 70% = 30%○ 1 - 0.7 = 0.3 (Demo)
![Page 6: D 8 Lecture 14, September 26data8.org/fa16/lectures/lec14.pdfFall 2016 Slides created by Ani Adhikari and John DeNero Lecture 14, September 26 Probability and Sampling Announcements](https://reader034.vdocuments.us/reader034/viewer/2022042804/5f564fe94a55d360d850b17f/html5/thumbnails/6.jpg)
Equally Likely OutcomesAssuming all outcomes are equally likely, the chance of an event A is:
number of outcomes that make A happenP(A) = --------------------------------------------------------------- total number of outcomes
(Demo)
![Page 7: D 8 Lecture 14, September 26data8.org/fa16/lectures/lec14.pdfFall 2016 Slides created by Ani Adhikari and John DeNero Lecture 14, September 26 Probability and Sampling Announcements](https://reader034.vdocuments.us/reader034/viewer/2022042804/5f564fe94a55d360d850b17f/html5/thumbnails/7.jpg)
Fraction of a Fraction
(Demo)
![Page 8: D 8 Lecture 14, September 26data8.org/fa16/lectures/lec14.pdfFall 2016 Slides created by Ani Adhikari and John DeNero Lecture 14, September 26 Probability and Sampling Announcements](https://reader034.vdocuments.us/reader034/viewer/2022042804/5f564fe94a55d360d850b17f/html5/thumbnails/8.jpg)
Multiplication RuleChance that two events A and B both happen
= P(A happens) x P(B happens given that A has happened)
● The answer is smaller than each of the two chances being multiplied.
● The more conditions you have to satisfy, the less likely you are to satisfy them all.
(Demo)
![Page 9: D 8 Lecture 14, September 26data8.org/fa16/lectures/lec14.pdfFall 2016 Slides created by Ani Adhikari and John DeNero Lecture 14, September 26 Probability and Sampling Announcements](https://reader034.vdocuments.us/reader034/viewer/2022042804/5f564fe94a55d360d850b17f/html5/thumbnails/9.jpg)
Addition RuleIf event A can happen in exactly one of two ways, then
P(A) = P(first way) + P(second way)
● The answer is bigger than each the chance of each individual way.
![Page 10: D 8 Lecture 14, September 26data8.org/fa16/lectures/lec14.pdfFall 2016 Slides created by Ani Adhikari and John DeNero Lecture 14, September 26 Probability and Sampling Announcements](https://reader034.vdocuments.us/reader034/viewer/2022042804/5f564fe94a55d360d850b17f/html5/thumbnails/10.jpg)
At Least one Head● In 3 tosses:
○ Any outcome except TTT○ P(TTT) = (½) x (½) x (½) = ⅛○ P(at least one head) = 1 - P(TTT) = ⅞ = 87.5%
● In 10 tosses:○ 1 - (½)**10○ 99.9%
(Demo)
![Page 11: D 8 Lecture 14, September 26data8.org/fa16/lectures/lec14.pdfFall 2016 Slides created by Ani Adhikari and John DeNero Lecture 14, September 26 Probability and Sampling Announcements](https://reader034.vdocuments.us/reader034/viewer/2022042804/5f564fe94a55d360d850b17f/html5/thumbnails/11.jpg)
Sampling● Deterministic sample:
○ Sampling scheme doesn’t involve chance
● Probability sample:○ Before the sample is drawn, you have to know the
selection probability of every group of people in the population.
○ Not all individuals have to have equal chance of being selected.
![Page 12: D 8 Lecture 14, September 26data8.org/fa16/lectures/lec14.pdfFall 2016 Slides created by Ani Adhikari and John DeNero Lecture 14, September 26 Probability and Sampling Announcements](https://reader034.vdocuments.us/reader034/viewer/2022042804/5f564fe94a55d360d850b17f/html5/thumbnails/12.jpg)
Sample of Convenience● Example: sample consists of whoever walks by● Just because you think you’re sampling “at random”,
doesn’t mean you are.● If you can’t figure out ahead of time
○ what’s the population○ what’s the chance of selection, for each group in the
populationthen you don’t have a random sample.