From Class Probabilities to Individual Assignments
In a two-class NLME model, each individual belongs to a latent metabolizer class, such as fast or slow clearance. The class is not directly observed: it is inferred from the individual’s concentration-time data and any covariates in the membership model. Consequently, an individual assignment is generally uncertain. A fitted probability of 0.70 for fast-class membership does not mean the individual is known to be fast; it means the fitted model gives the fast class 70% of the conditional membership probability, given the available data and model.
The distinction matters in reporting and decision-making. A hard label such as “fast” is convenient for a table, but it hides how strongly the data support that label. A probability preserves that information and allows a threshold to be chosen for a specific purpose.
The word “posterior” here describes updating class membership probabilities using individual data. In a standard fitted NLME analysis, the calculation usually plugs in estimated parameters; it does not by itself include uncertainty in those parameter estimates. If a fully Bayesian analysis instead averages over a parameter distribution, its membership probabilities can also reflect parameter uncertainty.
How the Posterior Probability Is Calculated
Let \(\pi_{iF}=P(Z_i=F\mid x_i,\hat{\theta})\) be the model-based class probability before using individual \(i\)’s observed response data, and define \(\pi_{iS}=1-\pi_{iF}\). Let \(L_{iF}\) and \(L_{iS}\) be the likelihoods of the observed data under the fast and slow classes, respectively. In an NLME model, each class likelihood is based on the class-specific model and accounts for the random effects according to the model’s likelihood calculation. Bayes’ rule gives
Thus, an individual’s class probability combines two sources of information: the prior class probability supplied by the membership model and how well each class explains that individual’s data. A class with a larger prior probability need not have the larger posterior probability if the observed data fit the other class sufficiently better.
This calculation assumes that the membership probabilities and class-specific likelihoods are defined by the fitted model, and that the individual’s data contribute through the stated likelihood. It also relies on the model’s assumptions about conditional independence across individuals and the within-class response and random-effects distributions. A probability is therefore a model-based summary, not a direct measurement of a person’s biological class.
Worked Example: Updating Class Membership With Individual Data
Suppose a hypothetical fitted model gives an individual a prior fast-class probability of 0.30. The observed data have likelihood 0.12 under the fast class and 0.04 under the slow class. Calculate the posterior fast-class probability.
The slow-class prior probability is \(1-0.30=0.70\). The fast-class contribution to the denominator is \(0.30(0.12)=0.036\), while the slow-class contribution is \(0.70(0.04)=0.028\). Therefore,
The fitted probability of fast-class membership is 0.5625, or about 56.3%; the slow-class probability is 43.8%. The observed data shift the probability toward fast relative to its 30% prior value, but the evidence does not make the assignment certain. Under a maximum-posterior-probability rule, this individual would be labelled fast because 0.5625 exceeds 0.5. That label should not be reported as if the class were observed.
Thresholds, Hard Labels, and Abstention
A hard assignment requires a rule that converts probabilities into labels. The maximum-posterior-probability (MAP) rule assigns fast when \(q_i\geq 0.5\) and slow otherwise. This rule selects the class with the larger fitted posterior probability. It is a natural default when the two kinds of classification error have equal cost, but it does not imply that probabilities just above 0.5 represent strong evidence.
A higher confidence threshold can be used when a label should be issued only if support is stronger. For example, with threshold \(t=0.80\), assign fast if \(q_i\geq 0.80\), assign slow if \(q_i\leq 0.20\), and leave the individual unclassified otherwise. The middle range is an abstention region: it is an explicit acknowledgement that neither class has enough probability for the chosen confidence rule. Reporting the number left unclassified is essential; otherwise, a high apparent accuracy among assigned individuals can conceal very low coverage.
For a set of \(N\) individuals, useful summaries at a stated threshold include the number assigned to each class, the number abstaining, and the coverage (the proportion receiving a label). If labels are assigned to a subset \(A\), the sum of the assigned class probabilities gives the expected number correctly classified under the fitted probabilities. Dividing that sum by \(|A|\) gives the expected proportion correct among assigned individuals. These are model-based expectations, not observed accuracy against known latent labels.
Worked Example: Comparing MAP and High-Confidence Assignments
For eight hypothetical individuals, suppose fitted fast-class probabilities are 0.94, 0.82, 0.78, 0.61, 0.49, 0.37, 0.18, and 0.06. Compare MAP assignments with assignments using a high-confidence threshold of 0.80 for either class.
Under MAP, the first four individuals are assigned fast and the remaining four slow. The sum of their assigned-class probabilities is \(0.94+0.82+0.78+0.61+0.51+0.63+0.82+0.94=6.05\), where each slow assignment contributes \(1-q_i\). Thus, the fitted expected number correct is 6.05 out of 8, or \(6.05/8=0.756\), about 75.6%.
At the 0.80 threshold, individuals with \(q_i\geq0.80\) are assigned fast and those with \(q_i\leq0.20\) are assigned slow. The first two are assigned fast, and the last two are assigned slow; the other four abstain. Coverage is \(4/8=0.50\), or 50%. The expected number correct among those four is \(0.94+0.82+0.82+0.94=3.52\), giving expected accuracy among assigned individuals of \(3.52/4=0.880\), or 88.0%.
The higher threshold increases expected accuracy among those labelled, but reduces coverage by half. Neither summary proves that the latent class is correct for any particular person. The choice depends on whether the purpose favors broad classification or fewer, more strongly supported assignments.
Why the MAP Rule Uses a 0.5 Threshold
The MAP rule follows from a simple loss calculation. Suppose a false fast assignment (assigning fast when the individual is slow) has cost \(C_{FP}\), and a false slow assignment has cost \(C_{FN}\). Conditional on the individual’s data, the expected loss from assigning fast is \(C_{FP}(1-q_i)\), because the probability the individual is actually slow is \(1-q_i\). The expected loss from assigning slow is \(C_{FN}q_i\). Choose fast when its expected loss is no greater:
With equal costs, \(C_{FP}=C_{FN}\), the threshold is 0.5, giving the MAP rule. If falsely calling a slow individual fast is more costly, then \(C_{FP}>C_{FN}\) and the threshold rises. This derivation also shows why no threshold is universally optimal: the appropriate rule depends on the consequences of each error and on whether abstention is allowed.
Worked Example: Choosing a Threshold Under Unequal Error Costs
Suppose a hypothetical classification decision has a false-fast cost of 4 units and a false-slow cost of 1 unit. For an individual with \(q_i=0.70\), compare the expected losses and determine the lower-loss assignment.
The cost-based threshold is \(\frac{C_{FP}}{C_{FP}+C_{FN}}=\frac{4}{4+1}=0.80\). Since \(0.70<0.80\), this rule does not assign fast. Directly, the expected loss from assigning fast is \(4(1-0.70)=1.20\) units, while the expected loss from assigning slow is \(1(0.70)=0.70\) units. Assigning slow has lower expected loss. Under equal costs, the MAP rule would assign fast at 0.70, so the different result is due to the stated cost asymmetry, not a change in the probability calculation.
Expected Class Counts Preserve Uncertainty
Hard labels can distort a summary of a group when many individuals have probabilities near 0.5. If \(q_i\) is the fitted fast-class probability for each individual, the expected number in the fast class is \(\sum_{i=1}^{N}q_i\), and the expected number in the slow class is \(\sum_{i=1}^{N}(1-q_i)\). These are fractional expected counts, not claims that a fractional person exists. They summarize the model’s membership probabilities across individuals.
Worked Example: Hard Counts Versus Expected Counts
Consider five hypothetical individuals with fast-class probabilities 0.90, 0.65, 0.52, 0.25, and 0.08. Under MAP, the first three receive fast labels and the last two receive slow labels, giving hard counts of three fast and two slow.
The expected fast count is \(0.90+0.65+0.52+0.25+0.08=2.40\). The expected slow count is \(0.10+0.35+0.48+0.75+0.92=2.60\). The expected counts sum to five, as they must, because \(q_i+(1-q_i)=1\) for every individual. The hard fast count of three results from cutting each probability at 0.5; it discards the fact that two of the three fast labels have probabilities only 0.65 and 0.52. For a summary of model-implied membership, the expected counts retain that uncertainty.
Interpretation, Comparisons, and Common Pitfalls
Three reporting approaches answer different questions. The probability \(q_i\) communicates the fitted uncertainty for each individual. A MAP label provides a complete two-class partition under equal error costs, but conceals how close probabilities are to the threshold. A high-confidence rule communicates only stronger assignments and should be accompanied by its threshold and coverage. Expected class counts summarize group membership without forcing each individual into a single class.
These approaches are not substitutes for a model with observed class labels. Nor do posterior class probabilities establish that a latent-class model is scientifically appropriate; that question concerns model specification and evidence for the mixture. A class probability is conditional on the chosen model, including its class definitions, class-specific response distributions, covariate effects, and fitted parameters.
A frequent mistake is to say, “This individual is fast because their probability is 0.55.” The correction is: “Under the fitted model, this individual has a 0.55 probability of fast-class membership; the MAP rule would label them fast, but the assignment is uncertain.” Another mistake is to call the fraction labelled fast the estimated population prevalence. Thresholded counts depend on the threshold and individual probabilities; prevalence is represented by the membership model, while the sum of posterior probabilities is a data-updated expected count. They need not be equal.
Probabilities may also be sensitive to model assumptions or parameter estimates, especially when the classes overlap or the individual data are sparse. A reported value with many decimal places does not remove that uncertainty. Report enough precision for the decision, state the classification rule, and avoid presenting a hard label as ground truth. The detailed diagnostics used to assess the adequacy of a latent mixture are a separate question from interpreting its individual class probabilities.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions below.
- An individual has a fast-class prior probability of 0.40, with class likelihoods 0.10 under fast and 0.05 under slow. What is the posterior fast probability?
- Under a 0.75 high-confidence threshold for either class, what happens to an individual with \(q_i=0.62\)?
- For three individuals with fast probabilities 0.80, 0.50, and 0.20, calculate the expected fast count and the MAP fast count.
- If false-fast classification costs 3 units and false-slow classification costs 2 units, what threshold assigns an individual to fast?
Solutions. 1. The slow prior is 0.60, so \(q_i=\frac{0.40(0.10)}{0.40(0.10)+0.60(0.05)}=\frac{0.04}{0.07}=0.5714\). 2. The individual is unclassified: 0.62 is below 0.75 and above the slow-assignment boundary \(1-0.75=0.25\). 3. Expected fast count is \(0.80+0.50+0.20=1.50\). With MAP assigning fast at \(q_i\geq0.5\), the hard fast count is 2. 4. The threshold is \(C_{FP}/(C_{FP}+C_{FN})=3/(3+2)=0.60\); assign fast when \(q_i\geq0.60\).