STAT 211 Topic 4
Lecture 8
« previous | Thursday, February 10, 2011 | next »
World series: 2 teams
Ends when winning team wins 4 games
Evenly matched (λ = .5)
Continuous Random Variables
Probability density function (PDF)
Distribution (PDF) is the smooth curve that fits over a histogram.
Comparable to PMF for discrete random variables:
- Area under PDF histogram should equal 1
- PDF is always positive (≥ 0)
Uniform distribution
Simplest PDF as a straight horizontal line:
Area under line should be 1.
Cumulative distribution function (CDF)
"Sum" (integral) of all PDFs for random variable X, except continuous (no jumps between probabilities):
PDF is derivative of CDF:
Example
Suppose a random variable has PDF Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f(x) = \begin{cases} 0.5x & 0 \le x \le 2 \\ 0 & otherwise \end{cases}}
What is Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle P(0.5 \le X \le 1.3)} ?
Lecture 9
Tuesday, February 15, 2011
Expected Value
Expected value of Continuous Random Variable is:
Variance
Variance of a Continuous random variable is:
Also equivalent to:
Example
Percentiles
- Medain: What is such that ?
- Q1 (25th percentile): What is such that ?
- Q3 (75th percentile): What is such that ?
- in general: (th percentile): What is such that ?
Normal Distribution
For normal distributions,
- μ will be used for mean and median on symmetric unimodal curve
- σ2 will be used for variance
"Gaussian Distribution"
Written:
Special Case: Normal distribution with μ = 0 and σ = 1 is called Standard Normal distribution:
Curve of this function is called a Z-curve
CDF of standard normal random variable Z is
Lecture 10
Thursday, February 17, 2011
Topic: How to you get when ?
Probabilities using the Z-Curve
Given:
We can find:
- (symmetric around 0)
Generalization: for any ,
Percentile of Standard Normal Distribution
implies 2.33 is 99th percentile.
Therefore, -2.33 is 1st percentile.
α Notation
From now on, let represent a number such that is the area under the Z-curve to the right of .
- In other words, is the ((1 − α) × 100)th percentile.
From previous example,
Standardization
Caclculating Standard Normal Distribution from Standard Distribution:
- if is normal rv and , is also normal rv.
- and . Therefore Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Y \sim N(a \mu + b, a^2 \sigma^2)\,\!}
Example 1
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle X \sim N(60, 12^2)\,\!}
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle P(72 < X < 90) = P(\frac{72-60}{12} < \frac{X-60}{12} < \frac{90-60}{12}) = P(1 < Z < 2.5) = \Phi(2.5)-\Phi(1)}
Example 2
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle X \sim N(10, 4)}
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle X = 2Z + 10}
5th Percentile = ?
- Find 95th percentile of Z: what Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle z} satisfies Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \Phi(z) = 0.95} ? (suppose 1.96)
- Find 5th percentile of Z: -1.96
- Plug in 5th percentile of Z into formula for X
Empirical Rule
- Roughly 68% of values are within 1 standard deviation (σ) of the mean (μ)
- Roughly 95% of values are within 2 standard deviations (2σ) of the mean (μ)
- (1) states that Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle P(\mu - \sigma < X < \mu + \sigma) = P(-1 < Z < 1) = 0.68}
- This implies that the tails on either side are Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{1-0.68}{2}=0.16}
- Therefore Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \Phi(1) = 1-0.16 = 0.84}
Gamma Distribution
- How long do you expect to wait to have α many events happening, if the events are happening with a Poisson distribution with a rate of Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \tfrac{1}{\beta}}
- given Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \alpha, \beta > 0} , PDF is:
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \Gamma(\alpha) \approx \alpha!}
Expected Value
Variance
Bonus Continuous Distributions
- Lognormal Distribution
- If Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \log(X)} is a normal distribution.
Summary of Distributions
We've learned:
- Bernoulli (0,1)
- Binomial (X ~ Bin(n, k))
- Poisson
- Uniform
- Normal
- Lognormal
Most situations in nature can be approximated using one of these distributions
Exercises
If a bolt of thread length is normally distributed, what is the probability that the length of a randomly selected bolt is:
- within 1.5 standard deviations of its mean value?
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle P(-1.5\sigma + \mu < X < 1.5 \sigma + \mu) = P(-1.5 < Z < 1.5) = \Phi(1.5) - \Phi(-1.5) = \Phi(1.5) - (1-\Phi(1.5))\,\!}
- farther than 2.5 standard deviations of its mean value?
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle P(X < \mu - 2.5\sigma \vee X > \mu + 2.5\sigma) = P(Z < -2.5 \vee Z > 2.5) = 2(1-\Phi(2.5))}