Statistics formula solvers
All 73 categories, 1,930 solvers
Addition Rule (Mutually Exclusive Events)
ProbabilityStatisticsFor events that cannot both happen, the chance that either one occurs is simply the sum of their separate probabilities.
Bayes' Theorem (Two Hypotheses)
ProbabilityStatisticsUpdates a prior belief into a posterior after evidence arrives, weighing the true-positive rate against the false-positive rate.
Beverton-Holt Stock-Recruitment Curve
Ecology & BiodiversityStatisticsThe second classic curve for how many young fish join a population (recruits, R) from the number of parents that spawned (S). At low numbers each spawner produces about a recruits; as the stock grows, competition for food and space between the young slows the gain, and recruitment levels off toward a ceiling of a / b without ever falling. Half the ceiling is reached at S = 1/b. Beverton and Holt derived it in 1957 from a model of crowded young fish, and it is the usual choice for cod, flatfish and other fish whose recruitment holds steady at high stock. It is the Beverton-Holt population model written the fisheries way: with a growth factor R0 per generation and M the stock at which crowding halves it, a = R0 and b = 1/M.
Binomial Distribution Mean
ProbabilityStatisticsExpected number of successes across n independent trials that each succeed with probability p: the mean of the binomial distribution.
Binomial Distribution Variance
ProbabilityStatisticsSpread of the number of successes across n independent trials, at its largest when the per-trial chance p sits at one half.
Binomial Probability
ProbabilityStatisticsChance of exactly k successes in n independent trials that each succeed with the same fixed probability p, as with coin tosses.
Birthday Problem (All Distinct)
ProbabilityStatisticsChance that n independent picks from N equally likely options are all different, the engine behind the birthday paradox.
Chance of Meeting a Target Number on One Die
Games & RatingsStatisticsThe chance that a single fair die of d faces shows at least the target number t. Counting the faces that succeed is the whole derivation: there are d − t + 1 of them, and the plus one is the step everybody drops the first time.
Chebyshev's Inequality
StatisticsAlgebraThe least possible fraction of ANY data set lying within k standard deviations of its mean: no bell curve assumed, no shape assumed at all. At k = 2 it guarantees three quarters.
Chi-Square Contribution of One Cell
StatisticsAlgebraHow much a single cell of a contingency or goodness-of-fit table adds to the chi-square statistic, from its observed and expected counts.
Classical Probability
ProbabilityStatisticsProbability of an event as the number of favourable outcomes divided by the total number of equally likely outcomes.
Coefficient of Determination (R²)
StatisticsAlgebraThe share of variation in y explained by a simple linear regression, obtained by squaring the correlation coefficient.
Coefficient of Variation
StatisticsAlgebraRelative variability: the standard deviation expressed as a fraction of the mean, so spreads measured on different scales can be compared.
Cohen's d (Effect Size)
StatisticsAlgebraStandardised effect size: the gap between two group means measured in pooled standard deviations rather than raw units.
Complement Rule
ProbabilityStatisticsThe chance an event does not happen is one minus the chance it does, because every trial must end in one case or the other.
Conditional Probability
ProbabilityStatisticsThe chance of A once B is known to have happened, found by rescaling the overlap to the reduced sample space B.
Confidence Interval Lower Limit
StatisticsAlgebraThe lower bound of a confidence interval for a mean, pulling the critical z-value and standard error back from the sample mean.
Confidence Interval Upper Limit
StatisticsAlgebraThe upper bound of a confidence interval for a mean, adding the critical z-value times the standard error to the sample mean.
Degrees of Freedom (One-Sample t)
StatisticsAlgebraThe degrees of freedom used to look up a critical value for a one-sample t-test or confidence interval, one fewer than the sample size.
Elo Expected Score
Games & RatingsStatisticsThe share of a point a player is expected to take against a given opponent, worked out from the difference between their two ratings alone. Half a point means an even match; the curve rises toward one as the gap grows and never quite reaches it. A 200-point advantage is worth about 0.76, which is the one number most players already carry in their heads.
Elo Rating Change After a Game
Games & RatingsStatisticsThe whole of an Elo update in one line: take the difference between what actually happened and what was expected, multiply by the K-factor, and add it to the old rating. Every point one player gains the other loses, so a closed pool's total rating never changes.
Expected Successes in a Dice Pool
Games & RatingsStatisticsThe average number of dice in a pool of n that meet or beat a target number t. It is the per-die chance multiplied by the number of dice: the binomial mean, arrived at without ever needing the binomial distribution, because expectation adds whether or not the dice are independent.
Expected Sum of Several Dice
Games & RatingsStatisticsThe long-run average total from rolling n identical dice of d faces each. One die averages the midpoint of its faces, and expectation adds, so n of them average n times that, which is why the answer lands on a half whenever the number of dice is odd.
Expected Trials Until First Success
ProbabilityStatisticsAverage number of independent attempts needed before the first success when each attempt succeeds with probability p.
Expected Value of a Bet
ProbabilityStatisticsAverage profit per play of a two-outcome wager that pays W with probability p and costs L the rest of the time, over many plays.
Expected Value of an Exploding Die
Games & RatingsStatisticsThe long-run average of a die that is rolled again and added whenever it lands on its highest face, with the rerolls themselves able to explode without limit. An ordinary six-sided die averages 3.5; the same die exploding averages 4.2, and the whole of that extra 0.7 comes from a geometric series that converges because each further explosion is six times rarer than the last.
Expected Value of the Higher of Two Dice
Games & RatingsStatisticsThe long-run average when two identical dice are rolled and only the larger is kept. On six-sided dice it is 161/36, about 4.47, against 3.5 for a single die: the extra is what an advantage on a roll is actually worth, and it is smaller than most people guess.
Expected Value of the Lower of Two Dice
Games & RatingsStatisticsThe long-run average when two identical dice are rolled and only the smaller is kept. On six-sided dice it is 91/36, about 2.53, against 3.5 for a single die. Added to the average of the higher die it gives exactly d + 1, and that identity is a complete proof that both formulas are correct.
Exponential Smoothing (One Update Step)
StatisticsComputer ScienceThe new smoothed value is a blend of the latest observation and the previous smoothed value: a fraction α of the new reading and the rest of the old. A small α smooths hard and responds slowly, and α = 1 passes the raw data through. It is the running average that forgets old readings geometrically, used to steady a noisy sensor feed or to forecast one step ahead. For readings spaced Δt apart, α = 1 − e^(−Δt/τ) gives a time constant τ.
General Addition Rule
ProbabilityStatisticsThe chance that either of two events happens, correcting the simple sum by subtracting the overlap that would be counted twice.
General Multiplication Rule
ProbabilityStatisticsChance that both events happen when the second depends on the first, as in drawing two cards without replacement from a deck.
Geometric Distribution (First Success)
ProbabilityStatisticsChance that the first success in a run of repeated independent trials arrives exactly on trial number k, after k - 1 failures.
Gini Coefficient from Quintile Shares (Lorenz Curve by Trapezoids)
StatisticsMoney & BusinessThe Gini coefficient worked from the usual published table: the share of the total (income, wealth, land) held by the poorest 20 %, 40 %, 60 % and 80 % of the population. Plotted, those four points and the two ends of the line make the Lorenz curve; the formula joins them with straight lines, finds the area B under the curve by trapezoids, and returns G = 1 - 2B. Because straight lines cut the corners of the true curve, the result sits slightly below the Gini an agency works from the individual records, by about 0.02 to 0.05 for the spreads seen in real incomes: a lognormal spread whose true Gini is 0.48 shows as 0.44 from its fifths. It is the right tool for reading a table of quintile shares, and for checking one.
Gini Coefficient from the Mean Absolute Difference
StatisticsMoney & BusinessHow unevenly something is shared out, as one number from 0 (everyone has the same) to nearly 1 (one person has everything). It is half of the relative mean absolute difference: draw two members of the population at random, take how far apart their amounts are, average that over every possible pair to get the mean absolute difference, and divide by twice the mean. The result is the same Gini coefficient that is defined from the Lorenz curve, and it is the form to reach for when you have the individual values rather than a table of shares. It works for income, wealth, land, energy use, or the catch per boat, so long as nobody's amount is negative.
Glicko Expected Score Against One Opponent
Games & RatingsStatisticsThe Elo curve with the rating difference first shrunk by the opponent's uncertainty. When the opponent's rating is exactly known the two agree; when it is not, this prediction sits closer to an even result, because a rating you cannot trust cannot support a confident forecast.
Glicko g Attenuation Factor
Games & RatingsStatisticsThe factor by which a rating difference is discounted when the opponent's own rating is uncertain. It is one when the opponent is perfectly known and falls toward zero as their rating deviation grows, which is Glicko's way of saying that a prediction can only be as confident as the weaker of the two ratings involved.
Glicko Rating Deviation Growth While Idle
Games & RatingsStatisticsHow the uncertainty attached to a rating grows during a layoff. Glickman's insight was that a rating is a claim with an error bar, and that the error bar widens whenever a player stops producing evidence, so a 1900 who last played eight years ago is a far weaker claim than a 1900 who played last week.
Glicko Rating Update (One Game)
Games & RatingsStatisticsGlicko's replacement for Elo's fixed K-factor: the step size is worked out from how well the rating was already known. A player with a wide rating deviation moves a long way on one result; a player whose rating rests on hundreds of games barely moves at all. The two terms in the denominator are exactly that trade: prior knowledge against the information one game carries.
Hypergeometric Probability
ProbabilityStatisticsChance of drawing exactly k successes in a sample of n taken without replacement from a population of N holding K successes.
Interquartile Range (IQR)
StatisticsAlgebraThe width of the middle half of a data set, from the first quartile to the third, and the spread measure box plots are built on.
Lincoln-Petersen Mark-Recapture Estimate
Ecology & BiodiversityStatisticsPopulation size estimated from two samples: mark M individuals, later catch C, and count how many of those carry a mark. Assumes a closed population, equal catchability and no lost marks. Every one of those failing biases the answer, and the Chapman correction is what small samples actually use.
Log5 Matchup Probability
Games & RatingsStatisticsPredicts a head-to-head result from two win percentages against a common field. A .500 side beats a .400 side exactly 60% of the time, an even pair gives 0.500 whatever their shared strength, and the whole thing is the Bradley-Terry paired-comparison model wearing different clothes.
Logistic Population Growth
Ecology & BiodiversityStatisticsPopulation at time t under density-dependent growth toward a carrying capacity K. Growth is nearly exponential while the population is small, slows through an inflection at K/2, and flattens as the resource runs out.
Margin of Error for a Mean
StatisticsAlgebraHalf-width of a confidence interval for a mean, built from the critical z-value, the standard deviation and the sample size.
Margin of Error for a Proportion
StatisticsAlgebraThe plus-or-minus quoted with a poll result, built from the critical z-value, the sample proportion and the number of respondents.
Median and Quartile Position
StatisticsAlgebraWhich observation in a sorted list is the median or a quartile: the position, counting from the smallest. q = 2 gives the median, q = 1 and q = 3 the lower and upper quartiles.
Midrange
StatisticsAlgebraThe midpoint between the largest and smallest observations, a quick centre estimate computed from just the two extremes.
Most Probable Largest Wave from the Significant Wave Height
Coastal & Ocean WavesWaves & OscillationsStatisticsThe most probable height of the largest wave among N successive waves, when wave heights follow the Rayleigh distribution, from the significant wave height every buoy reports. For about a thousand waves (three hours of 10 s waves) it comes to a little under twice the significant height, which is why a 5 m significant sea can hand a ship a 9 m wave.
Multiplication Rule (Independent Events)
ProbabilityStatisticsWhen one event has no influence on the other, the chance that both occur is the product of their separate probabilities.
Normal Probability Density
StatisticsAlgebraThe height of the normal bell curve at a given value, set by the distance from the mean in standard deviations.
Number of Waves in a Record (Length over the Zero-Crossing Period)
Coastal & Ocean WavesWaves & OscillationsStatisticsHow many waves went past in a record, counted the way an oceanographer counts them: each time the sea surface rises through its mean level is one wave, so in a record of length t with a mean zero-crossing period T_z there are about t over T_z waves. A buoy reports the period of a half-hour record, and this turns it into the number of waves in that half hour, which is the number the largest-wave formula needs: the tallest of N waves is Hs times the square root of half the natural log of N. Use the zero-crossing period (the buoys call it the zero-upcrossing or mean period), not the peak period. The peak period is the one the swell sits at, and it is much longer than the zero-crossing period in a mixed sea, so using it would count far too few waves. A reading from the Rincon buoy on 23 Oct 2026 had a 12.5 s peak period and a 6.8 s zero-crossing period.
Odds and Probability
ProbabilityStatisticsConverts between a probability and odds in favour, the ratio of the chance it happens to the chance it does not.
One-Sample T-Test Statistic
StatisticsAlgebraTests a sample mean against a claimed value when the standard deviation is estimated from the sample itself rather than known.
One-Sample Z-Test Statistic
StatisticsAlgebraTests a sample mean against a claimed population mean when the population standard deviation is known, in standard-error units.
Outlier Lower Fence
StatisticsAlgebraTukey's lower cutoff for outliers: any observation below one and a half interquartile ranges under the first quartile is flagged.
Outlier Upper Fence
StatisticsAlgebraTukey's upper cutoff for outliers: any observation above one and a half interquartile ranges beyond the third quartile is flagged.
Percent Difference
StatisticsAlgebraCompares two measurements of equal standing by dividing their gap by their average, when neither counts as the accepted value.
Percent Error
StatisticsAlgebraHow far a measurement strays from the accepted value, expressed as a fraction of that accepted value for lab reports and calibration checks.
Performance Rating (Linear Approximation)
Games & RatingsStatisticsWhat a player's results in one event were worth, expressed on the rating scale: the average rating of the opponents faced, adjusted by 400 points for every whole point of score above or below an even split. This is the linear form used for quick estimates, and it is an approximation of a definition that is otherwise iterative.
Pielou's Evenness (J′)
Ecology & BiodiversityStatisticsShannon diversity as a fraction of the largest value it could take for that many species, so a community with every species equally abundant scores 1 and a community dominated by one species scores near 0. A proportion, never a count.
Poisson Probability
ProbabilityStatisticsChance of exactly k events in a fixed interval when events occur independently at a constant average rate lambda.
Pooled Standard Deviation
StatisticsAlgebraCombines two sample standard deviations into a single estimate of common spread, weighting each by its degrees of freedom.
Predicted Value from a Regression Line
StatisticsAlgebraReads a prediction off a fitted least-squares line for any chosen value of the predictor, given the intercept and slope.
Probability of At Least One Success
ProbabilityStatisticsChance that at least one of n independent attempts succeeds, found as one minus the chance that every single attempt fails.
Pythagorean Expectation
Games & RatingsStatisticsEstimates the win percentage a team deserved from the points it scored and the points it allowed, rather than from the games it happened to win. Bill James named it for its resemblance to the Pythagorean theorem when the exponent is two; the resemblance is the only thing the two have in common.
Range (Max minus Min)
StatisticsAlgebraThe simplest measure of spread in a data set: the distance from the smallest observation to the largest.
Regression Line Intercept
StatisticsAlgebraThe y-intercept of a least-squares line, fixed by the requirement that the line pass through the point of averages.
Regression Slope from Correlation
StatisticsAlgebraThe least-squares slope of a regression line, recovered from the correlation coefficient and the two standard deviations.
Ricker Stock-Recruitment Curve
Ecology & BiodiversityStatisticsThe classic curve for how many young fish join a population (recruits, R) from the number of parents that spawned (S). At low numbers each spawner produces about a recruits, so the stock grows in proportion; as spawners crowd, eggs and young compete and bury each other's nests, and the factor e to the minus bS pulls recruitment back down. The result is a dome: recruitment peaks at S = 1/b, where it reaches a / (b e), and falls on the far side, so too many spawners can give fewer recruits. W. E. Ricker worked it out for Pacific salmon in 1954 and it is still the usual choice for salmon, shad and other fish whose young suffer from crowding. It is the Ricker population model in the form fisheries scientists write it: with growth rate r and carrying capacity k, a = e^r and b = r/k.
Root-Mean-Square Wave Height from the Significant Wave Height
Coastal & Ocean WavesWaves & OscillationsStatisticsThe square root of the average of the squared wave heights, from the significant wave height a buoy reports. For a sea whose wave heights follow the Rayleigh distribution, the significant height is 4 times the standard deviation of the surface and the root-mean-square height is the square root of 8 times it, so the second is the first over the square root of two. A regular wave of the root-mean-square height carries the same energy as the whole irregular sea, which is why wave-energy formulas written for one wave height are fed this one.
Sample Size for a Mean
StatisticsAlgebraHow many observations a study needs to estimate a mean within a target margin of error at a chosen confidence level.
Sample Size for a Proportion
StatisticsAlgebraHow many respondents a survey needs to estimate a percentage within a target margin of error at a chosen confidence level.
Shannon Diversity Index (H′)
Ecology & BiodiversityStatisticsDiversity of a community of up to four species from their proportional abundances, in nats. It rises with both the number of species and the evenness of their shares, and it is Shannon's information entropy with species where the symbols were.
Simpson's Index of Diversity (1 − D)
Ecology & BiodiversityStatisticsProbability that two individuals drawn at random from a community of up to four species belong to DIFFERENT species. This page returns 1 − D, which rises with diversity; Simpson's own D = Σ pᵢ² is the dominance and runs the opposite way.
Species-Area Relationship (S = cA^z)
Ecology & BiodiversityStatisticsExpected number of species in an area, as a power law fitted to survey data. The exponent z is typically 0.20 to 0.35 for nested samples within a region and 0.25 to 0.45 for true islands; c is a fitted constant whose units depend on z and on the area unit it was fitted in.
Standard Error of a Proportion
StatisticsAlgebraHow much a sample percentage typically wanders from the true population proportion, given the proportion and the sample size.
Standard Error of the Mean
StatisticsAlgebraHow much a sample mean typically wanders from the true mean, shrinking with the square root of the sample size.
Two-Sample Z-Test Statistic
StatisticsAlgebraCompares two independent sample means when both population standard deviations are known, scaled by the combined standard error.
Variance and Standard Deviation
StatisticsAlgebraConverts between variance and standard deviation: the variance is the square of the standard deviation, and the deviation is its square root.
Variance of a Sum of Dice
Games & RatingsStatisticsThe spread of the total from n identical dice of d faces. Because the dice are independent their variances simply add, which is why rolling several small dice gives a much tighter total than rolling one large die of the same average: the classic reason a designer chooses three six-sided dice over one twenty-sided one.
Weighted Mean of Two Groups
StatisticsAlgebraCombines the averages of two groups into one overall mean, weighting each group by how many observations it contains.
Z-Score (Standard Score)
StatisticsAlgebraHow many standard deviations a value sits above or below the mean, turning any measurement into a comparable standard score.