Write for the continuous-time Markov chain and for expected value conditional on . The occupation time of a continuous-time Markov chain in state is the integral of its indicator random variable. By Tonelli theorem,
The interchange is valid because the integrand is nonnegative; indeed the random integral is bounded by .
Let count all jumps of the continuous-time Markov chain. Its Markov-chain entry count into state is
Thus
This is a Lebesgue-Stieltjes integral against a counting process, so each jump contributes one. The initial occupation of state is not counted as an entry. An ordinary time integral of an indicator random variable asserting a jump at exactly time would be zero, since individual jump times have zero Lebesgue measure. The requested integral must therefore use this counting-measure interpretation. Assume non-explosion and finite expected jump counts on bounded intervals, as holds for a finite-state continuous-time Markov chain.
For , the Markov property and the definition of transition intensity give
Summing over the possible pre-jump states gives the density of the expected Markov-chain entry count:
For a finite-state continuous-time Markov chain, the chance of two or more jumps in this short interval is . There is no contribution: diagonal entries of the infinitesimal generator encode exit rates, not jumps into the same state. With repeated entries possible, this density is an expected event rate rather than the probability density function of a single normalized random time.
Integrate the expected Markov-chain entry count density and use the occupation time of a continuous-time Markov chain formula:
Each term is a transition intensity multiplied by the expected exposure time to that transition. This counts every entry, including returns, rather than only the first visit. For countably many states the same nonnegative interchange follows from Tonelli theorem, provided the resulting expected count is finite. The sum excludes .
Use an irreversible continuous-time multi-state model , with state 3 absorbing. Let and , and define log-linear age effects by
For a closed-form panel-observed multi-state likelihood, freeze the age covariate at the start of each observation interval. The transition intensities are then over the first interval and over the second. Conditional on the initial state, the likelihood contribution is
Indeed, and . In this irreversible continuous-time Markov chain, the intermediate state has probability
The second expression is the continuous limit of the first and handles equal rates. The observed two-state jump across an interval is compatible with adjacent instantaneous transitions: an unobserved visit to state 2 occurs between the examinations.
The four-parameter panel-observed multi-state likelihood requires the following additional assumptions.
  • Irreversibility: the chronic disease can progress but cannot improve, so and state 3 is absorbing. Merely permitting transitions between adjacent states does not impose this; allowing regression would require additional transition intensities.
  • Piecewise-constant age: the current age is held at 50 and 55 over the respective observation intervals. Actual age changes continuously, and a five-year interval can be too long for this approximation when the age effect is substantial.
  • Log-linear age effects and common rates: the specified age functions apply to the patient, without unmodelled heterogeneity or other changing covariates.
  • Observation mechanism: disease states are recorded without misclassification, and examination times or dropout carry no additional information about the underlying process once the modelled history is given. A new visit only one year after a five-year gap might have been prompted by worsening symptoms, making the observation schedule informative.
If age is instead updated continuously, the model is time-inhomogeneous and the displayed homogeneous transition formula is not exact. For example, set
Then the exact irreversible likelihood contribution is
Thus the simple closed form uses an explicit frozen-age approximation; adjacency alone and continuously evolving age do not determine that form.
Under the frozen-age exponential distribution convention, the mean waiting time is the reciprocal of the outgoing transition intensity. The beliefs therefore specify
Both rates double over ten years. Consequently
These calibrate the age-specific constant-rate means; they are not exact mean ages of future events when age-dependent rates continue increasing throughout the waiting time.
For a literal continuously ageing interpretation, a rate gives a Gompertz distribution for the waiting time. For , its mean is
Here is the exponential integral. Solving and , and the analogous pair with means 2 and 1, instead gives
with rates and slopes in inverse years. These are an alternative continuous-age calibration, not the frozen-age answer boxed above.
Put and assume . For fixed and a fixed nonzero difference , the approximate statistical power of the Wald test increases as its noncentrality increases, where
Differentiating with respect to the continuous allocation gives
Hence the unique minimum and its associated minimum variance are
This is Neyman allocation. Integer allocations use a feasible adjacent integer to the continuous optimum, comparing the resulting variances; must still hold. It is a large-sample normal approximation argument, not an exact finite-sample power theorem for arbitrary response-adaptive randomization. Under the null , the approximate power is the significance level for any allocation, although the same allocation still minimizes the stated variance.
The difference of the Bernoulli distribution variances factors as
The first factor is positive, whereas makes the second negative. Thus and . Therefore Neyman allocation assigns more patients to treatment 1, the inferior treatment. Minimizing the variance of a treatment comparison and maximizing the number of desirable responses are different objectives.
For the plug-in Neyman allocation, the estimated Bernoulli distribution variances are and , so
This uses the target ratio directly as the allocation odds; a procedure that actively corrects previous allocation imbalances would need an additional rule.
For the randomized play-the-winner rule RPW, return the drawn ball and add one ball of the same treatment after a success or of the opposite treatment after a failure. Treatment 0 has three successes and two failures, and treatment 1 has one success and three failures. The urn therefore has treatment-0 balls and treatment-1 balls. Hence
For dynamic programming with only the final patient left, there is no future value from learning. Independent uniform prior distributions and Beta-binomial conjugacy give posteriors and . Their posterior predictive probabilities of success are and . The optimal terminal action therefore gives
This is optimal for expected successes with no imposed lower bound on the randomization probabilities.
A second opportunity to reject raises the trial's overall Type I error above the nominal 10% in general. If and denote rejection at the first and second analyses, the overall error is
The cumulative-data test statistics are correlated, so neither 20% nor is the general answer. The latter requires independent tests, which is not the situation here.
The rejection thresholds and the stopping/continuation rule must be calibrated jointly. A prespecified group sequential design or alpha-spending function can allocate a total error budget of 10% across the analyses, using their joint null distribution. A conservative alternative planned in advance is two tests each at 5%, controlled by the Bonferroni inequality. An unplanned change to a design with a remaining error budget can be justified by the conditional error principle. Here, however, an original single-look test at 10% has no remaining conditional rejection probability after its final nonrejection. Keeping its entire original rejection region and adding a new positive-probability rejection opportunity cannot in general retain a 10% overall error rate. The two-look rule therefore needs prospective joint calibration; an already observed result cannot retrospectively create an unused error budget.
Let and be the potential outcomes for the same individual under well-defined interventions setting the binary exposure to 1 and 0. The average treatment effect, also called the average causal effect on the additive scale, is
The average is over the target population. This compares hypothetical outcomes under two interventions, rather than the observed difference , which can be distorted by confounding. For binary , the displayed contrast is a causal risk difference. Consistency in causal inference and a well-defined intervention, including an appropriate no-interference in causal inference assumption, give these potential outcomes their meaning.
An instrumental variable supplies variation in an exposure that can be used for causal inference about its effect on . Its three core requirements are:
Relevance, independence, and exclusion are the core instrumental-variable assumptions. They do not by themselves identify an arbitrary population-average effect. For a binary instrument and treatment, instrumental-variable monotonicity and the usual consistency in causal inference assumptions can identify a local average treatment effect; stronger effect-homogeneity or structural-model assumptions are needed for other effect interpretations.
Under the displayed causal directed acyclic graphs, with nonzero effects along the relevant arrows and no exact cancellation of the effects on , the valid instrumental variables are scenarios (i), (ii), and (iv). The path arguments are:
An upstream intermediate variable need not invalidate an instrumental variable if its routes to the outcome all pass through the target exposure; an outcome intermediate reached without that exposure does invalidate it.
The supplementary excerpt uses an adjusted observational study and a two-sample Mendelian randomization analysis.
The observational study examines co-occurrence of hypercalcaemia and migraine diagnoses in electronic health records, adjusting for age, sex, and ancestry. Its adjusted odds ratio is 1.58, with .
The two-sample Mendelian randomization analysis combines the associations of eight genetic variants with serum calcium and with migraine, using a weighted genetic risk score. It estimates an odds ratio of 1.80 per genetically predicted 1 mg/dL higher serum calcium, with 95% confidence interval . The weighted-median Mendelian randomization estimator and MR-Egger regression provide sensitivity analyses.
The measured and instrumented exposure is serum calcium, rather than dietary calcium intake itself. Calcium intake and serum calcium are not interchangeable interventions, and an odds ratio of 1.80 is an odds contrast rather than necessarily an 80% increase in probability. The shortened excerpt supplies two approaches; a further analysis in the full research paper is outside this excerpt.
For the electronic-record observational study, three strengths are:
Three weaknesses are:
For two-sample Mendelian randomization, three strengths are:
Three weaknesses are:
Thus the agreement supports the hypothesis, but does not establish the effect of a dietary intervention.
Two useful ways to strengthen the causal inference are:
These are complementary: the first changes the proposed exposure experimentally, and the second probes the validity and reproducibility of its genetic evidence.
The survivor function of a nonnegative event time is
Here the paper uses for the survival function, rather than for the cumulative distribution function; the latter is for a continuous distribution. The survivor function is nonincreasing, starts at 1 when there is no atom at zero, and tends to zero for an almost surely finite event time.
With no censoring or new entry within the interval, all individuals can be classified at its end: have experienced the event and remain event-free. Thus the empirical conditional survival probability is
This assumes and that the observed individuals represent the group whose conditional survival probability is being estimated.
An individual is right-censored at when follow-up establishes that the event has not occurred through , but does not reveal the subsequent event time. The observed information is for the continuous-time convention.
Knowing only the total number censored inside an interval does not specify the risk sets at the event times. For example, start with two individuals, one event and one censoring. If censoring precedes the event, the Kaplan–Meier estimator contributes ; if the event precedes censoring, it contributes . The totals are identical.
Therefore the timing of right censoring relative to the events is needed. Independent censoring is also required for these changing risk sets to yield a valid estimate of the underlying survivor function.
The estimate remains . Individuals right-censored at are observed throughout the preceding interval, so they contribute to each risk set until the end. They must not be removed from the denominator at .
If events and right censoring share the recorded time , use the usual Kaplan–Meier estimator convention: count events first, using a risk set that still includes those censored at that time, and then remove the censored observations. With no earlier censoring, the product of event factors over the interval telescopes to .
A potential event time is an allowed support point for the discrete event-time distribution used to derive the Kaplan–Meier estimator. A positive probability mass may be assigned there before fitting, even if no event was observed at that time.
This is a device for nonparametric maximum likelihood estimation from exact event times and right censoring; it does not assert that the underlying biological event time is genuinely discrete. Its estimated mass can be zero at an unobserved potential time.
The set must contain every observed event time. Otherwise a discrete survival likelihood would assign probability zero to at least one exact event observation.
The set can include additional times without observed events. Include time zero when events at zero are present, and allow remaining tail probability beyond the fitted range. Estimation of a conditional event mass requires a nonempty risk set; once follow-up ends, later probability masses are not identified by the data. The usual Kaplan–Meier estimator retains the final estimated survival probability as its tail convention.
Let be the number of events at potential time and let be the size of the risk set immediately before that time, including observations censored at . Define the discrete conditional event probability
Under independent censoring, and ignoring the separate censoring distribution, the survival likelihood factorizes as
This follows by multiplying a survival factor for each individual at risk who does not fail at , and an event factor for each failure. The log factor is maximized at , with the corresponding boundary values when or .
The survival function is the product of successive conditional survival probabilities. Therefore
This is the Kaplan–Meier estimator. A product over no event times is 1. If everyone remaining experiences an event, the product becomes zero and stays zero; subsequent empty risk sets supply no additional factor.
At an added potential event time with no event and a nonempty risk set, , so maximum likelihood estimation gives . Its factor in the Kaplan–Meier estimator is therefore .
Adding or deleting such times also leaves the risk sets at actual event times unchanged: those depend on the observed event and censoring histories. Consequently the fitted survivor function depends only on observed event times and their risk sets. Beyond the last observed follow-up, the tail is not identified; the standard flat continuation is a convention, rather than an additional consequence of likelihood maximization.
Choose the potential right-censoring times to include every observed right censoring time up to , and also the endpoints 0 and . Then no individual is censored strictly inside . Use an explicit endpoint convention: let count individuals still event-free after any events at , but before censoring at . If events occur in , the number at the beginning of that interval, after censoring at its left endpoint, is .
The no-censoring interval estimate from the preceding parts is therefore . The possible event mass at zero contributes . Multiplying yields
For a continuous event-time distribution, normally . Within interval , put and let its successive event counts be . Its Kaplan–Meier estimator factors telescope:
The same calculation at zero proves
The paper's phrase “at risk at ” does not specify its side of an event at that endpoint. If it denotes the conventional pre-event risk set size instead, and events occur exactly at , substitute . The interval factor is then ; at zero it is . This keeps the events-before-censoring convention consistent. After an empty risk set, stop the product; if the fitted survival has reached zero, retain zero rather than creating a factor.
Define the event counting process and at-risk process by
Under a common hazard function and independent censoring, the conditional event rate is . Equivalently, the counting-process compensator satisfies . Estimate a cumulative hazard increment by the observed event increment divided by the current risk set:
With no ties, has mass at , and . Thus the Nelson–Aalen estimator is
Only event times contribute, so no empty risk set is divided into an event count. Right-censored observations contribute time to the risk sets, but no event increment.
Let be the risk set at an observed event time . In the Cox proportional-hazards model, conditional on one member of this set failing then and on the preceding history, the probability that it is individual is
The baseline hazard cancels. Multiplying these conditional contributions gives the Cox partial likelihood
The no-ties assumption avoids the need for a tied-event approximation. This construction assumes independent censoring conditional on the modelled covariates. The printed phrase calling a scalar parameter is read as a scalar observed covariate ; is the unknown regression parameter.
Taking logarithms of the Cox partial likelihood gives
Differentiate each term, using the chain rule for the logarithm:
This score function is the sum over failures of the observed covariate minus its current risk-weighted mean. Define that mean as ; observations with have no direct event term, although they occur in the relevant risk sets.
Within the risk set , the Cox proportional-hazards model makes the conditional failure probabilities proportional to . Thus
The score function sums observed minus expected covariates at event times. At a finite interior maximum of the Cox partial likelihood,
The balance holds in aggregate, not separately at every event. The log partial likelihood is concave because
When there is informative covariate variation in the risk sets, this gives a unique finite solution if it exists. A completely separated event pattern can instead have its maximum only as ; the question's finite implicitly excludes that case.
In the Cox proportional-hazards model, replace the number at risk in the Nelson–Aalen estimator by the sum of relative hazards:
The total event counting process has conditional rate , so the estimated baseline hazard increment is . Integrating gives the Breslow estimator
When , all relative hazards are 1 and this reduces to the Nelson–Aalen estimator. The denominator is positive at each observed event time.
In the martingale residual
is the observed event count up to the end of the individual's follow-up: 1 for a recorded event and 0 for right censoring. The second term is the fitted counting-process compensator, obtained by integrating that individual's fitted hazard function while they remain at risk:
Thus the residual is observed events minus the fitted cumulative event intensity over follow-up. The fitted intensity is not an event probability and can exceed 1. Positive values indicate more events than predicted over that observed exposure; negative values indicate fewer. A right-censored individual has a nonpositive residual. With true model parameters and independent censoring, the underlying observed-minus-compensator process is a martingale; fitted terminal residuals are not independent identically distributed errors.
Fit the Cox proportional-hazards model with the other explanatory variables, initially omitting the variable whose form is being assessed, and plot the resulting martingale residuals against . Add a smooth trend, for example using a cubic spline or a local smoother. A systematic pattern indicates that affects the hazard function; the shape helps suggest a linear term, a transformation, or a nonlinear spline term in the log hazard.
Refit with the proposed form and inspect martingale residuals against again. Under an adequate functional form, their conditional mean should have no systematic trend, allowing for model fitting and the other covariates. Compare plausible alternative forms using the partial likelihood and suitable model checks.
Use the smoothed pattern to assess the covariate's functional form, rather than treating these residuals as normal regression errors. Martingale residuals are asymmetric, bounded above by 1, and can be arbitrarily negative; the raw residual plot can therefore be misleading without smoothing. This diagnostic concerns the covariate form, and does not by itself test the proportional hazards assumption.
Insert the Breslow estimator into the fitted cumulative intensities and interchange the finite sums:
Every observed event contributes exactly one after summing its fitted contribution over its risk set. Therefore
This identity is algebraic and holds for any finite coefficient used consistently in the relative hazards and the Breslow estimator; it does not require the score equation to be solved exactly. It can fail if the baseline hazard is estimated or smoothed by a different procedure.
Condition on the event time . Independence makes the chance that is still later equal to its survivor function . Hence
The continuous distributions give zero probability of a tie. The complementary probability is .
For the survivor functions, and . The product rule gives
Integrating from 0 to , using , yields
The three terms partition the possible histories: A occurs first by time , B occurs first by time , or neither has occurred by . The first two are the cumulative incidence functions for the two competing risks, while the third is the survival probability of their minimum. The initial value assumes nonnegative event times with no atom at zero.
Let , and assume so that both conditional distributions are defined. By independence, the joint density of and is , whereas the joint density of and is . Normalizing gives
Both are densities of the latent event time . The second is not the density of the observed first event in cases where B wins. Their integrals are 1 by the definitions of and its complement.
The minimum exceeds exactly when both times exceed . By independence,
Differentiating its survivor function gives
The tail integral formula for moments then gives
Equivalently, integration by parts in gives . The assumed makes the boundary term vanish, since .
The stated tail condition does not itself guarantee a finite mean. For example, the proper survivor functions
satisfy , but their product behaves as , whose integral diverges. Thus the displayed expectation is valid as an extended nonnegative value; finiteness needs integrability of the product. The exponential distribution in the next part guarantees that finiteness.
For the exponential distribution with mean , and . Therefore
Since ties have probability zero, . Taking expected values in the definition of gives
There is also an imputation interpretation. If A is observed first, ; if B censors A, memorylessness of the exponential distribution and independence imply that the remaining mean lifetime is . Thus is the conditional expectation of given the observed minimum and censoring indicator. The tower property of conditional expectation gives the same equality. This does not say that and have the same distribution.

Articles by others on the same topic (0)

There are currently no matching articles.