STA6349: Applied Bayesian Analysis
Spring 2025
Distribution function:
F(y) = P[Y \le y] \text{ for } -\infty < y < \infty
Probability density function:
p[Y = y] = f(y) = \frac{dF(y)}{dy} = F'(y).
Cumulative density function:
P[Y \le y] = F(y) = \int_{-\infty}^y f(t) dt, \text{ for } y \in {\rm I\!R}.
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].
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
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}
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.
f(y) = \begin{cases} k, & -2 \le y \le 2 \\ 0, & \text{elsewhere} \end{cases}
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
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
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} 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).
f(y) = \begin{cases} 12y^2(1-y), & 0 \le y \le 1 \\ 0, & \text{elsewhere} \end{cases}
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.