A critical area of study is the mean and variance of continuous random variables, derived from their Probability Density Functions (PDFs). This chapter explores the mathematical techniques and interpretations necessary for understanding and applying these concepts.

**Overview of Continuous Random Variables:**

- Continuous random variables differ from discrete ones by taking on any value within a range.
- They model scenarios with fluid changes, such as height, temperature, or time measurements.

## Probability Density Functions (PDFs)

- Describe likelihood of a continuous variable assuming a specific value.
- Key properties:
**Non-negativity:**PDF values are always non-negative.**Total Probability:**Integral of PDF over its range equals 1.

## Mean (Expected Value) from PDFs

- Represents the central or average value of a distribution.
- Calculated as: $\mu = \int_{a}^{b} x f(x) dx$.

### Example:

Find the mean of the PDF $f(x) = 3x^2$ for $0 \leq x \leq 1$.

**Solution**:

**Mean Formula**: $\mu = \int_{a}^{b} x f(x) \, dx$.**Apply PDF**: For $f(x) = 3x^2$, calculate $\mu = \int_{0}^{1} x \cdot 3x^2 \, dx$.**Simplify**: The integral simplifies to $\mu = \int_{0}^{1} 3x^3 \, dx$.**Integration**: Evaluate to get $\mu = \left[ \frac{3}{4}x^4 \right]_{0}^{1}$.**Result**: Substituting the limits, $\mu = \frac{3}{4}$.

**Conclusion**: The mean of the distribution is $\frac{3}{4}$.

## Variance from PDFs

- Measures the spread of values around the mean.
- Calculated as: $\sigma^2 = \int_{a}^{b} (x - \mu)^2 f(x) dx$.

### Example:

Calculate the variance for the PDF $f(x) = 3x^2$.

**Solution**:

**Given Mean**: $\mu = \frac{3}{4}$.**Variance Formula**: $\sigma^2 = \int (x - \mu)^2 f(x) \, dx$.**Apply to PDF**: $\sigma^2 = \int_{0}^{1} \left(x - \frac{3}{4}\right)^2 (3x^2) \, dx$.**Integration**: Solve $\int_{0}^{1} 3x^4 - \frac{9}{2}x^3 + \frac{27}{16}x^2 \, dx$.**Result**: After computing the integral, $\sigma^2 \approx 0.0375$.

Rahil spent ten years working as private tutor, teaching students for GCSEs, A-Levels, and university admissions. During his PhD he published papers on modelling infectious disease epidemics and was a tutor to undergraduate and masters students for mathematics courses.