Engineering Statistics - Continuous Random Variables
Continuous Random Variables
Definition of Continuous Random Variable
- A random variable $X$ is called continuous if it can take any real value in a given range, making the possible values not finite or countable.
- Examples include:
- Time spent in traffic
- Body temperature of a patient
- Velocity of an atom
Probability Density Function (PDF) and Cumulative Distribution Function (CDF)
- The PDF $f(x)$ defines the probability density of the continuous variable.
- The CDF $F(x)$ can be expressed using the PDF:
F(x)=P(X≤x)=∫−∞xf(v)dv - Key properties of the PDF and CDF:
- $F(x)$ is a non-decreasing function.
- The normalization condition must be satisfied:
∫−∞∞f(v)dv=1 - The derivative of the CDF gives the PDF:
f(x)=dxdF - The probability of an interval $[a,b]$ can be computed:
P(a≤X≤b)=F(b)−F(a) - For any specific point, the probability is zero:
P(X=b)=0
- The $p$th percentile, denoted $\etap$, is the value of $X$ such that:
P(X≤η</em>p)=p
- The median (50th percentile) is given by:
μ<em>X=η</em>0.5
Mean and Variance of a Continuous Random Variable
- Mean $\muX$:
μ</em>X=E[X]=∫−∞∞xf(x)dx
- Variance $\sigma^2X$:
σ2</em>X=V[X]=E[X2]−(E[X])2=∫<em>−∞∞(x−μ</em>X)2f(x)dx
Common Continuous Distributions
- Uniform Distribution: PDF is constant over the range $[a,b]$:
f(x)={b−a1,amp;a≤x≤b 0,amp;otherwise - Normal Distribution: Bell-shaped PDF given by:
f(x)=2πσ21e−2σ2(x−μ)2
where $\mu$ is the mean and $\sigma$ is the standard deviation. - Lognormal Distribution: PDF:
f(x)=xσ2π1e−2σ2(lnx−μ)2
only for $x > 0$. - Exponential Distribution: PDF:
f(x)=λe−λx,x≥0
where $\lambda$ is the rate parameter. - Gamma Distribution: PDF for shape $\alpha$ and scale $\beta$:
f(x)=Γ(α)βα1xα−1e−βx,x≥0 - Weibull Distribution: PDF:
f(x)=βα(βx)α−1e−(βx)α,x≥0
Function of a Random Variable
- If $Y = h(X)$, where $h$ is a differentiable function:
- The PDF can be derived from the transformation:
f<em>Y(y)=f</em>X(h−1(y))⋅∣h′(h−1(y))∣
- The mean and variance of $Y$ can be derived from the functions of $X$:
- $E[Y] = E[h(X)]$ and for variance use similar transformations.
Probability Plots
- Useful for checking if a sample comes from a particular distribution by plotting the empirical versus theoretical percentiles.
- If the points form a straight line, the assumption holds true; substantial deviations indicate a poor fit.