Categorical Random Variate Generator
Executes single-trial categorical draws across K discrete outcomes using cumulative probability interval mapping.
Investigate the multivariate Multinomial distribution, simulate multi-category discrete trials, evaluate joint probability mass functions, quantify the negative covariance between competing categories, and extract the pairwise covariance coefficient. Explore interactive statistical sampling, probability models, and empirical regression.
Ready to sample with Trials Factor k = 1.0.
Adjust Trials Factor k, then execute statistical trial.
Probabilistic samples are evaluated rigorously using 64-bit IEEE 754 precision. Residuals reflect ordinary least-squares regression across successive observations. Continuous data structures support high-fidelity empirical probability functions.
The standard Multinomial model assumes constant category probabilities, which fails in urn models without replacement. The empirical regression of absolute covariance against trial multiplier k confirms the theoretical parameter scaling with slope m = 0.0600 and R² = 1.000000.
Executes single-trial categorical draws across K discrete outcomes using cumulative probability interval mapping.
Logs simultaneous category tallies X = (X_1, X_2, ..., X_K) across n independent multinomial trials.
Computes exact multinomial probabilities P(X = x) = (n! / ∏ x_i!) ∏ p_i^(x_i) via logarithmic factorial sums.
Computes the full K × K sample covariance matrix, verifying negative off-diagonal entries Cov(X_i, X_j) = -n p_i p_j.
Verifies that the marginal distribution of any single category X_i is exactly Binomial(n, p_i).
Performs linear regression of |Cov(X_1, X_2)| versus trial factor to extract the theoretical product p_1 p_2 = 0.060.
Investigate the multivariate Multinomial distribution, simulate multi-category discrete trials, evaluate joint probability mass functions, quantify the negative covariance between competing categories, and extract the pairwise covariance coefficient. Standardized parameter settings: 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 factor.
Set outcome categories to K = 3 with probability vector p = [0.20, 0.30, 0.50] on the simulation dashboard, noting that ∑ p_i = 1.00.
Run an ensemble of 20,000 multinomial experiments with trial count n = 10 · k for k = 1.0. Record the tripartite count vectors (X_1, X_2, X_3).
Extract counts for category 1 (X_1) and category 2 (X_2). Verify that marginal expectations match E[X_1] = 10 · 0.20 = 2.0 and E[X_2] = 10 · 0.30 = 3.0.
Compute empirical sample covariance Cov(X_1, X_2) = E[X_1 X_2] - E[X_1]E[X_2]. Confirm that the result is strictly negative: Cov(X_1, X_2) = -10 · 0.20 · 0.30 = -0.60.
Increment the trial factor across standardized settings k ∈ {1.0, 2.0, 3.0, 4.0, 5.0, 6.0}, measuring the absolute covariance magnitude |Cov(X_1, X_2)| = 0.060 · (10k).
Fit a linear regression model y = mx to the coordinate pairs (x = k, y = |Cov(X_1, X_2)| / 10). Confirm that empirical slope m = 0.0600 recovers the exact probability product p_1 p_2.
Points are your recorded observations. The solid regression line validates Multinomial Joint Sampling mathematical scaling.
| # | Total Trial Multiplier Factor k (factor) | Absolute Covariance |Cov(X_1, X_2)| (|Cov|) | Trial Factor k | Absolute Covariance |Cov(X_1, X_2)| | Remove |
|---|
No readings yet. Execute a statistical trial and record it.