680 likes | 692 Vues
Delve into the basics of probability theory, including events, sample space, and probability functions. Explore the Big Rules of Probability like the Not Rule and Or Rule. Prepare for an upcoming midterm and excel skills test. Learn about Conditional Probability and the And Rule. Solve practice problems and enhance your understanding.
E N D
Stat 155, Section 2, Last Time • Probability Theory • Foundations of Probability • Events, Sample Space • Probability Function • Simple Random Sampling (count samples) • Big Rules of Probability: • Not Rule ( 1 – P{opposite}) • Or Rule
Reading In Textbook Approximate Reading for Today’s Material: Pages 259-271 , 311-323 Approximate Reading for Next Class: Pages 277-286, 291-305
Midterm I Coming up: Tuesday, Feb. 27 Material: HW Assignments 1 – 6 Extra Office Hours: Mon. Feb. 26, 8:30 – 12:00, 2:00 – 3:30 (Instead of Review Session) Bring Along: 1 8.5” x 11” sheet of paper with formulas
Midterm I How will I test for Excel skills? • No computers allowed • Fill out menus with pencil • Write Excel Commands with pencil Put Excel commands (& details) on your: 1 8.5” x 11” sheet of paper with formulas
Midterm I Example: What fraction of N(1,2) population is smaller than 0? Could ask you to fill out menu: You write: 0 1 2 true
Midterm I Example: What fraction of N(1,2) population is smaller than 0? Above results in: Note: “command line”
Midterm I Example: What fraction of N(1,2) population is smaller than 0? So could ask you to simply write: =NORMDIST(0,1,2,TRUE) Note that you need to know: • Excel function names • Which arguments go where So put all these on your sheet of formulas (suggestion: make early & use to study)
Big Rules of Probability • Not Rule: P{not A} = 1 – P{A} • Or Rule: P{A or B} = P{A} + P{B} – P{A and B} Third rule? Symbolic logic is based on: and, or, not How about a rule for and?
Big Rules of Probability • Now head towards a rule for “and” • Needs a new concept: Conditional Probability Idea: If event A is known to have occurred, what is chance of B? Note: “knowing A” means sample space is restricted to A
Conditional Probability E.g. Roll a die, A = {even}, B = {1,2,3} P{B, when A is known} = ??? (i.e. Somebody rolls, and only tells you “even”. Note “<= 3” is no longer 50-50, Since fewer even #s are <= 3)
Conditional Probability E.g. Roll a die, A = {even}, B = {1,2,3} P{B, when A is known} = ??? Try “equally likely”: CAREFUL: This is wrong!!! Problem: for B, should not include 1 or 3, since they are not even
Conditional Probability E.g. Roll a die, A = {even}, B = {1,2,3} P{B, when A is known} = ??? Correct Answer: Makes sense, since chance should go down from ½.
Conditional Probability General definition: Probability of B given A = Next, by multiplying by P{A}, get and rule of probability
And Rule of Probability Big Rule III: P{A & B} = P{A|B} P{B} = P{B|A} P{A} Memory trick: like “canceling fractions”, but make bar vertical, not a fraction Note: 2 ways to do this. Good strategy: look at both, as one is often easier.
The And Rule of Probability HW: 4.89, 4.91a 4.95 (see 4.92)
And now for something completely different Recall Distribution of majors of students in this course:
And now for something completely different Three nurses died & went to heaven where they were met at the Pearly Gates by St. Peter.
And now for something completely different To the first, he asked, "What did you do on Earth and why should you go to heaven?" "I was a nurse in an inner city hospital," she replied. "I worked to bring healing and peace to the poor suffering city children." "Very noble," said St. Peter. "You may enter." And in through the gates she went.
And now for something completely different To the next, he asked the same question, "So what did you do on Earth?" "I was a nurse at a missionary hospital in Africa," she replied. "For many years, I worked with a skeleton crew of doctors and nurses who tried to reach out to as many peoples and tribes with a hand of healing and with a message of God's love." "How touching," said St. Peter. "You too may enter." And in she went.
And now for something completely different He then came to the last nurse, to whom he asked, "So, what did you do back on Earth?" After some hesitation, she explained, "I was just a nurse at an H.M.O." St. Peter pondered this for a moment, and then said, "Okay, you may enter also." "Whew!" said the nurse. "For a moment there, I thought you weren't going to let me in."
And now for something completely different "Oh, you can come in," said St. Peter, "but you can only stay for three days..."
Big Rules of Probability Example illustrating power (and use) of rules: Toss a Coin: if H take a ball from I: R RG G G if T take a ball from II: R RG Now study progressively harder problems…
Balls in Urns Example H R RG G G T R RG E.g. A: P{R | H} = 2/5 (chance of R, if know got H) Simple “equally likely” calculation (just counting) works here
Related HW HW: C13 A company makes 40% of its cars at factory A, and the rest at factory B. Factory A produces 10% lemons, and Factory B produces 5% lemons. A car is chosen at random. What is the probability that: • It came from Factory A? (0.4) • It is a lemon, if it came from Fact. A? (0.1)
Balls in Urns Example H R RG G G T R RG E.g. B: P{R & H} = ??? Try simple counting: P{R & H} = ??? Caution: This is wrong!!! Reason: balls are not equally likely.
Balls in Urns Example H R RG G G T R RG E.g. B: P{R & H} = ??? Correct Answer: P{R & H} = P{H | R} P{R} (OK, but hard) = P{R | H} P{H} = (2/5)(1/2) = 1/5 Note: < ¼ (from wrong answer above)
Related HW HW: C13 • It is a lemon, from Factory A? (0.04) (think carefully about contrast with (b))
Balls in Urns Example H R RG G G T R RG E.g. C: P{R} = ??? Try simple counting: P{R} = ??? Caution: This is wrong!!! Reason: again balls are not equally likely.
Balls in Urns Example H R RG G G T R RG E.g. C: P{R} = ??? Note: now expect > ½, since R’s in II are more likely (thus get more weight) Need to take which urn into account, so write event in terms of the urn ball came from
Balls in Urns Example H R RG G G T R RG E.g. C: Correct Answer: P{R} = P{(R & H) or (R & T)} = (“expand”) = P{R & H} + P{R & T} – 0 (or Rule) = 1/5 + P{R | T} P{T} = (from B) = 1/5 + (2/3)(1/2) = 8/15 Note: slightly > ½ (as expected)
Related HW HW: C13 • It is a lemon? (0.07)
Balls in Urns Example H R RG G G T R RG E.g. D: P{H | R} = ??? • Saved for last, since this is hardest • Although only “turn around” of e.g. A • This is common: One Cond. Prob. much easier than the reverse
Balls in Urns Example H R RG G G T R RG E.g. D: P{H | R} = Makes sense: if see R, less likely from H
Related HW HW: C13 • It came from Factory A, if it is a lemon? (4/7) 4.103 4.105
Plotting Bivariate Data Recall Toy Example: (1,2) (3,1) (-1,0) (2,-1)
And now for something completely different Viewing Higher Dimensional Data: • Extend to higher dimensions • E.g. replace pairs by triples • Make “3-d scatterplot” • As “points in space” • Think about “point cloud”
And now for something completely different Toy 3-d data set:
And now for something completely different High Light One Point
And now for something completely different X Coor of High Light
And now for something completely different Y Coor of High Light
And now for something completely different Z Coor of High Light
And now for something completely different Proj- ection on X Axis
And now for something completely different 1-d View: Proj- ection on X Axis
And now for something completely different Proj- ection on Y Axis
And now for something completely different 1-d View: Proj- ection on Y Axis
And now for something completely different Proj- ection on Z Axis
And now for something completely different 1-d View: Proj- ection on Z Axis
And now for something completely different Proj- ection on X-Y Plane
And now for something completely different Proj- ection on X-Y Plane rotated up
And now for something completely different Proj- ection on X-Z Plane