Randomized Assignment

An assignment mechanism is the chance process that decides which units are treated, and it is a design decision recorded before outcomes are seen. Because it is generated independently of the potential outcomes, it makes treated and control groups comparable in expectation, which is what licenses reading a difference in means as a causal effect. Bernoulli and complete randomization differ in what they hold fixed, and the difference changes the inference that follows.

Definition

An assignment mechanism gives the probability of each treatment vector W = ( W 1 , … , W N ) . Under Bernoulli assignment each unit is treated independently with probability p , so P ( W = w ) = ∏ i p w i ( 1 − p ) 1 − w i and the treated count is random. Under complete randomization exactly N 1 of the N units are treated, every one of the ( N N 1 ) such vectors is equally likely, and all other vectors have probability zero.

Formal statement

τ ^ = Y ¯ 1 − Y ¯ 0 where Y ¯ 1 = 1 N 1 ∑ i : W i = 1 Y i obs and Y ¯ 0 = 1 N 0 ∑ i : W i = 0 Y i obs ; under complete randomization E [ τ ^ ] = τ S .

Assumptions and scope

  • The mechanism must be known and must not depend on the potential outcomes. A rule that consults the outcome, such as treating whoever seems likeliest to benefit, destroys the comparability randomization provides, however carefully the arithmetic is then performed.

  • Observed covariate imbalance does not imply the assignment was not random. Under complete randomization some allocations are unbalanced, and discarding them changes the mechanism and therefore the reference distribution for any later inference.

  • Bernoulli assignment permits the all-treated and all-control vectors unless the design excludes them. With small N this is a practical risk, not a technicality, and it is one reason complete randomization is usually preferred.

  • Unbiasedness of the difference in means is a statement about averaging over repeated assignments, not about the single realised experiment. A particular estimate can sit far from the effect it estimates without anything having gone wrong.

Worked material

Example

Three procedures, one of which is not randomization

A clinic flips a fair coin for each of 40 patients. Bernoulli assignment with p = 0.5 . The treated count is random: it could be 17, or 23, and with probability 2 × 0.5 40 it is 0 or 40.

A clinic writes 40 slips, 20 marked "treat", shuffles, and deals one per patient. Complete randomization with N 1 = 20 . Exactly twenty are treated in every possible realisation; there are ( 40 20 ) ≈ 1.4 × 10 11 equally likely allocations.

A clinic offers the treatment and records who accepts. Not an assignment mechanism at all. The probability of each vector is unknown and depends on the patients, who plausibly decide on grounds related to how much they expect to benefit, exactly the dependence on potential outcomes that randomization exists to exclude.

The first two support a causal reading of τ ^ . The third supports a description of who accepted.

Non-example

Five procedures described as randomized that are not

Alternation. Patients are assigned treatment, control, treatment, control by order of arrival. The rule is deterministic: knowing a patient's position determines their assignment, and whoever schedules arrivals controls the allocation. It is also predictable, so a clinician who prefers a patient to receive treatment can delay them by one slot.

Assignment by date. Everyone admitted on an even-numbered day is treated. Admission date is not a chance device. It correlates with staffing, referral patterns, and the severity mix of who presents when.

Haphazard is not random. "We just split them however" has no stated probabilities. Without a mechanism there is nothing to average over, so no standard error or randomization test has a defined reference distribution, even if the split happens to look balanced.

Assignment after seeing outcomes. A pilot treats the first ten patients, observes poor responses, and moves later patients into control. The rule now depends on the outcomes, which is precisely the dependence randomization excludes. No amount of subsequent adjustment restores it.

Volunteering. Participants choose their arm. The probability of each vector is unknown and is plausibly related to expected benefit.

Contrast

Bernoulli, complete, and not random at all

Bernoulli against complete randomization.

BernoulliComplete randomization
Treated countRandomFixed at N 1
Unit assignmentsIndependentDependent, since the total is fixed
Allowed vectorsAll 2 N Only those with exactly N 1 treated
Probability of a vector p n 1 ( 1 − p ) N − n 1 ( N N 1 ) − 1
Degenerate allocationsPossibleExcluded by construction

Both are valid mechanisms and both are independent of the potential outcomes. They differ in what they hold fixed, and that difference propagates: the randomization distribution of τ ^ is not the same under the two, so a test or standard error computed for one does not apply to the other.

The distinction that matters more. Either of these against a rule that consults the units. Bernoulli and complete randomization are two ways of being random; alternation, self-selection and clinician choice are not near-misses but a different kind of thing, and no analysis converts one into the other.

Common errors

Common misconception

If the treated and control groups differ noticeably on a baseline covariate, the randomization failed, so the groups should be re-randomized or the imbalance corrected before proceeding.

Related units

Requires

Connected

Learn this topic

Used in

Sources

Results update as you type. Use the up and down arrow keys to move between results, Enter to open one, and Escape to close.

Type to search.

Settings

Appearance

Interface density

Your record

Your progress is stored in this browser and nowhere else: an identifier, the answers you have given, the mastery states and review schedule derived from them, and the lesson you last opened. Clearing it makes you a new learner on this device. It cannot be undone, and it will not affect your appearance or density settings.

Focus timer

Focus--minutes remaining

Phase

Kept in this browser only, and used to label the session in your own history.

Today

Nothing recorded yet. Finish a focus session and it will appear here.

Settings

Focus sessions between long breaks.

Sessions you are aiming for in a day.

Notifications

Your history

Sessions are stored in this browser and nowhere else. They are not evidence and never reach your mastery record.