The Geometry of Uncertainty
Mastering the Variance of Random Variables
Welcome, future engineers. Today, we are not just solving a probability problem; we are learning to quantify the 'risk' or 'uncertainty' inherent in a system.
Imagine you are a quality control engineer at a manufacturing plant. You have a box of 10 pens, and you know that 3 are defective. You need to assess the quality of the batch by drawing a sample of 2.
This is the essence of statistical inference. We are going to walk through this step-by-step, not just to find the answer, but to understand the soul of the math.
Phase 1
Defining the Universe
Every probability problem begins by defining the sample space. We have a total of 10 pens and we are choosing 2.
The total number of ways to do this is given by the combination formula 10C2. Mathematically, this is:
This number, 45, is our universe. Every probability we calculate will be a fraction of this total.
Our random variable X is the number of defective pens. Since we are drawing 2 pens, X can be 0 (no defectives), 1 (one defective), or 2 (both defective).
Phase 2
Mapping the Probabilities
Now, we calculate the likelihood of each scenario.
For X=0, we need to choose 0 defective pens from 3 and 2 good pens from 7:
P(X=0)=453C0×7C2=451×21=157
For X=1, we choose 1 defective from 3 and 1 good from 7:
P(X=1)=453C1×7C1=453×7=4521=157
Finally, for X=2, we choose 2 defective pens from 3:
Notice how the probabilities sum to 1: 157+157+151=1515=1. This is our sanity check; if they didn't sum to 1, we would know we made a mistake.
Phase 3
The Expectation
The expectation, E(X), is the weighted average of all possible outcomes. It tells us what to expect on average if we repeated this experiment thousands of times.
We calculate it as E(X)=∑xiP(xi). Plugging in our values:
E(X)=0(157)+1(157)+2(151)=0+157+152=159=53
This means, on average, we expect 0.6 defective pens in our sample.
Phase 4
The Variance
Now, we arrive at the heart of the problem: the variance. Variance measures the spread of the data.
To find it, we first need the second moment, E(X2). We square the outcomes before multiplying by their probabilities:
E(X2)=02(157)+12(157)+22(151)=0+157+154=1511
Finally, we use the variance formula: Var(X)=E(X2)−[E(X)]2. Substituting our values:
Var(X)=1511−(53)2=1511−259
To subtract these, we find the common denominator, which is 75. The expression becomes:
7511×5−9×3=7555−27=7528
And there it is. The variance is 7528. You have successfully navigated the logic of probability. Remember, math is not about memorizing formulas; it is about building a mental model of reality.