STA6349: Applied Bayesian Analysis
Spring 2025
The first few lectures come from Mathematical Statistics with Applications, by Wackerly.
We will be covering the following chapters:
P[A|B] = \frac{P[A \cap B]}{P[B]},
so long as P[B] > 0.
Notation: P[A|B] is the probability of A given B.
\begin{align*} P[A|B] &= P[A] \\ P[B|A] &= P[B] \\ P[A \cap B] &= P[A] P[B] \end{align*} - Otherwise, we say that A and B are dependent events.
Consider the following events in the toss of a single die:
Are A and B independent events?
Are A and C independent events?
Theorem: The Multiplicative Law of Probability
\begin{align*}P[A\cap B] &= P[A] P[B|A] \\ &= P[B] P[A|B]\end{align*}
P[A \cap B] = P[A] P[B]
Theorem: The Additive Law of Probability
P[A \cup B] = P[A] + P[B] - P[A \cap B]
P[A \cup B] = P[A] + P[B]
Theorem: The Complement Rule
\begin{align*} P[A] &= 1 - P[\bar{A}] \\ P[\bar{A}] &= 1 - P[A] \\ 1 &= P[A] + P[\bar{A}] \end{align*}
P[\text{at least one } A_i] = P[A_1] + P[A_2] + P[A_3] - 2 P[A_1 \cap A_2].
The steps used to define the probability of an event:
Define the experiment.
Visualize the nature of the sample points. Identify a few to clarify your thinking.
Write an equation expressing the event of interest (A) as a composition of two or more events, using usions, intersections, and/or complements. Make certain that event A and the event implied by the compsotion represnt the sameset of sample points.
Apply the additive and multiplicative laws of probability in the compositions obtained in step 3 to find P[A].
A = (A \cap B_1) \cup (A \cap B_2) \cup \ ... \ \cup (A \cap B_k)
Theorem:
P[A] = \sum_{i=1}^k P[A|B_i] P[B_i]
Theorem: Bayes’ Rule
P[B_j | A] = \frac{P[A|B_j] P[B_j]}{\sum_{i=1}^k P[A|B_i] P[B_i]}
An electronic fuse is produced by five production lines in a manufacturing operation. The fuses are costly, are quite reliable, and are shipped to suppliers in 100-unit lots. Because testing is destructive, most buyers of the fuses test only a small number of fuses before deciding to accept or reject lots of incoming fuses. All five production lines produce fuses at the same rate and normally produce only 2% defective fuses, which are dispersed randomly in the output. Unfortunately, production line 1 suffered mechanical difficulty and produced 5% defectives during the month of March. This situation became known to the manufacturer after the fuses had been shipped.
A customer received a lot produced in March and tested three fuses. One failed.
Of the travelers arriving at a small airport, 60% fly on major airlines, 30% fly on privately owned planes, and the remainder fly on commercially owned planes not belonging to a major airline. Of those traveling on major airlines, 50% are traveling for business reasons, whereas 60% of those arriving on private planes and 90% of those arriving on other commercially owned planes are traveling for business reasons.
Suppose that we randomly select one person arriving at this airport. What is the probability that the person:
is traveling on business?
is traveling for business on a privately owned plane?
arrived on a privately owned plane, given that the person is traveling for business reasons?
is traveling on business, given that the person is flying on a commercially owned plane?
Random variable:
Let Y denote a variable to be measured in an experiment.
Define an experiment as tossing two coins and observing the results.
Let Y equal the number of heads obtained.
Population: collection of all elements of interest.
Sample: subset of the population.
The method of sampling will affect the probability of a particular sample outcome.
Sampling with replacement: elements can be chosen more than once for inclusion in a sample.
Sampling without replacement: elements cannot be chosen more than once for inclusion in a sample.
Random sample: each of the {N \choose n} possible samples have equal probability of being selected.
If we need to randomize, we will use a random number generator to assign a random number, then reorder the dataset and take the first n observations.