220 likes | 329 Views
Statistics Overview. Probability Conditional Probability Probability Density Functions. Probability: roots in gambling. I’ll see you. What’ve you got? Five aces - and you? Two revolvers. All right, you win. Easy Stuff. Coin toss Probability of heads is 1/2 Fair die
E N D
Statistics Overview Probability Conditional Probability Probability Density Functions
Probability: roots in gambling • I’ll see you. What’ve you got? • Five aces - and you? • Two revolvers. • All right, you win. Probability
Easy Stuff • Coin toss • Probability of heads is 1/2 • Fair die • Probability of throwing any number is 1/6 • Bag of marbles (2 red, 3 green, 4 blue) • Probability of drawing a red marble is 2/9 • Probability of not drawing blue is: Probability
Still Easy Stuff • Joe and Fred play tennis each week • So far this year Joe has won 12 times and Fred 18 • What is the chance of Joe winning tomorrow? • Joe also plays Mary and wins 1 of 4 games. • What is the chance of Joe winning both games this week? • What if Joe has good weeks and bad weeks? Probability
Basic Rules • These are examples of the addition and multiplication rules • The probability of the union of two independent events is the sum of their individual probabilities. • we can also extend this to cover non-disjoint events • The probability of the intersection of two independent events is the product of their probabilities. Probability
Some less intuitive stuff… • How many cards do you need to be dealt before the odds of getting a pair are better than ½ ? Probability
Simple Model: Cards replaced This model overestimates if cards are not replaced – chances are less Probability
Correct Model Probability
Birthday Example • What are the chances in a group of n people of two having the same birthday? Probability
Conditional Probability • Draw 2 cards from a deck • What is the probability that the second is the 7 ? • 1/52 – in the absence of other info • If the first card is not the 7 then the odds are 1/51, otherwise they are 0. • What are the odds of getting 4 Aces? • What are the odds of getting a Royal Flush? • What are the odds of 4 Aces and a Royal Flush turning up together? Probability
Back to Joe… • Joe plays better on windy days • He also plays better on wet days • What are his chances against Mary on windy wet days? What if wet days are inclined to be windy? Probability
Conditional Probability • Say I want to go kayaking and I want to ring the friends most likely to come along: • Data from the last 20 weekends: • Jim 9 • Síle 10 • Brian 12 Brian is most likely to come out: 0.6 probability Probability
Conditional Probability contd… However, if we have data on water levels and high water Is explected… Probability
Conditional Probability contd… However, if we have data on water levels and high water is explected… reads as “probability of J given H” Probability
Conditional Probability contd… • Given two events J and H • Then using the multiplication rule for independent events Probability of J given H is the same as proability of J iff J and H independent Probability
Conditional Probability exercise Calculate P[J|H], P[H], P[JH] Probability
AB O B A OTA ABTA BTA TA ATA Blood Type Problem Blood type distribution for the US is A 41%, B9%, AB 4%, O 46%. In testing 88% with type A are correctly typed, 4% of Bs are typed as A, 10% of ABs are typed as A and 4% of Os are typed as A, What is the Probability that a guy typed as A is correctly typed. P[A] = 0.41 P[B]= 0.09 P[AB] = 0.04 P[O] = 0.46 P[TA|A] = 0.88 P[TA|B]= 0.04 P[TA|AB] = 0.1 P[TA|O] = 0.04 Probability
Bayes Theorem or For the blood example, let Probability
Probability Density Functions • For a discrete variable such as water level (Low, Med, High). Probability
Continuous Density Functions • In fact, water level is a continuous variable. • Most common distribution is the Normal distribution. Where mis the mean and s is The standard deviation. A special case is the standard normal dist. where is 0 and is 1. Probability
Summary • Probability • The addition rule • The multiplication rule • (independent events) • Conditional probability • When events are not independent • Bayes Theorem • Probability Density Functions Probability