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
Distribution function:
F(y) = P[Y \le y] \text{ for } -\infty < y < \infty
Theorem: Properties of a Distribution Function
If F(y) is a distribution function, then
F(-\infty) \equiv \underset{y \to -\infty}{\lim} F(y) = 0
F(\infty) \equiv \underset{y \to \infty}{\lim} F(y) = 1
F(y) is a nondecreasing function of y.
Note: To be rigorous, if F(y) is a valid distribution function, then F(y) also must be right continuous.
Continuous random variable:
A random variable Y with distribution function F(y) is said to be continuous if F(y) is continuous for -\infty < y < \infty.
If Y is a continuous random variable, then for any real number y, P[Y = y] = 0.
Probability density function:
Cumulative density function:
P[Y \le y] = F(y) = \int_{-\infty}^y f(t) dt, \text{ for } y \in {\rm I\!R}
Theorem: Properties of a Density Function
If f(y) is a density function for a continuous random variable, then
f(y) \ge 0 \ \forall y, \ -\infty < y < \infty.
\int_{-\infty}^{\infty} f(y) dy = 1.
Suppose that F(x) = \begin{cases} 0 & y < 0 \\ y & 0 \leq y \leq 1 \\ 1 & y > 1 \end{cases}
Find the probability density function for Y.
Theorem
P[a \le Y \le b] = \int_a^b f(y) dy.
Given f(y) = cy^2, where 0 \le y \le 2 and f(y)=0 elsewhere,
Find the value of c for which f(y) is a valid density function.
Find P[1 \le Y \le 2].
Find P[1 < Y < 2].
Expected value:
E[Y] = \int_{-\infty}^{\infty} y f(y) \ dy
E[Y] = \sum_y y p(y)
Theorem:
E\left[ g(Y) \right] = \int_{-\infty}^{\infty} g(y) f(y) \ dy
Theorem:
Let c be a constant and let g(Y), g_1(Y), g_2(Y), …, g_k(Y) be functions of a continuous random variable, Y. The following results hold:
In a previous example, we determined that f(y) = \frac{3}{8}y^2 for 0 \le y \le 2 and f(y) = 0 elsewhere is a valid density function.
If the random variable Y has this density function, find \mu = E[y] and \sigma^2 = V[Y]
Uniform Distribution
f(y) = \begin{cases} \frac{1}{\theta_2 - \theta_1}, & \theta_1 \le y \le \theta_2 \\ 0, & \text{elsewhere} \end{cases}
Theorem:
E[Y] = \mu = \frac{\theta_1+\theta_2}{2} \ \ \ \text{and} \ \ \ V[Y] = \sigma^2 = \frac{(\theta_2-\theta_1)^2}{12}
Arrivals of customers at a checkout counter follow a uniform distribution. It is known that during a given 30-minute period, one customer arrived at the counter.
Find the probability that the customer arrived during the last 5 minutes of the 30-minute period.
f(y) = \begin{cases} k, & -2 \le y \le 2 \\ 0, & \text{elsewhere} \end{cases}
Determine the value of k.
Find the distribution function for Y.
What is the mean of the distribution?
What is the variance of the distribution?
Normal Distribution
f(y) = \frac{1}{\sigma \sqrt{2\pi}} e^{-(y-\mu)^2/(2\sigma^2)}
Theorem:
E[Y] = \mu = \ \ \ \text{and} \ \ \ V[Y] = \sigma^2
Find the following probabilities for a standard normal random variable, Z.
P[Z \le -2.5].
P[Z \ge 2.5].
P[0.3 \le Z \le 1.56].
If Z is a standard normal random variable, find the value z_0 such that:
P[Z > z_0] = 0.5
P[Z < z_0] = 0.8643
P[-z_0 < Z < z_0] = 0.95.
If $450 is budgeted for next week, what is the probability that the actual costs will exceed the budgeted amount?
How much should be budgeted for weekly repairs and maintenance to provide that the probability the budgeted amount will be exceeded in a given week is only 0.10?
Gamma Distribution
f(y) = \begin{cases} \frac{y^{\alpha-1} e^{-y/\beta}}{\beta^{\alpha} \Gamma(\alpha)}, & 0 \le y < \infty \\ 0, & \text{elsewhere} \end{cases}
Note that \Gamma(\alpha) = \int_{0}^{\infty} y^{\alpha-1} e^{-y} \ dy.
Theorem:
E[Y] = \mu = \alpha\beta \ \ \ \text{and} \ \ \ V[Y] = \sigma^2 = \alpha\beta^2
f(y) = \begin{cases} ky^3 e^{-y/2}, & y > 0 \\ 0, & \text{elsewhere} \end{cases}
Find the value of k that makes f(y) a density function.
Find the mean of Y.
Find the variance and standard deviation of Y.
What is the probability that Y lies within 2 standard deviations of its mean?
Annual incomes for heads of household in a section of a city have approximately a gamma distribution with \alpha=20 and \beta=1000.
What is f(y)?
What is the mean of Y?
What is the variance of Y?
What proportion of heads of households in this section of the city have incomes in excess of $30,000?
Beta Distribution
f(y) = \begin{cases} \frac{y^{\alpha-1}(1-y)^{\beta-1}}{B(\alpha,\beta)}, & 0 \le y \le 1 \\ 0, & \text{elsewhere} \end{cases}
Note that B(\alpha,\beta) = \int_0^1 y^{\alpha-1}(1-y)^{\beta-1} \ dy = \frac{\Gamma(\alpha) \Gamma(\beta)}{\Gamma(\alpha+\beta)}.
Theorem:
E[Y] = \mu = \frac{\alpha}{\alpha+\beta} \ \ \ \text{and} \ \ \ V[Y] = \sigma^2 = \frac{\alpha\beta}{(\alpha+\beta)^2(\alpha+\beta+1)}
f(y) = \begin{cases} ky^3(1-y)^2, & 0 \le y \le 1 \\ 0, & \text{elsewhere} \end{cases}
Find the value of k that makes f(y) a density function.
Use R
to find the humidity value that is exceeded only 5% of the time.
f(y) = \begin{cases} 12y^2(1-y), & 0 \le y \le 1 \\ 0, & \text{elsewhere} \end{cases}
Use integration to determine the probability that a randomly selected batch cannot be sold because of excessive impurities.
Use R
to find the answer to part (a).
Find the mean of the percentage of impurities in a randomly selected batch of the chemical.
Find the variance of the percentage of impurities in a randomly selected batch of the chemical.