Evidence in context
Semaglutide STEP: how weighting changes a summary
Work through the arithmetic behind a combined result.
Find the operation behind the number
This post hoc STEP 1–3 analysis adjusted gastrointestinal event percentages with Cochran–Mantel–Haenszel weights for trial differences; STEP 4 was separate. On-treatment adverse events were counted when a dose had been taken within the preceding 49 days.[1]
An adjusted percentage and a raw fraction are different mathematical objects. A raw fraction divides a count by the number eligible to enter that count. An adjusted summary also incorporates a rule for combining information. Two displays can therefore be numerically different without either containing an arithmetic error. The first task is to identify the operation, because reproducing an answer requires reproducing its operation as well as its inputs.
A label such as average leaves that operation unspecified. It might give every individual equal influence, every contributing group equal influence, or each group an influence chosen to represent another population. Those choices can coincide when the group rates match. They need not coincide when the rates differ. The disagreement then concerns the question being summarized, not simply which analyst has more accurate division.
Consider what would make a reconstruction possible. Group counts, group rates and an explicit weighting rule can determine a combined value. A combined value alone generally cannot recover those inputs: many different sets of counts and weights can produce it. This is an inverse problem with more unknowns than equations. Substituting an available count into an unavailable calculation supplies an assumption; it does not reveal the missing calculation.
The exercises below use invented, nonclinical examples of aggregation, not reconstructions of the source analysis. The semaglutide profile provides a separate clinical reference.
Adjusted incidence
| Group | Participants (%) |
|---|---|
| Semaglutide | 72.9 |
| Placebo | 47.1 |
Three ways to combine the same records
Imagine two fictional groups of manufactured objects undergoing a quality check. Group A contains ten objects, six of which meet a specified criterion. Group B contains forty objects, eight of which meet it. The criterion is identical in both groups, and each object is counted once. These invented counts describe neither patients nor medicines. They give rates of six tenths and eight fortieths, or 0.6 and 0.2.
If the question concerns a randomly selected object from these fifty objects, the answer is fourteen divided by fifty: 0.28. Every object has equal influence. Group B consequently receives four times the weight of group A in this summary because it contains four times as many objects. Calling the result participant weighted would describe an analogous mathematical operation, but would not establish that any particular study used it.
A different question selects a group with equal probability and then selects an object within that group. Its answer is the average of 0.6 and 0.2, which is 0.4. The selection procedure has changed. An object in the smaller group now has more influence than an object in the larger group. This is not a correction to fourteen divided by fifty. It is an answer to a different, fully specified question.
A third question assigns one quarter of the target population to A and three quarters to B. Applying those target weights produces 0.25 × 0.6 + 0.75 × 0.2 = 0.3. No observed object has changed its result. Only the target mixture has changed. Without the selection rule, reporting 0.28, 0.4 or 0.3 as the uniquely correct average conceals a choice that the reader needs in order to interpret it.
Derive the weighted mean
Write a group rate as r and its weight as w. With several groups, a weighted mean is the sum of each w multiplied by its corresponding r. For this expression to be an ordinary weighted average, the weights must be nonnegative and add to one. These restrictions matter: negative weights can move the result outside the range of the group rates, changing the mathematical object under discussion.
The range restriction follows directly. Suppose every rate lies between a lower value L and an upper value U. Multiplying each inequality L ≤ r ≤ U by its nonnegative weight preserves the direction. Adding across groups gives L times the sum of the weights on one side and U times that sum on the other. Because the weights sum to one, the weighted average must lie between L and U.
Sometimes the starting inputs are positive importance scores rather than weights that already sum to one. Dividing each score by their total converts them into normalized weights. Multiplying all the original scores by the same positive constant leaves every normalized weight unchanged: the constant cancels from numerator and denominator. Thus scores of one and three imply the same mixture as scores of ten and thirty, provided nothing else changes.
This algebra explains a family of averages. It does not specify the complete implementation of a named statistical adjustment. A particular procedure may construct its inputs or weights using additional rules. To reproduce that procedure, those rules must also be available. Understanding normalization is useful because it reveals what a generic weighted mean preserves; treating that understanding as a substitute for the actual method would go beyond the derivation.
For two groups, the weighted mean can also be written as the second rate plus w times the difference between the first and second rates. Increasing w by delta therefore changes the mean by delta times that rate difference. With the fictional rates 0.6 and 0.2, shifting one tenth of the target weight toward the first group raises the mean by 0.04. The sensitivity is determined by both the weight shift and the separation between rates, not by the shift alone.
Use the same target for a comparison
Now introduce two fictional inspection procedures, X and Y. Within group A their criterion rates are 0.6 and 0.5; within group B they are 0.2 and 0.1. These are constructed rates for a mathematical comparison, not observations from a clinical study. X exceeds Y by 0.1 in each group. The question is whether the aggregate comparison preserves the common target rather than allowing each procedure to bring its own mixture.
Using weights of one quarter for A and three quarters for B gives 0.30 for X and 0.20 for Y. Their difference is 0.10. More generally, when both procedures use the same weights, their weighted difference equals the weighted average of their within-group differences. This follows by distributing multiplication across subtraction. If every within-group difference is positive and all weights are nonnegative, the common-target difference cannot become negative.
Compare that result with a deliberately mismatched calculation. Give X weights of 0.1 and 0.9, producing 0.24. Give Y weights of 0.9 and 0.1, producing 0.46. Y now has the higher aggregate rate despite having the lower rate in each group. The reversal does not contradict the previous calculation: the two aggregates no longer describe the same mixture. They answer different questions before they are subtracted.
Choosing a common target prevents this particular mismatch, but does not prove that the target is appropriate or that the comparison is causal. A target might be hypothetical, relevant to a particular decision, or unsupported by available observations in one group. Those are separate issues. The calculation establishes a narrower result: holding the mixture constant makes the aggregate difference a transparent combination of differences defined within the same groups.
Separate within-group change from mixture change
A change in a combined rate can reflect changing group rates, changing group weights, or both. Distinguishing these components is an arithmetic exercise before it becomes an explanatory claim. For an explicitly invented example, start with rates of 0.6 and 0.2 and weights of 0.25 and 0.75. The combined rate is 0.30. Let the later rates become 0.7 and 0.3, with weights of 0.75 and 0.25.
The later combined rate is 0.60, so the total change is 0.30. Hold the old weights fixed while changing the rates: one quarter times 0.1 plus three quarters times 0.1 gives 0.10. Next change the weights while holding the new rates fixed: 0.5 times 0.7 plus negative 0.5 times 0.3 gives 0.20. Adding these components recovers the total change without leaving a remainder.
The identity can be derived by adding and subtracting the same intermediate quantity. Subtract the old weighted mean from the new one, then insert the mean formed from old weights and new rates. The first component becomes the old weights multiplied by rate changes. The second becomes weight changes multiplied by new rates. No statistical independence or causal assumption is needed for this bookkeeping identity.
The order of that bookkeeping is a choice. With unequal changes in the group rates, switching the order can change how much is assigned to the rate component and how much to the mixture component, while their sum remains fixed. In this particular example both rates rose equally, so the components happen to agree under either order. That coincidence should not be mistaken for a general rule or for evidence about what caused a change.
A second fictional calculation makes the ordering distinction visible. Keep the old rates and weights, but let the new rates be 0.9 and 0.3. The new combined rate is 0.75. Changing rates first contributes 0.15, followed by a mixture contribution of 0.30. Changing the mixture first contributes 0.20, followed by a rate contribution of 0.25. Both sums equal the total change of 0.45. The difference between allocations arises from the simultaneous changes, not an arithmetic inconsistency.
A zero count is not an empty stratum
An observed zero and an unavailable rate require different treatment. In the fictional inspection setting, zero qualifying objects among twenty inspected objects gives a rate of zero divided by twenty. An uninspected group supplies neither a qualifying count nor an inspected denominator. Writing zero divided by zero for that group does not turn its unknown rate into zero; the ratio is undefined.
The difference becomes consequential when the target assigns that unobserved group a positive weight. Suppose half of a target consists of a group with a known rate of 0.4, and half consists of an unobserved group. The target average cannot be calculated from the known group alone. Assigning the unknown rate zero yields 0.2, but the assignment is an extra assumption, not a consequence of having no observations.
If the quantity is genuinely a binary criterion rate, its unknown value must lie between zero and one. Under that explicit restriction, the fictional target average lies between 0.2 and 0.7. These bounds follow from the target mixture and the allowed range, without estimating the unknown group's rate. They should not be transferred to a quantity with a different range or interpreted as an interval describing sampling uncertainty.
Giving the unobserved group zero weight would produce a different answer to a different question. The resulting summary would describe the observed group rather than the specified half-and-half target. Renormalizing the remaining weights can be mathematically valid, but changes the target unless the omitted groups originally had no weight. Keeping unavailable information visible therefore protects the meaning of the question, rather than merely adding a cautious note to a completed calculation.
Round after the calculation
Rounding is another operation whose position matters. Take two fictional rates of one third and two thirds, with weights of 0.2 and 0.8. Calculating from the exact fractions gives 0.6. Rounding the two rates first to one decimal place gives 0.3 and 0.7. Applying the same weights to those rounded inputs gives 0.62. The discrepancy comes from the sequence of operations, not from a change in the underlying objects.
The possible error has a simple bound. Let each rounded rate differ from its exact value by at most epsilon in either direction. The weighted error is the sum of the weights multiplied by those individual errors. Its absolute value cannot exceed the sum of the weights multiplied by their absolute errors. For nonnegative weights summing to one, that upper bound is epsilon. Errors may cancel, but cancellation is not guaranteed.
If the inputs are rounded to different precisions, use a separate error bound for each input. The aggregate bound is then the sum of each weight multiplied by its own bound. A heavily weighted, coarsely displayed input can dominate this limit. The calculation assumes the weights themselves are exact. If their displayed values have also been rounded, uncertainty about them must be considered separately rather than silently treating their printed sum as exact.
More printed digits cannot restore information already discarded. Calculating 0.620000 from the rounded inputs does not make those inputs more precise. Conversely, a displayed result can be intentionally shorter than the calculation that produced it. A reproducible example should distinguish the values used in arithmetic from the values chosen for presentation. When only rounded inputs are available, the reconstruction should be described at the precision those inputs support.
Separate a target from its precision
Choosing a target and estimating its rate are distinct problems. The first determines which weighted quantity is of interest. The second concerns uncertainty in the estimated inputs. Suppose, in a fictional statistical model, two estimated group rates are independent and the weights are fixed in advance. The variance of their weighted average is the first weight squared times the first variance, plus the second weight squared times the second variance.
Squaring the weights is essential. Multiplying a random quantity by a constant multiplies its deviations from its mean by that constant, so its squared deviations acquire the constant squared. Independence removes the cross term in the variance of a sum. This derivation is conditional on the stated model. It does not establish that a particular reported analysis has independent group estimates, fixed weights or this exact variance calculation.
For illustration, let the two fictional variances both be 0.01. Equal weights give 0.25 × 0.01 + 0.25 × 0.01 = 0.005. Weights of 0.9 and 0.1 give 0.81 × 0.01 + 0.01 × 0.01 = 0.0082. Concentrating weight on one equally uncertain estimate increases the variance in this example. That does not justify changing a scientifically appropriate target merely to make a precision measure smaller.
When estimates are dependent, twice the product of their weights and their covariance must also be included. If weights are estimated from data, treating them as fixed may omit another source of uncertainty. Those complications cannot be resolved by inspecting a point estimate alone. The useful distinction is between uncertainty about a chosen target and disagreement over which target to choose; a narrow interval for one target cannot settle the latter question.
Dependence has a concrete interpretation in a constructed model. Suppose two estimates each contain the same random component U plus their own independent error. Assume all three components have finite variance and the two errors are also independent of U. The covariance between the estimates then equals the variance of U. Averaging can reduce the independent errors, but the shared component remains in both estimates. A larger collection of measurements sharing that component does not automatically remove its contribution.
Keep interpretation separate from care
A weighted group summary and an individual decision also involve different mathematical inputs. A distribution can have a known average while leaving considerable uncertainty about any particular observation. Even in a fictional collection containing only scores of zero and ten, a mean of five does not identify an individual score. The average constrains the collection; it does not assign every member the average value.
Adding a decision requires further information. In an abstract nonmedical choice, two actions can have the same expected score but different consequences when the score is low. A rule that values only the mean may select differently from a rule that places extra weight on avoiding that lower outcome. The choice between those rules is not encoded in the mean, and cannot be recovered by adding more decimal places to it.
The same discipline applies when reading a payment description alongside a research summary. A payment amount and a percentage are quantities with different units. Dividing one by the other creates a new quantity, but its interpretation depends on a specified comparison, time horizon and meaning for the percentage. Arithmetic alone cannot establish that these inputs describe the same service or justify a value judgment. Our guide to four weeks versus a month addresses the separate payment-period question.
These distinctions keep the statistical exercise within its purpose. A population calculation does not determine the response to a person's symptoms. The clinical statement below belongs to the prescribing-information record, rather than to the fictional inspections or weighting exercises. Questions about documentary scope can also be pursued through the policy guide, without treating a mathematical example as evidence about an offered product.
Semaglutide delays gastric emptying. Wegovy is not recommended in severe gastroparesis. Severe or persistent gastrointestinal symptoms warrant contacting a clinician.[2]
Specify what another reader would need
A reproducible comparison needs enough information to distinguish competing calculations. Return to the fictional quality checks. Keeping the group labels but omitting their eligible counts prevents a reader from reconstructing the object-weighted rate. Keeping counts but omitting the target weights prevents reconstruction of a different target mixture. A complete computational description therefore identifies both the observed structure and the operation applied to it; either can change while the other remains fixed.
One way to test a calculation is to examine cases where its answer is known before doing detailed arithmetic. If every group has the same rate, every normalized nonnegative weighting scheme must return that rate. If all weight is placed on one group, the result must equal that group's rate. If a proposed weighted mean lies outside all the group rates, at least one assumption or operation differs from the ordinary weighted mean defined here.
These checks diagnose mathematical consistency, not the quality of the observations. A perfectly implemented calculation can still answer a poorly chosen question or use unsuitable inputs. Conversely, a reasonable target cannot rescue a transcription error. The companion analysis of mediation explores another separation: whether a descriptive contrast supplies the information needed to explain a pathway. Neither problem can be settled by a headline number alone.
Prepared with AI assistance. Medical review is pending.
Funding and authorship context
Novo Nordisk funded the trials and writing support; three authors were employees and shareholders.[1]
Sources
Each date identifies a source check. It is separate from this page’s publication date.
- Wharton: STEP gastrointestinal analysis — Wiley; checked
- WEGOVY — NLM; checked
- Wegovy approval — FDA; checked