Binary categorical variable 2026-10-25
A categorical variable with two possible categories. Coding an event as one and its complement as zero makes the sample mean of that indicator variable equal to the event's sample proportion.
Difference of independent sample proportions 2026-10-25
For two independent samples of Bernoulli random variables, the difference of their sample proportions estimates the difference of population probabilities. Since the samples are independent,Substitution of the sample proportions gives a standard error for a large-sample Wald confidence interval. This interval is a descriptive comparison of the specified groups; a causal effect needs further assumptions. Sparse counts and probabilities near zero or one can make the normal approximation poor. Testing equality can instead use a null-pooled estimate of the common probability for the test's standard error.
Frequency table Created 2026-10-24 Updated 2026-11-05
A table of category counts, often accompanied by sample proportions or percentages. Its denominator must be stated, especially when observations contain missing data.
Germination assay 2026-10-14
A specified test for germination, recording the endpoint, conditions and observation window. For a proposed red/far-red light test, use randomization to allocate one seed lot to darkness, red, red then far-red, and red then far-red then red. Match hydration, temperature, handling and elapsed time before counting; use sham waiting periods to equalize schedules. Use dish replication, retain the dark scientific control, and record radicle emergence using an observation procedure that does not itself provide an uncontrolled light treatment. This is a proposed design, not a claim about the 1952 paper's randomization or replication.
As an original hypothetical counting example, begin with seeds in one dish. Suppose 12 first meet the radicle endpoint by 24 hours, eight additional seeds by 48 hours, and four additional seeds by 72 hours. These invented event counts giveand cumulative sample proportions , and . The 48-hour increment is , not ; the latter includes earlier events. Counting the same emerged radicle again at each inspection would inflate the total. These numbers illustrate bookkeeping, not biological rates or treatment effects.
With a fixed denominator and irreversible classification of the first endpoint event, the set counted at an earlier inspection is a subset of the set counted later. Hence and cannot decrease. This short proof applies to cumulative germination counts even if a later seedling dies. A count of currently surviving seedlings has a different definition and can decrease.
For treatment comparisons, the dish may be the experimental unit: seeds in the same dish share conditions. Forty seeds in one dish do not supply forty independent dish replicates. Report the sample size, replication, endpoint time and denominator; a sample proportion by a deadline measures this assay's outcome, not an unconditional fraction with seed viability.
Each row of the contingency table is a conditional distribution of the safety category among respondents with that experience status. Thus the relevant comparison uses row percentages, rather than interpreting the larger number of respondents with some bad experiences as itself an effect on safety.
The sample proportions reporting feeling very safe are without bad experiences and with some bad experiences: the latter is lower by about percentage points. Feeling fairly safe rises from to , a difference of about percentage points. Feeling unsafe changes only from to , about percentage points. The main descriptive shift is therefore from very safe toward fairly safe, rather than a large increase in the unsafe category.
Pearson's chi-squared test tests the null hypothesis that experience status and safety category are independent. If that were true, the expected cell count would be its row total times column total divided by . The Pearson chi-squared statistic sums squared observed-minus-expected count differences divided by their expected counts. HereThe expected counts are comfortably large, with minimum approximately , so the ordinary large-sample chi-squared distribution approximation is appropriate under the sampling assumptions. There is evidence against independence even at the significance level. The reported likelihood-ratio result gives the same conclusion.
Magnitude is a separate question. Cramér's V giveswhich describes a weak statistical association. It does not mean that of safety is explained. Nor does the p-value measure the size of that association.
For ordinal direction, order the experience categories as none, some, and the safety categories from very safe toward unsafe. Goodman and Kruskal's gamma compares concordant pairs with discordant pairs after excluding tied pairs:Its small positive sign then corresponds to a weak tendency toward less safety among respondents with bad experiences. The sign would reverse if exactly one category ordering were reversed. Because this contingency table has many ties, the response-direction Somers' D, which retains response ties among pairs with different predictor values, is smaller:These coefficients describe ordered association; the omnibus Pearson's chi-squared test tests any departure from independence and does not supply a separate p-value for gamma.
The column-dependent Goodman and Kruskal's lambda makes the weak predictive improvement tangible. Predicting the overall most frequent safety category makes errors in this table. Using a separate most frequent category within each experience row makes , giving , only about a reduction in those classification errors.
The sample supports a statistically detectable but weak association, chiefly a reduced sample proportion feeling very safe. This observational study does not establish that bad experiences cause the change: reverse direction, reporting differences or confounding could also contribute. The numerical p-value also presumes the sampling and complete-case assumptions appropriate to the observations used.
Conditioning on marital status produces five contingency tables. In each, compare the conditional row percentages. The following differences are the sample proportion with some bad experiences minus the sample proportion without them, in percentage points; negative very-safe differences mean fewer respondents feeling very safe in the former group.
| Marital-status stratum | Difference: very safe | Difference: unsafe | Reported Pearson's chi-squared test p-value | Cramér's V | Goodman and Kruskal's gamma |
|---|---|---|---|---|---|
| Single | |||||
| Married | |||||
| Living with a partner | (inconsistent; see below) | ||||
| Divorced | |||||
| Widowed |
The p-values test independence within the respective strata; the magnitudes and directions come from the conditional percentages and association measures. Differences in the table are calculated from the counts before rounding.
Among single respondents, the very-safe sample proportion changes from to , while the unsafe sample proportion changes from to . The direction resembles the weak pooled pattern, but supplies little evidence against independence in this stratum. This is not evidence that the population association is exactly zero.
Among married respondents, the very-safe sample proportion changes from to and the fairly-safe sample proportion rises from to . Unsafe remains almost unchanged, versus . Thus the within-stratum association again chiefly shifts very safe toward fairly safe. Its is below the significance level, while still indicates a small association.
For respondents living with a partner, very safe changes from to , fairly safe from to , and unsafe from to . The very-safe difference is larger than in the married stratum. The printed p-value would be just below the conventional significance level. However, this particular output is internally inconsistent: recalculating Pearson's chi-squared test from its six displayed counts gives , , and . The reported agrees with the counts, whereas the printed would itself imply for two statistical degrees of freedom, rather than the printed . Using the displayed counts, this stratum does not reject independence at . The source PDF itself contains these incompatible figures; this is not resolved by rounding.
Among divorced respondents, very safe changes from to , but unsafe also decreases, from to , as fairly safe increases from to . This is a redistribution toward the middle category, not a simple shift toward greater unsafety. The near-zero gamma, , reflects the lack of a consistent ordinal direction, while can still register distributional differences without a direction. The p-value does not reject independence.
Among widowed respondents, very safe changes from to , and unsafe from to . The ordinal association is positive on the chosen ordering, with gamma . Its lack of conventional statistical significance, , does not imply a smaller estimated association than in the married group: the widowed stratum has only complete observations, versus in the married stratum, and therefore less precision. All five tables have sufficiently large expected counts for the reported approximations; even the smallest expected count is about .
The plot uses large-sample Wald confidence intervals for the difference of independent sample proportions within each stratum. They concern the individual category contrasts, whereas the tabulated Pearson's chi-squared tests compare the full three-category distributions. The intervals are unadjusted for multiple hypothesis testing; the pooled row reuses the stratum observations, so it is not a sixth independent sample.
In the elaboration model, the persistence of a generally weak positive ordinal pattern within four strata is closer to partial replication than to a complete explanation of the pooled association by marital status. The differences in estimated patterns suggest possible specification: the divorced group's shift toward the middle category differs from the widowed group's shift toward unsafe. They do not by themselves establish population effect modification. In particular, significant and nonsignificant results need not differ significantly; compare the effects using an interaction contrast or a fitted model with the appropriate interaction terms, rather than comparing their separate p-values.[ref]
The Difference Between Significant and Not Significant is not Itself Statistically Significant by Andrew Gelman and Hal Stern. Printed p. 328, Introduction: comparing significance labels does not test the difference between estimates
One additional omnibus check can be derived from the supplied tables without assuming a common effect. Recalculating the five statistics from the counts, including the corrected living-with-partner statistic, the joint conditional independence test for stratified contingency tables givesUnder independent-stratum sampling this tests independence within every stratum jointly; it does not test whether the association is homogeneous across strata. It does not reject at , but this alone does not establish that stratification removed the population association: its ten-degree-of-freedom alternative is less focused than the pooled two-degree-of-freedom test, and nonrejection is not proof of equality.
The elaboration model also distinguishes an antecedent confounder from an intervening causal mediator. These cross-sectional tables do not establish the relevant time ordering or identify either role for marital status. Five separate stratum tests further require caution about multiple hypothesis testing: for example a Bonferroni correction at familywise would use per test, below all five individual p-values. That caution changes the interpretation of selected significance labels, not the observed conditional percentages.
The estimated patterns vary across strata, but the tables neither establish a population interaction nor prove that marital status explains away the association.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 32 1 a Solution Created 2026-10-03 Updated 2026-10-07
For independent binomial distributions in the two trial arms, the estimate of the log risk ratio isThe delta method gives ; replacing by the sample proportion gives , where is the event count. Adding the independent arm contributions therefore givesThe standard error is . Using the stipulated normal quantile two, the approximate confidence interval isThe point estimate of the risk ratio is , corresponding to approximately 79% lower mortality risk in the transfusion arm. Exponentiating the endpoints gives an approximate 95% confidence interval for the risk ratio of . It includes one, so the trial is compatible with no difference as well as substantial benefit or some harm. The point estimate favours transfusion, but the data are too imprecise to establish a difference at the 5% level. These are large-sample approximations, especially rough with only one event in an arm. A frequentist confidence interval describes repeated-sampling coverage, not a 95% posterior probability for this fixed parameter.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 32 2 c Solution Created 2026-10-03 Updated 2026-10-07
A numerical power calculation needs a significance level, desired power, sidedness and allocation; these are not specified in this part. For a concrete planning illustration, assume independent batches, equal samples per supplier, a two-sided 5% test with 80% power, and true rates and . The observed 2% from B and C is being used as a planning value for B, not as proof that B's population rate is exactly known. There is also a numerical inconsistency in the stated frame: at six batches per working day, B and C together produce only 120 batches in two weeks, and their proposed schemes would test 24. The asserted 3,000 sampled batches cannot literally come from that frame. The calculation treats as a stipulated planning estimate; its collection would require a larger frame or longer period.
For two independent sample proportions, the approximate null variance of their difference is and its variance at the alternative is , with . Separating the null critical value from the alternative mean by the required power quantile gives the sample size for comparing two proportions:With , and , this gives , so the normal-approximation calculation rounds to 1,141 batches per supplier, or approximately 1,150 for a practical planning target. This is per supplier, not the combined total. A different power or a one-sided test changes the answer. Positive clustering of sampled batches requires a cluster-aware calculation or inflation, so the independent-batch calculation should not simply be applied to C's one-day clusters.
