liveBook · Manning

Independent and identically distributed

As explained in Experimentation for Engineers

The iid assumption states that measurements are independent of one another and drawn from the same probability distribution.

The iid assumption requires individual measurements to be independent of one another and drawn from the same probability distribution. A/B-test analysis relies on it when estimating the aggregate standard error, se_delta = sd/√N, and treating z = delta/se_delta as normally distributed. section 8.1.1

Repeated measurements

If a measurement process records the same server value repeatedly, ten observations such as [1.5, 1.5, ..., 1.5] have zero standard deviation and therefore zero estimated standard error. This falsely suggests extreme certainty. Occasional repeated values similarly make the standard error too small, inflate the magnitude of z, and increase false positives. section 8.1.1

Use iid as an operational validity check:

  • Inspect collection methods for duplicated observations caused by measurement bugs or sampling faster than the system changes. section 8.1.1
  • Verify iid and nonstationarity assumptions, avoid early stopping and cherry-picking, replicate broadly, and validate results with reverse A/B tests and holdouts. section 8.7
ind_meas = np.array([1.5]*10)
print (ind_meas)
print (ind_meas.mean())
print (ind_meas.std())
[1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5]     #1
1.5
0.0                                           #2

Run the repeated-value array example to observe a mean of 1.5 and a standard deviation of 0.0. section 8.1.1

How Experimentation for Engineers covers it

How deep it goes
Defines independence and identical distribution, then demonstrates repeated measurements and their false-positive consequences.
Examples
Uses constant and partially repeated measurement arrays produced by overly frequent sampling.
What it assumes
Assumes familiarity with standard deviation, standard error, z scores, and A/B-test measurements.
What you can do after
Diagnose/debug with collection audits, replication, reverse A/B tests, and holdouts before accepting experimental results.
How it connects
Connects standard error, z scores, A/B testing, nonstationarity, randomization, replication, and holdout validation.

Also explained in

Compare how 3 books explain independent and identically distributed →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Experimentation for Engineers. The section links point to the parts of the book it draws on.