Across a human chromosome, neighboring single-nucleotide polymorphisms often show substantial linkage disequilibrium, while average allelic correlation tends to decline with increasing genetic distance. A new mutation starts on one ancestral haplotype; repeated genetic recombination separates it from progressively more distant markers. In an ideal randomly mating two-locus population without further mutation, migration or selection, gamete formation gives , where is the recombination fraction. The marginal allele frequencies remain fixed, so
Here the prime means the next-generation value, not a separately standardized LD statistic. This simple decay explains the distance trend, rather than asserting an exact deterministic law for real finite populations.
The local pattern is heterogeneous. Many regions have haplotype blocks with strong LD and a small number of common haplotypes, separated by intervals showing more historical recombination, often recombination hotspots. A hotspot can therefore cause a rapid drop in LD between markers that are close in physical distance. Block lengths and boundaries are not uniform, perfectly sharp or independent of the population and the statistical block definition. These empirical features are documented in the HapMap data.
Population history also matters. Population bottlenecks can reduce the number of ancestral haplotypes and increase the extent of LD; population stratification or admixture can create longer-range associations, including between distant loci. Different populations can consequently have different haplotype frequencies and LD patterns at the same genomic interval. Raw also varies with allele frequency, so comparing LD across markers requires attention to the chosen measure. The typical pattern is locally strong, block-like and highly variable LD, with a broad decline over genetic distance rather than a uniform chromosome-wide decay.
Let and encode the alleles at two loci on a randomly chosen population haplotype. Write , and . The linkage disequilibrium coefficient is
The determinant identity follows by substituting the marginal frequencies and . All four haplotype frequencies can be recovered as
Thus is precisely independence of the two allelic states. Its sign depends on which alleles are labeled one, and its possible magnitude depends on the marginal frequencies.
One other measure is squared allelic correlation. For segregating loci, , their indicator-variable covariance is , and their variances are and . Hence
This is the squared correlation, useful for measuring how well one marker predicts the other in association mapping. It is undefined if a locus is monomorphic. Linkage disequilibrium describes population haplotype frequencies; genetic linkage describes transmission within meioses. Physically linked loci can have , and population mixing can produce LD even between unlinked loci.
The accepted values have marginal posterior density
Estimate this one-dimensional density by a histogram or kernel density estimation from the simulated values. Where , likelihood reconstruction from posterior simulation gives
Use bins or a sufficiently fine grid, and refine near the maximum. For a histogram with bins , its posterior mass divided by prior mass estimates a prior-weighted average of the likelihood in that bin:
Narrowing the bins gives pointwise likelihood reconstruction at continuous positive-prior points. A flat proper prior over the search interval makes the highest posterior-density bin approximately the highest-likelihood bin. With a nonconstant prior, maximizing the posterior alone gives a maximum a posteriori estimate, generally different from maximum likelihood estimation. Choose prior support covering the intended search region and include a possible boundary maximum; for , decreases with , so the maximum-likelihood estimate is .
The sampled genealogies provide a second likelihood reconstruction when the one-dimensional prior integral is computable. Put
Their posterior density is . Therefore, for any trial value ,
This is an importance sampling estimate of the likelihood curve using the posterior genealogies. It can be maximized over a grid without estimating a posterior density in , provided wherever the target integrand is positive and the weights are numerically usable. The ordinary moment estimate is not automatically a maximum-likelihood estimate: it uses only the mean equation, while the likelihood integrates the entire random branch-length distribution.
Integrating the acceptance probability over the joint-prior proposal gives
The mean number of independent proposal trials per acceptance is , by the geometric distribution. To make the acceptance rate explicit for an arbitrary specified prior, define the segregating-site likelihood under the neutral coalescent by . Then
For the last identity, is the sum of independent exponential variables with rates ; combine their Laplace transforms with the conditional Poisson probability generating function. If an explicit mass is wanted, also has density : it is the maximum of independent unit exponential variables, whose successive spacings have exactly these exponential rates. Expanding and integrating the Poisson mass gives
Use for . The positive integral or generating-function expression may be numerically preferable to this alternating sum.
A sharper rejection envelope improves the algorithm without changing its proposal. For , maximize the Poisson mass over :
It increases until and decreases afterwards, so its maximum is . For , the maximum is . Replace the acceptance rule by . This is bounded by one, and its accepted density is unchanged because the factor cancels on normalization. Thus
For it is strictly more efficient, with improvement factor by Stirling's formula. For this envelope improvement gives no increase. Evaluating the Poisson mass and using a uniform draw also avoids generating a Poisson count only to discard it. A proposal concentrated near the posterior can improve efficiency further, but then its density and a valid rejection bound must be included.
Use the joint prior density as the proposal for rejection sampling. Since the Poisson probability lies in , the following algorithm is valid:
  • Draw from the proper prior distribution .
  • Independently draw from the exponential distributions with rates , for , and calculate .
  • Draw uniformly on , independently of all previous draws. Retain if ; otherwise restart.
The joint density of a proposed pair together with its acceptance event is . Its integral is , so conditioning on acceptance gives precisely , the desired posterior density. Repeating independent proposal trials until each acceptance produces independent posterior observations. This is Bayesian rejection sampling for a segregating-site count.
An equivalent implementation simulates and accepts exactly when . Its acceptance probability is the same Poisson mass. Propose from the joint prior and accept according to the exact observed-count likelihood. No approximation to the posterior distribution is involved in the accepted draws.
Let , with all , and put . The independent exponential epoch times have joint density
Take a proper prior distribution density on , independent of the neutral genealogy. Independence is appropriate because the specified neutral Kingman's coalescent does not depend on the mutation parameter. The conditional observed-count likelihood function is
Its prior predictive probability, or Bayesian model evidence, is
Assuming , Bayes' theorem gives the joint posterior of mutation rate and coalescent times:
It is zero outside the prior support and positive-time region. For , use the usual convention in the Poisson mass. An improper prior cannot be sampled as the proposal in the following algorithm, even in cases where its formal posterior can be normalized.
Let be the mutation rate per chromosomal segment per generation, and use the population-scaled parameter . In -generation coalescent units, mutations occur on each ancestral lineage at rate . Independent mutations on all branches of a given phylogenetic tree superpose to give a Poisson distribution with mean .
Under the infinite sites mutation model, each mutation occurs at a distinct position, and every mutation below the sample's common ancestor separates a nonempty proper subset of sampled chromosomes from the remainder. Thus the mutation count is exactly the segregating site count, giving
By the law of total expectation and the previous branch-length formula,
This also gives the Watterson estimator as an unbiased moment estimator of . Here all sample segregating sites are counted, including singletons; filtering sites by a minimum sample frequency or by external SNP discovery would introduce genetic-study ascertainment and change this calculation.
Use standard diploid coalescent time units of generations, where is the fixed effective population size, and take . In the neutral Kingman's coalescent, each unordered pair of ancestral lineages merges at rate one. With lineages, the next coalescence time therefore has an exponential distribution with rate
The memoryless construction and the Markov property make these epoch durations independent. During epoch there are branches, each of duration , so the total branch length of a neutral coalescent is
By linearity of expectation,
The ancestral branch above the sample's most recent common ancestor is excluded: mutations there would be shared by all sampled chromosomes and would not create segregating sites.
Label the two paternal ancestral marker copies and the two maternal copies . Treat these as four distinct ancestral copies in an outbred pedigree; equal observed alleles need not imply identity by descent. By Mendelian segregation, each child independently receives either paternal copy with probability . Thus the indicator that the two full siblings inherit the same paternal copy satisfies
The same argument gives for the maternal copy. Paternal and maternal meioses are independent, so and are independent. Consequently the number of copies shared identical by descent has a binomial distribution, giving
This is Mendelian IBD sharing of full siblings. It describes an ordinary, unselected sib pair: conditioning on a shared disease phenotype can change the distribution if there is genetic linkage to its causal locus.
Parametric linkage analysis specifies a disease-transmission model: the mode of inheritance, disease-allele frequency and penetrance of each genotype. Combining these with Mendelian segregation and the recombination fraction gives a pedigree likelihood. One can estimate the recombination fraction or compare a linked model, , with the unlinked model, , using a likelihood-ratio test or LOD score. Incomplete penetrance and unobserved genotypes are accommodated by summing over the possible underlying inheritance states.
Nonparametric linkage analysis instead tests whether relatives with the same disease phenotype share marker alleles identical by descent more often than expected from their pedigree. For example, affected-sib-pair analysis compares sharing among affected full siblings with its Mendelian null distribution. It avoids specifying a complete disease-penetrance model and disease-allele frequency. “Model-free” still assumes an inheritance model for the marker, correct family relationships and a justified treatment of genetic-study ascertainment; it does not mean assumption-free.
Parametric analysis models the disease likelihood; nonparametric analysis tests departure from the marker's Mendelian sharing distribution.
Use the original PDF's value ; the TeX aid misreads its last digit. In the fitted conditional mixture, means that about 57.5% are assigned to the structural-zero, or modelled cured, component. Its asymptotic 95% confidence interval of shows substantial uncertainty about that fraction. An observed post-treatment zero alone is not proof of cure, since the non-cured Poisson distribution can also produce zero.
The parameter is a conditional allocation probability, not the ratio of post-treatment to pre-treatment means. That ratio among non-cured patients is . Hence
The map is strictly increasing, so transform the endpoints of the supplied 95% confidence interval:
No change in the non-cured mean is , equivalently , which lies in this interval. Thus the point estimate suggests a reduction, but this interval does not firmly establish one among the non-cured patients at the corresponding two-sided 5% level. It is not correct to describe itself as a 61.4% reduction in their mean count.
Under a full pre-conditioning mixture with cure independent of the baseline rate, the population mean ratio would be , whose plug-in value is about . This combines disappearance of counts in one component with a change of rate in the other; it is distinct from the conditional estimate's direct interpretation. The two marginal confidence intervals cannot simply be multiplied to obtain a calibrated joint 95% interval for this derived quantity.
Only 12 patients were observed, so the asymptotic intervals, particularly for a mixture parameter near a boundary, should be interpreted cautiously. The data describe one-minute counts and do not establish permanent cure. Nor does an uncontrolled before-and-after comparison alone prove a causal effect of the drug: natural count variability, secular changes and regression to the mean remain possible. The structural-zero interpretation and the reduction among non-cured patients are conclusions within the specified statistical model.
Work with the stipulated approximate conditional likelihood. Let and , and put
Terms independent of the parameters, including the positive-count binomial coefficients, can be omitted. The log-likelihood is
For an interior maximum-likelihood estimator, set its two score functions to zero. Differentiating with respect to gives
Differentiating with respect to gives
Here there are seven zero-count patients and five positive-count patients, with and . Thus the positive-count contribution to the second equation is .
An interpretable way to solve the equations uses a posterior cure weight for each observed patient:
For a zero count, is the posterior probability of belonging to the non-cured component under this approximate conditional model. The two score functions can then be rewritten as
Therefore the conditional cure-weight equations for paired Poisson counts are
They can be solved by an expectation-maximization algorithm: calculate the weights at the current parameters, update to their mean and to the weighted event fraction, and iterate. A solution of the equations must be checked as a maximum; the equations alone do not guarantee a global maximum. In particular the boundary gives the no-cure estimate and should be compared. Boundaries , or have zero likelihood for these positive counts with positive pre-treatment counts. Numerical maximization gives an interior fit about , with larger log-likelihood than the no-cure boundary, consistent with the PDF's rounded estimates.
The word “approximate” is important. If cure is specified before conditioning in the original Poisson distributions, the conditional cure probability given would actually be
which still depends on . This follows because a cured total has mean and a non-cured total has mean . The likelihood supplied in the question instead treats as the mixture probability after conditioning; the score and weight equations above maximize exactly that stipulated approximation, without claiming nuisance-rate elimination for the full cure model.
Let . Since the two counts are independent Poisson distributions with means and , their total is a Poisson distribution with mean . For a fixed observed total , divide the joint probability mass function by that of the total:
Define , so . Then
For independent patients, the paired Poisson conditional likelihood is
Every nuisance rate cancels, while each patient's own baseline count level is retained through the conditioning total. A patient with total zero would contribute the constant one.
For these data, , , and . Maximizing this conditional likelihood gives
These are the fit under the model without a cure component, not the estimates of the mixture model in the later parts.
Mortality requires its own sample size calculation, rather than using the much commoner reconviction endpoint. Under the same specified exposure assumptions, the P30 schedule has 30 prison days, 30 high-risk post-release days, and 300 ordinary days. Its integrated hazard is
Hence its 360-day death probability is . For initial community-service assignment the preceding mixture gives . The absolute risk difference is therefore only about , or 16.8 fewer deaths per 10,000 initial assignments. The person-time approximation gives 145 versus 128 deaths per 10,000, a difference of 17.
As an illustrative design target, take two-sided significance level , statistical power and equal individual allocation. Apply the sample size for comparing two proportions formula with these mortality probabilities:
It gives about 74,600 participants per arm, or 149,200 altogether; using the simpler exposure approximations gives about 73,130 per arm. At 30,000 sentences per year, even if every offender were eligible and enrolled, this requires roughly five years of recruitment and another year to complete the final cohort's follow-up.
For scale, one year's equally allocated cohort has 15,000 per arm, with roughly 216 expected deaths after P30 and 191 after community-service assignment. The standard error of the risk difference is about , so the expected standardized separation is only about , below the usual two-sided 5% critical value. A one-year trial would consequently have poor statistical power for this mortality difference.
Thus mortality discrimination is much more demanding than reconviction discrimination. National recruitment and reliable linkage to death records could make a multiyear study feasible, but restricted eligibility, incomplete follow-up, or lower recruitment would lengthen it. A trial sized only for the 4-percentage-point reconviction difference would not provide a precise mortality comparison. The numerical conclusion depends on the supplied daily hazards, custody schedules, and the chosen power and significance targets; the prompt does not specify a mortality design target of its own.
Interpret the quoted daily death rates as piecewise constant hazard functions, and use the custody schedules described in the problem. This means community service itself has the ordinary community hazard, a completer has no prison exposure, and a breacher is imprisoned from day 60 to day 120. Subsequent imprisonment after another conviction is not specified, so it is not added to the exposure schedule. The abbreviated “CS180” denotes the same initial community-service policy.
For a completer, all 360 days have the baseline rate, giving integrated hazard
For a breacher, the four periods are 60 community days, 60 prison days, 30 high-risk days immediately after release, and 210 further community days. Thus
The piecewise-exponential survival model gives death probabilities and . Average these over the stated 60%/40% mixture of paths. Equivalently, everyone first survives the common initial 60-day community interval, and survivors then take the two paths in those proportions. The expected value among 10,000 initial assignments is
This accounts for removal of people after death. Since the daily hazards and endpoint death probabilities are small, the usual person-time approximation replaces by and gives
Both calculations use the same specified schedules. The latter treats all planned exposure as if contributed and is slightly larger. Additional custody histories would change the exposure-weighted integrated hazard; the provided reconviction proportions alone do not determine those histories.
Assume equal allocation of independent offenders to each arm and a two-sided statistical test of significance level . Write for P30 and for initial community-service assignment, with and . The two event counts have independent binomial distributions. Under the stated alternative, the difference of sample proportions is approximately a normal distribution with mean and variance
The pooled two-proportion test has approximate upper rejection threshold at the planning rates, where is the standard normal quantile. To obtain statistical power against a positive difference, place the alternative mean alternative-standard-errors above that threshold:
Solving yields the usual sample size for comparing two proportions:
per arm, rounded upwards, with total sample size . This targets the dominant rejection tail under the planning alternative; an exact power calculation can include the very small opposite-tail probability or use the binomial distributions directly.
For illustration, at , and , giving . Thus
For a prespecified one-sided test, replace by . The calculation assumes complete endpoint ascertainment, independent individual allocation and that the two initial-policy rates are appropriate; losses or clustered allocation would require corresponding design adjustments.
Under the no-death assumption, use the mixture of the two community-service paths. Of 10,000 initially assigned offenders, 4,000 breach and leave their subsequent 60-day prison term at day 120. Their remaining 240 days of follow-up match the supplied reconviction window. The 6,000 completers finish community service at day 180 and have the supplied 180-day post-completion follow-up.
The expected value of the number reconvicted is consequently
Thus the initial-policy 360-day reconviction probability is . This is a mixture calculation for the initially sentenced cohort, not the 40% rate of its selected completers alone. It uses the supplied windows and assumes they capture the reconvictions being counted, rather than adding unspecified reconvictions during the earlier order or custody periods.
A court-based randomized controlled trial would assign eligible offenders between the two sentencing policies using randomization, ideally stratified by court and important prespecified risk factors. With allocation concealment, the next assignment cannot be selected to suit an offender's prognosis. Baseline characteristics, both recorded and unrecorded, are balanced in distribution rather than confounded with judges' sentencing preferences. This makes a comparison of outcomes interpretable as a causal effect of assignment, subject to complete and comparable follow-up, whereas separate historical cohorts can differ in severity, social circumstances or calendar period.
The commission should compare both specified outcomes over the same 360-day period from sentencing, using an intention-to-treat analysis. An offender initially assigned community service remains in that group even if the order is later revoked and prison follows. Revocation is part of the policy's consequences; restricting the comparison to completers would select on a post-assignment outcome and lose the protection of randomization.
Within-court individual randomization also provides an objective allocation procedure and valid uncertainty estimates. It does not guarantee identical characteristics in a particular finite sample or eliminate loss to follow-up, unequal outcome ascertainment or limited generalizability. Eligibility, genuine uncertainty about the two policies, and a feasible authorized allocation mechanism would need agreement before the trial. If whole courts rather than individuals were assigned, that would be a cluster-randomized trial and its correlation structure would require a different sample size calculation.
For , a gamma distribution with unit mean and variance has shape and rate . Substituting its Laplace transform into the preceding result gives
Its negative logarithmic derivative is the population hazard function:
Consequently, at times with , the gamma frailty hazard ratio is
At a time when both hazards vanish this formula is a continuous extension; the literal ratio is undefined.
Write and . Two useful identities are
For small cumulative exposure , , so it starts at the conditional hazard ratio . If , it decreases towards one; if , it increases towards one; and if , it equals one throughout. It stays between and one and never crosses one.
For fixed , the late-time limit is one provided . If instead the integrated hazard tends to a finite value , the limiting hazard ratio is , which need not be one. Elapsed time alone does not imply unbounded exposure.
For small at a fixed time, . At the frailty degenerates to , giving an ordinary proportional hazards model. For large at a fixed time with , ; at time zero, however, it remains . Thus that variance limit is not uniform near zero. Larger heterogeneity accelerates the movement of the population hazard ratio towards one. The mechanism is survival selection: frailer individuals leave the population sooner, particularly in the higher-hazard group, while each individual's conditional multiplier remains fixed.
Condition on a frailty random variable value . Integrating the conditional hazard function gives , so the conditional survivor function is
Average this conditional probability over the common frailty density :
By definition the Laplace transform of is . Hence
This averages survivor functions, not hazards. Differentiating its logarithm, when justified, gives
Thus the population hazard function uses the mean frailty among current survivors, explaining why a conditional proportional hazards model may cease to be proportional after frailty is integrated out.

Pinned article: Introduction to the OurBigBook Project

Welcome to the OurBigBook Project! Our goal is to create the perfect publishing platform for STEM subjects, and get university-level students to write the best free STEM tutorials ever.
Everyone is welcome to create an account and play with the site: ourbigbook.com/go/register. We belive that students themselves can write amazing tutorials, but teachers are welcome too. You can write about anything you want, it doesn't have to be STEM or even educational. Silly test content is very welcome and you won't be penalized in any way. Just keep it legal!
We have two killer features:
  1. topics: topics group articles by different users with the same title, e.g. here is the topic for the "Fundamental Theorem of Calculus" ourbigbook.com/go/topic/fundamental-theorem-of-calculus
    Articles of different users are sorted by upvote within each article page. This feature is a bit like:
    • a Wikipedia where each user can have their own version of each article
    • a Q&A website like Stack Overflow, where multiple people can give their views on a given topic, and the best ones are sorted by upvote. Except you don't need to wait for someone to ask first, and any topic goes, no matter how narrow or broad
    This feature makes it possible for readers to find better explanations of any topic created by other writers. And it allows writers to create an explanation in a place that readers might actually find it.
    Figure 1.
    Screenshot of the "Derivative" topic page
    . View it live at: ourbigbook.com/go/topic/derivative
  2. local editing: you can store all your personal knowledge base content locally in a plaintext markup format that can be edited locally and published either:
    This way you can be sure that even if OurBigBook.com were to go down one day (which we have no plans to do as it is quite cheap to host!), your content will still be perfectly readable as a static site.
    Figure 5. . You can also edit articles on the Web editor without installing anything locally.
    Video 3.
    Edit locally and publish demo
    . Source. This shows editing OurBigBook Markup and publishing it using the Visual Studio Code extension.
  3. https://raw.githubusercontent.com/ourbigbook/ourbigbook-media/master/feature/x/hilbert-space-arrow.png
  4. Infinitely deep tables of contents:
    Figure 6.
    Dynamic article tree with infinitely deep table of contents
    .
    Descendant pages can also show up as toplevel e.g.: ourbigbook.com/cirosantilli/chordate-subclade
All our software is open source and hosted at: github.com/ourbigbook/ourbigbook
Further documentation can be found at: docs.ourbigbook.com
Feel free to reach our to us for any help or suggestions: docs.ourbigbook.com/#contact