Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Probability and Conditional Probability, Lecture notes of Probability and Statistics

Probability and conditional probability, with a focus on case studies and examples. It covers topics such as calculating observed proportions, estimating differences between population probabilities, and testing if population proportions are different. The document also introduces notions of conditional probability and independence. The case study discussed in the document involves parasitic fish and predation. likely useful as study notes or lecture notes for university courses in statistics or probability theory.

Typology: Lecture notes

2021/2022

Uploaded on 05/11/2023

tomseller
tomseller 🇺🇸

4.6

(16)

276 documents

1 / 33

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Probability and Conditional Probability
Bret Hanlon and Bret Larget
Department of Statistics
University of Wisconsin—Madison
September 27–29, 2011
Probability 1 / 33
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21

Partial preview of the text

Download Probability and Conditional Probability and more Lecture notes Probability and Statistics in PDF only on Docsity!

Probability and Conditional Probability

Bret Hanlon and Bret Larget

Department of Statistics University of Wisconsin—Madison

September 27–29, 2011

Probability 1 / 33

Parasitic Fish

Case Study Example 9.3 beginning on page 213 of the text describes an experiment in which fish are placed in a large tank for a period of time and some are eaten by large birds of prey. The fish are categorized by their level of parasitic infection, either uninfected, lightly infected, or highly infected. It is to the parasites advantage to be in a fish that is eaten, as this provides an opportunity to infect the bird in the parasites next stage of life. The observed proportions of fish eaten are quite different among the categories.

Uninfected Lightly Infected Highly Infected Total Eaten 1 10 37 48 Not eaten 49 35 9 93 Total 50 45 46 141

The proportions of eaten fish are, respectively, 1/50 = 0.02, 10/45 = 0.222, and 37/46 = 0.804.

Probability Case Studies Infected Fish and Predation 2 / 33

Vampire Bats

Case Study Example 9.4 on page 220 describes an experiment. In Costa Rica, the vampire bat Desmodus rotundus feeds on the blood of domestic cattle. If the bats respond to a hormonal signal, cows in estrous (in heat) may be bitten with a different probability than cows not in estrous. (The researcher could tell the difference by harnessing painted sponges to the undersides of bulls who would leave their mark during the night.)

In estrous Not in estrous Total Bitten by a bat 15 6 21 Not bitten by a bat 7 322 329 Total 22 328 350

The proportion of bitten cows among those in estrous is 15/22 = 0.682 while the proportion of bitten cows among those not in estrous is 6/328 = 0.018.

Probability Case Studies Infected Fish and Predation 4 / 33

Questions

Are the probabilities of being bitten different for cows in estrous or not? How do we estimate the difference in probabilities of being bitten? How do we estimate the odds ratio? Here, the odds of a cow in estrous being bitten are roughly 2 to 1, while the odds of a cow not in estrous being bitten are roughly 2 to 100, so the odds ratio is about 100 times larger to be bitten for cows in estrous compared to those not. How do we quantify uncertainty in this estimate?

Probability Case Studies Infected Fish and Predation 5 / 33

More Probability

To understand the methods for comparing probabilities in different populations and analyzing categorical data, we need to develop notions of: I (^) conditional probability; and I (^) independence; We will also more formally introduce some probability ideas we have been using informally.

Probability The Big Picture 7 / 33

Running Example

Example

Bucket 1 contains colored balls in the following proportions: 10% red; 60% white; and 30% black. Bucket 2 has colored balls in different proportions: 10% red; 40% white; and 50% black. A bucket is selected at random with equal probabilities and a single ball is selected at random from that bucket.

Think of the buckets as two biological populations and the colors as traits.

Probability Probability Running Example 8 / 33

Probability

Definition

A probability is a number between 0 and 1 that represents the chance of an outcome. Each elementary outcome has an associated probability. The sum of probabilities over all outcomes in the outcome space is 1.

Example

P((1, R)) = 0. 05 P((1, W )) = 0. 30 P((1, B)) = 0. 15

P((2, R)) = 0. 05 P((2, W )) = 0. 20 P((1, B)) = 0. 25

Probability Probability Probability 10 / 33

Events

Definition

An event is a subset (possible empty, possibly complete) of elementary outcomes from the outcome space. The probability of an event is the sum of probabilities of the outcomes it contains.

Example

P(Bucket 1) = P({(1, R), (1, W ), (1, B)}) = 0.05 + 0.30 + 0.15 = 0.5. P(Red Ball) = P({(1, R), (2, R)}) = 0.05 + 0.05 = 0.1. P(Bucket 1 and Red Ball) = P({(1, R)}) = 0.05. P(Ω) = 1.

Probability Probability Events 11 / 33

Mutually Exclusive Events

Definition

Events are mutually exclusive if they have no outcomes in common. This is the same as saying their intersection is empty. The symbol for the empty set (the set with no elementary outcomes) is ∅.

Example

The events A = {choose Bucket 1} and B = {Choose Bucket 2} are mutually exclusive because there are no elementary outcomes in which both Bucket 1 and Bucket 2 are selected. Any event E is always mutually exclusive with its complement, E c^.

Probability Probability Events 13 / 33

The Addition Rule for Mutually Exclusive Events

Addition Rule for Mutually Exclusive Events

If events A and B are mutually exclusive, then P(A or B) = P(A) + P(B). With more formal notation,

P(A ∪ B) = P(A) + P(B) if A ∩ B = ∅.

Example

The probability of a red ball is 0.1 because

P

(1, R) or (2, R)

= P

(1, R)

+ P

(2, R)

Probability Probability Events 14 / 33

Probabilities and Complements

Probabilities of Complements

The probability that an event does not happen is 1 minus the probability that it does. P(not A) = 1 − P(A). With more formal notation,

P(Ac^ ) = 1 − P(A)

Example

Let A = {Ball is Red}. Earlier, we found that P(A) = 0.1. The probability of not getting a red ball is then

P(Ac^ ) = 1 − P(A) = 1 − 0 .1 = 0. 9

Probability Probability Events 16 / 33

Random Variables

Definition

A random variable is a rule that attaches a number to each elementary outcome. As each elementary outcome has a probability, the random variable specifies how the total probability of one in Ω should be distributed on the real line, which is called distribution of the random variable. For a discrete random variable, all of the probability is distributed in discrete chunks along the real line. A full description of the distribution of a discrete random variable is: I (^) a list of all possible values of the random variable, and I (^) the probability of each possible value.

Probability Probability Random Variables 17 / 33

Conditional Probability

Definition

The conditional probability of an event given another is the probability of the event given that the other event has occurred. If P(B) > 0, P(A | B) =

P(A and B) P(B) With more formal notation,

P(A | B) =

P(A ∩ B)

P(B)

, if P(B) > 0.

The vertical bar | represents conditioning and is read given. P(A | B) is read The probability of A given B.

Probability Probability Conditional Probability 19 / 33

Conditional Probability Example

Example

Define events B 1 and B 2 to mean that Bucket 1 or 2 was selected and let events R, W , and B indicate if the color of the ball is red, white, or black. By the description of the problem, P(R | B 1 ) = 0.1, for example. Using the formula,

P(R | B 1 ) =

P(R ∩ B 1 )

P(B 1 )

Probability Probability Conditional Probability 20 / 33