measuring spread
Consider a random variable. We would like to measure how spread out the values are from the expected value, aka the mean, .
| x | 1 | 2 | 3 |
|---|---|---|---|
| Pr(X=x) | 1/3 | 1/3 | 1/3 |
In this case, . we can find the difference, and square that so the distance from the expected value is positive.
| x | 1 | 2 | 3 |
|---|---|---|---|
| Pr(X=x) | 1/3 | 1/3 | 1/3 |
| x-E(X) | -1 | 0 | 1 |
| (x-E(X))^2 | 1 | 0 | 1 |
Therefore, the variance of , . We can evaluate it to be
Good news, we can find an easier way to find the variance. Hooray.
id: 1752206438673
---
$\text{Var}(X)$ = ==$E(X^2)-E(X)^2$==binomial distribution and binomial experiment
A binomial experiment (aka Bernoulli sequence) is a set of trials where:
- Each trial results in a binary outcome: A or A’
- All trials have the same probability for the outcomes.
Input is the number of trials. Input is probability of success, .
The statement below says “the random variable is distributed as a binomial distribution with 3 trials and 0.1 probability of success”.
The probability of achieving successes in trials of a binomial experiment is:
The probability of being within the range is calculated with
For example,
exercise - binomial experiment
exercise - discrete random variables