STA6349: Applied Bayesian Analysis
The first few lectures come from Mathematical Statistics with Applications, by Wackerly.
We will be covering the following chapters:
Chapter 2: probability theory
Chapter 3: discrete random variables
Chapter 4: continuous random variables
The first few lectures come from Mathematical Statistics with Applications, by Wackerly.
We will be covering the following chapters:
Chapter 2: probability theory
Chapter 3: discrete random variables
Chapter 4: continuous random variables
Discrete random variable: a variable that can assume only a finite or countably infinite number of distinct values.
Probability distribution of a random variable: collection of probabilities for each value of the random variable.
Notation:
Uppercase letter (e.g., Y) denotes a random variable.
Lowercase letter (e.g., y) denotes a particular value that the random variable may assume.
probability function for Y: the sum of the the probabilities of all sample points in S that are assigned the value y
probability distribution for Y: a formula, table, or graph that provides p(y) = P[Y = y] \forall y.
Theorem:
For any discrete probability distribution, the following must be true:
0 \le p(y) \le 1 \ \forall \ y
\sum_y p(y) = 1 \ \forall \ p(y) > 0.
A supervisor in a manufacturing plant has three men and three women working for him.
He wants to choose two workers for a special job.
Not wishing to show any biases in his selection, he decides to select the two workers at random.
Let Y denote the number of women in his selection.
Find the probability distribution for Y.
When the health department tested private wells in a county for two impurities commonly found in drinking water, it found that:
20% of the wells had neither impurity,
40% had impurity A, and
50% had impurity B.
If a well is randomly chosen from those in the county, find the probability distribution for Y, the number of impurities found in the well.
E(Y) = \sum_{y} y p(y)
E[Y] = \mu
Theorem:
E[g(Y)] = \sum_{y} g(y) p(y)
V[Y] = E\left[ (Y-\mu)^2 \right]
V[Y] = \sigma^2
Theorem:
E(c) = c
Theorem:
E[cg(Y)] = cE[g(Y)]
Theorem:
E[g_1(Y) + g_2(Y) + ... + g_k(Y)] = E[g_1(Y)] + E[g_2(Y)] + ... + E[g_k(Y)]
- Putting the previous theorems into one:
Theorem:
V[Y] = \sigma^2 = E\left[(Y-\mu)^2\right] = E\left[Y^2\right] - \mu^2
Use the previous theorem to find V[Y] and compare to our previous answer.
Find
E[Y]
E[1/Y]
E\left[Y^2-1\right]
V[Y]
Binomial experiment:
The experiment consists of a fixed number, n, of identical trials.
Each trial results in one of two outcomes: success (S) or failure (F).
The probability of success on a single trial is equal to some value p and remains the same from trial to trial.
The trials are independent.
The random variable of interest is Y, the number of successes observed during the n trials.
Binomial Distribution
p(y) = {n \choose y}p^y q^{n-y}, \text{ where } y = 0, 1, 2, ..., n, \text{ and } 0 \le p \le1
Theorem:
E[Y] = \mu = np \ \ \ \text{and} \ \ \ V[Y] = \sigma^2 = npq
p=0.10
p=0.25
p=0.50
p=0.75
p=0.90
Experience has shown that 30% of all persons afflicted by a certain illness recover.
Ten people with the illness were selected at random and received a newly developed medication.
Suppose that the medication was absolutely worthless.
Suggestion: look into pbinom()
.
The manufacturer of a low-calorie dairy drink wishes to compare the taste appeal of a new formula (formula B) with that of the standard formula (formula A).
Each of four judges is given three glasses in random order, two containing formula A and the other containing formula B.
Each judge is asked to state which glass he or she most enjoyed.
Suppose that the two formulas are equally attractive. Let Y be the number of judges stating a preference for the new formula.
Find the probability function for Y.
What is the probability that at least three of the four judges state a preference for the new formula?
Find the expected value of Y.
Find the variance of Y.
The Poisson probability distribution often provides a good model for the probability distribution of the number Y of rare events that occur in space, time, volume, or any other dimension.
Poisson Distribution:
p(y) = \frac{\lambda^y}{y!}e^{-\lambda}, \text{ where } y=0,1,2,..., \text{ and } \lambda > 0
Theorem
E[Y] = \mu = \lambda \text{ and } V[Y] = \sigma^2 = \lambda
Customers arrive at a checkout counter in a department store according to a Poisson distribution at an average of seven per hour.
During a given hour, what are the probabilities that
no more than three customers arrive?
at least two customers arrive?
exactly five customers arrive?
If it takes approximately ten minutes to serve each customer, find the mean and variance of the total service time for customers arriving during a 1-hour period.
Is it likely that the total service time will exceed 2.5 hours?
Assume that arrivals occur according to a Poisson process with an average of seven per hour.
What is the probability that exactly two customers arrive in the two-hour period of time between
2:00 P.M. and 4:00 P.M. (one continuous two-hour period)?
1:00 P.M. and 2:00 P.M. or between 3:00 P.M. and 4:00 P.M. (two separate one-hour periods that total two hours)?