What it means
Share of observations in category k: divide its count by the total number of observations. Always between 0 and 1.
Components
- sample size
- category/class/variable indices
- absolute frequency
- relative frequency
227 formulas from the Bocconi Statistics 30001 course, each rendered cleanly with a plain-English explanation and a breakdown of what every symbol stands for. Built to help you prepare efficiently and drill until it sticks.
227 results
What it means
Share of observations in category k: divide its count by the total number of observations. Always between 0 and 1.
Components
What it means
The same share expressed on a 0-100 scale; just multiply the relative frequency by 100.
Components
What it means
Counting every category once must return the whole sample: a useful check that no observation was lost or double-counted.
Components
What it means
Shares of all categories must add up to the whole (1). If they don't, a frequency is wrong.
Components
What it means
Length of a grouped interval: upper endpoint minus lower endpoint. Needed whenever classes have unequal size.
Components
What it means
Height of a histogram bar: relative frequency spread over the class width, so unequal classes stay comparable by area.
Components
What it means
Inverting the density: the area of a histogram bar (height x width) is the class's relative frequency.
Components
What it means
Adds up shares from the first class to class k, i.e. the proportion of data at or below that class.
Components
What it means
Function giving the fraction of observations less than or equal to x; the empirical version of a CDF, non-decreasing from 0 to 1.
Components
What it means
The balance point of the data: add all values and divide by how many there are.
Components
What it means
When data are grouped, weight each class value by its count instead of listing all observations.
Components
What it means
Same weighted average written with shares, so it is directly a weighted mean with weights summing to 1.
Components
What it means
Deviations above and below the mean cancel exactly, which is why we square them to measure spread.
Components
What it means
Rearranged mean: knowing the mean and n gives the total. Handy for combining or updating groups.
Components
What it means
Crudest spread measure: distance between largest and smallest value. Very sensitive to outliers.
Components
What it means
Spread of the middle 50% of the data. Robust to outliers, unlike the range.
Components
What it means
Boxplot rule: points below this threshold are flagged as (mild) outliers.
Components
What it means
Boxplot rule: points above this threshold are flagged as (mild) outliers.
Components
What it means
Average squared distance from the population mean, computed over all N units.
Components
What it means
Computationally faster form: mean of squares minus square of the mean.
Components
What it means
Average squared deviation using n-1 (Bessel's correction) so the estimator is unbiased for the population variance.
Components
What it means
Same value from raw sums: sum of squares minus n times the squared mean, divided by n-1.
Components
What it means
Square root of the population variance, back in the original units of the variable.
Components
What it means
Square root of the sample variance; the usual reported measure of spread.
Components
What it means
Relative spread: standard deviation per unit of mean. Lets you compare variability across different scales or units.
Components
What it means
Average product of paired deviations over the population: positive when the two variables tend to move together.
Components
What it means
Mean of the products minus product of the means; faster from raw sums.
Components
What it means
Sample version with n-1 in the denominator, so it is unbiased for the population covariance.
Components
What it means
Raw-sum form of sample covariance, convenient when you are given sums from a table.
Components
What it means
Covariance rescaled by both standard deviations, giving a unit-free measure of linear association in [-1,1].
Components
What it means
Sample version of the correlation coefficient; measures strength and direction of a linear relationship only.
Components
What it means
Correlation can never leave [-1,1]; the extremes mean perfectly linear relationships, 0 means no linear association.
Components
What it means
The most frequent value (or class): pick the category with the highest absolute frequency. A distribution can have more than one mode.
Components
What it means
Sort the data: with an odd n the median is the middle observation, with an even n it is the average of the two central ones.
Components
What it means
For a frequency distribution, the median is the smallest value whose cumulative relative frequency reaches 0.5.
Components
What it means
Inside the class that first passes 50%: start at its lower endpoint and move forward by the missing share divided by the frequency density.
Components
What it means
Same rule as the median, but with thresholds 0.25 and 0.75 on the cumulative relative frequency.
Components
What it means
Interpolate inside the class that first crosses the 25% (or 75%) threshold, using the frequency density of that class.
Components
What it means
Position method on sorted raw data: if the position is not an integer, interpolate between the two neighbouring observations.
Components
What it means
The q-th percentile is the value below which q% of the distribution lies. The median is P_50.
Components
What it means
General definition of a quantile: the smallest value whose cumulative distribution function reaches the level alpha.
Components
What it means
The five values that summarise shape and spread and that a box plot draws.
Components
What it means
With classed data the exact values are unknown, so each class is represented by its midpoint and weighted by its relative frequency.
Components
What it means
When building K equal-width classes, divide the range of the data by the number of classes.
Components
What it means
The PMF: probability that a discrete random variable takes exactly the value x.
Components
What it means
Every probability lies between 0 (impossible) and 1 (certain).
Components
What it means
The PMF must exhaust all possible outcomes, so its values add to 1.
Components
What it means
Cumulative distribution function: probability of being at or below x. Non-decreasing, from 0 to 1.
Components
What it means
Long-run average of X: each value weighted by its probability.
Components
What it means
Expected squared distance from the mean, weighted by probabilities.
Components
What it means
Variance equals the mean of the square minus the square of the mean. Fastest route in most exercises.
Components
What it means
A single trial with two outcomes, success (1) with probability p and failure (0).
Components
What it means
Compact one-line PMF: it returns p at x=1 and 1-p at x=0.
Components
What it means
The expected value of a 0/1 variable is exactly the success probability.
Components
What it means
Variance p(1-p); maximal at p=0.5 (most uncertainty), zero at p=0 or 1.
Components
What it means
A density can never be negative, though it may exceed 1 (it is a density, not a probability).
Components
What it means
The whole area under a density curve equals 1.
Components
What it means
For continuous variables, probability is area under the density between the two limits.
Components
What it means
Accumulated area under the density up to x.
Components
What it means
Interval probability as a difference of CDF values; the standard way to use normal tables.
Components
What it means
Mean of a continuous variable: integral of x weighted by its density.
Components
What it means
Integral version of the average squared deviation from the mean.
Components
What it means
Notation for a bell-shaped variable fully described by its mean and variance.
Components
What it means
The Gaussian bell curve: symmetric around mu, with spread controlled by sigma.
Components
What it means
Converts any normal variable into a standard normal by centring at the mean and scaling by the standard deviation.
Components
What it means
The reference normal with mean 0 and variance 1, the one tabulated in exam tables.
Components
What it means
Going back from z-scale to original units, used to convert critical values into real-world thresholds.
Components
What it means
How many standard deviations an observed value sits above (or below) the mean.
Components
What it means
Turns a z-score back into the original measurement scale, e.g. for percentiles.
Components
What it means
Joint PMF: probability that both variables take the given pair of values simultaneously.
Components
What it means
Expected product of the two centred variables; sign tells the direction of linear co-movement.
Components
What it means
Mean of the product minus product of the means. Almost always the quickest computation.
Components
What it means
Standardized covariance: linear association on a unit-free [-1,1] scale.
Components
What it means
Independence means the joint PMF factorizes into the two marginal PMFs, for every pair.
Components
What it means
Continuous analogue: the joint density is the product of the marginal densities.
Components
What it means
Independence implies zero covariance. Careful: zero covariance alone does NOT imply independence.
Components
What it means
Expectation is linear: it passes through sums and constants regardless of dependence.
Components
What it means
Variance of a combination adds the scaled variances plus twice the covariance term.
Components
What it means
Recovering covariance when you are told the correlation and both standard deviations.
Components
What it means
With independence the covariance term vanishes, leaving only the scaled variances.
Components
What it means
Number of successes in m independent Bernoulli trials, each with success probability p.
Components
What it means
Probability of exactly x successes: count the arrangements, then multiply by the probability of each specific sequence.
Components
What it means
Expected number of successes: trials times success probability.
Components
What it means
Variance of the count of successes; it is largest when p = 0.5.
Components
What it means
A continuous uniform random variable spreads probability evenly over the interval [a, b].
Components
What it means
Cumulative probability grows linearly across the interval.
Components
What it means
The mean sits at the centre of the interval; the variance depends only on its length.
Components
What it means
To get a percentile of a normal variable, take the standard normal quantile and rescale it by the mean and standard deviation.
Components
What it means
The standard normal is symmetric around 0, so opposite-tail quantiles are mirror images.
Components
What it means
For any random variable X and constants a, b, the expected value of the linear transformation Y=a+bX equals a plus b times the expected value of X. Used to derive expected profit/cost from a random quantity.
Components
What it means
Adding a constant a does not change variability; scaling by b multiplies the variance by b squared (and the standard deviation by |b|). Used together with the mean formula to find the distribution of a rescaled random variable, e.g. profit as a function of units sold.
Components
What it means
Any linear transformation of a normally distributed random variable is itself normally distributed, with mean and variance updated by the linear transformation rules. This is the basis for standardization, since Z=(X-\mu)/\sigma is a special case.
Components
What it means
If X and Y have a bivariate (jointly) normal distribution, any linear combination aX+bY is also normally distributed, with mean and variance given by the usual linear-combination formulas. This allows computing probabilities (e.g. via pnorm) for sums or differences of correlated normal variables.
Components
What it means
When X_1,...,X_n are independent and identically distributed as N(mu, sigma^2), their sum is exactly (not just approximately) normal, with mean n times mu and variance n times sigma squared. This is stronger than the CLT, which only gives an approximation for large n.
Components
What it means
By the Central Limit Theorem, for a large number of i.i.d. observations with mean mu and variance sigma squared, the sum S can be approximated by a normal distribution with mean n mu and variance n sigma squared, regardless of the shape of the original distribution. Used to compute probabilities on totals (e.g. total demand across many customers) via pnorm/qnorm.
Components
What it means
S counts the number of successes out of n independent Bernoulli(p) trials; for sufficiently large n (typically n>30, or np(1-p)>5 when p is extreme) its distribution can be approximated by a normal with mean np and variance np(1-p). This complements the normal approximation of the sample proportion already used for confidence intervals and tests.
Components
What it means
Total of the n sampled random variables; the building block of the sample mean.
Components
What it means
Sample average, seen as a random variable before the data are observed.
Components
What it means
On average the sum is n times the population mean.
Components
What it means
With independent draws, variances add, so the sum's variance grows linearly in n.
Components
What it means
The sample mean is an unbiased estimator of the population mean.
Components
What it means
Averaging shrinks variance by a factor n: larger samples give more stable means.
Components
What it means
Standard error: typical sampling error of the mean, falling with the square root of n.
Components
What it means
If the population is normal, the sample mean is exactly normal with variance sigma squared over n.
Components
What it means
Central Limit Theorem: for large n the sample mean is approximately normal whatever the population shape (rule of thumb n>=30).
Components
What it means
Average of 0/1 indicators, i.e. the fraction of successes in the sample.
Components
What it means
The sample proportion is unbiased for the population proportion p.
Components
What it means
Bernoulli variance divided by n; smallest for p near 0 or 1.
Components
What it means
Standard error of a proportion, used when the true p is known or hypothesized.
Components
What it means
Plug-in standard error using the observed proportion; used for confidence intervals.
Components
What it means
An estimator is a rule (a function of the random sample) with its own sampling distribution.
Components
What it means
The single number obtained by applying the estimator to the observed data.
Components
What it means
Unbiasedness: on average across samples the estimator hits the true parameter.
Components
What it means
Systematic error of an estimator: expected value minus the true parameter.
Components
What it means
Bias may exist for small n but vanishes as the sample grows.
Components
What it means
Overall accuracy measure: expected squared distance between estimator and parameter.
Components
What it means
MSE splits into variance plus squared bias, the trade-off behind estimator choice.
Components
What it means
Dividing by n-1 makes the variance estimator unbiased.
Components
What it means
Confirms the n-1 version is unbiased for the population variance.
Components
What it means
Dividing by n instead; simpler but biased downward.
Components
What it means
Shows the downward bias factor (n-1)/n, negligible for large n.
Components
What it means
Standard error with sigma replaced by s; this is why the t distribution appears.
Components
What it means
Solve for n to reach a desired precision (standard error) of the mean.
Components
What it means
Estimator for the gap between two population means from two independent samples.
Components
What it means
Unbiased: the expected difference of sample means is the difference of population means.
Components
What it means
With independent samples variances add, each divided by its own sample size.
Components
What it means
Weighted average of the two sample variances, used when the populations share a common variance.
Components
What it means
For matched data, work with the within-pair difference instead of two separate samples.
Components
What it means
The mean of the differences equals the difference of the means.
Components
What it means
Pairing subtracts twice the covariance: positive correlation makes the paired design more precise.
Components
What it means
Standard error of the mean difference: a one-sample problem on the D values.
Components
What it means
Estimator for the gap between two population proportions.
Components
What it means
Sum of the two independent proportion variances.
Components
What it means
For a large enough sample the sample proportion is approximately normal, which is what makes z intervals and z tests for proportions valid.
Components
What it means
A random interval that covers the unknown parameter with probability 1-alpha across repeated samples.
Components
What it means
Every interval in this course has the same shape: an estimate plus/minus a margin of error.
Components
What it means
Half-width of the interval: a critical value (reliability factor) times the standard error.
Components
What it means
When sigma is known the standardized sample mean is exactly standard normal.
Components
What it means
Interval for mu with known sigma; uses the normal critical value (1.96 for 95%).
Components
What it means
Margin of error for the mean with known sigma; shrinks like 1/sqrt(n).
Components
What it means
Full width is twice the margin of error: quadrupling n halves the width.
Components
What it means
Choose n to guarantee a target margin of error; always round up.
Components
What it means
With sigma unknown, replacing it by S gives a t distribution with n-1 degrees of freedom.
Components
What it means
The usual interval for mu in practice: sample mean plus/minus t critical value times s/sqrt(n).
Components
What it means
Large-sample interval for p using the plug-in standard error.
Components
What it means
p(1-p) is largest at p=0.5, giving the worst-case value 0.25 used for conservative planning.
Components
What it means
Worst-case sample size for a proportion when no prior guess for p is available.
Components
What it means
Interval for the difference of two means when both variances are known: normal critical value.
Components
What it means
Two-sample t interval assuming equal variances, with n_X+n_Y-2 degrees of freedom.
Components
What it means
Paired-data interval: a one-sample t interval applied to the differences.
Components
What it means
Large-sample interval for the difference of two proportions, standard errors added under independence.
Components
What it means
Rejecting a true null; its probability is the significance level alpha you choose in advance.
Components
What it means
Failing to reject a false null; its probability beta depends on the true parameter value and n.
Components
What it means
Probability of correctly detecting a false null. Power rises with n, effect size and alpha.
Components
What it means
The null hypothesis fixes the parameter at a specific value used to build the test statistic.
Components
What it means
One-sided alternative claiming the parameter is larger; rejection in the right tail only.
Components
What it means
One-sided alternative claiming the parameter is smaller; rejection in the left tail only.
Components
What it means
Two-sided alternative: any departure counts, so alpha is split across both tails.
Components
What it means
Test statistic for the mean with known sigma; standard normal under the null.
Components
What it means
The number actually computed from the data and compared with the critical value.
Components
What it means
Reject the null in a right-tailed test when the observed z exceeds the upper critical value.
Components
What it means
Reject in a left-tailed test when the observed z falls below the negative critical value.
Components
What it means
Reject in a two-sided test when the magnitude of z exceeds the alpha/2 critical value.
Components
What it means
Probability, under the null, of a value as extreme or more extreme on the right.
Components
What it means
Same idea on the left tail; reject when the p-value is below alpha.
Components
What it means
Doubling the one-tail probability because departures in both directions count.
Components
What it means
Test statistic for the mean with unknown sigma; follows a t with n-1 degrees of freedom.
Components
What it means
Computed t value using the sample standard deviation, compared with a t critical value.
Components
What it means
Proportion test: uses the null value p0 (not the sample p) inside the standard error.
Components
What it means
Combined success rate over both samples, valid under the null of equal proportions.
Components
What it means
Two-proportion z test with the pooled proportion in the standard error.
Components
What it means
Expected count in each category under the null distribution: n times the hypothesized share.
Components
What it means
Adds squared, relatively-weighted gaps between observed and expected counts. Large values contradict the null.
Components
What it means
Under the null the statistic is approximately chi-square with K-1 degrees of freedom; the test is always right-tailed.
Components
What it means
Expected cell count under independence: row total times column total divided by n.
Components
What it means
Same chi-square logic summed over all table cells to test independence of two categorical variables.
Components
What it means
Degrees of freedom for a K x J contingency table.
Components
What it means
With a big sample you can replace the unknown sigma by s and still use standard normal critical values instead of the t.
Components
What it means
A two-tailed test at level alpha and the corresponding 1-alpha confidence interval always give the same answer.
Components
What it means
When the null difference d0 is not zero you cannot pool the proportions: estimate each standard error separately.
Components
What it means
Gives the critical value and p-value rule for the chi-square goodness-of-fit test: the test is always right-tailed since large discrepancies between observed and expected frequencies produce large chi-square values. Requires E_k \ge 5 for the chi-square approximation to hold.
Components
What it means
Critical value and p-value rule for the chi-square test of independence in a contingency table with K rows and J columns. As with the goodness-of-fit test the rejection region is always in the right tail of the chi-square distribution.
Components
What it means
Population model: Y is a linear function of x plus a random error term.
Components
What it means
The model written for a single observation i, each with its own error.
Components
What it means
Fitted line from the data, giving predicted values for any x.
Components
What it means
What the model missed for observation i: observed minus fitted value.
Components
What it means
Ordinary Least Squares picks the line minimizing the sum of squared residuals.
Components
What it means
Unexplained variation: the total squared vertical distance from points to the fitted line.
Components
What it means
OLS slope as a ratio of the x-y co-movement to the variation in x.
Components
What it means
Equivalent form: sample covariance divided by the variance of x.
Components
What it means
Slope equals the correlation rescaled by the ratio of standard deviations.
Components
What it means
The fitted line always passes through the point of means, which pins down the intercept.
Components
What it means
Total variation in Y around its mean, the benchmark to be explained.
Components
What it means
Variation captured by the model: spread of fitted values around the mean of Y.
Components
What it means
Total variation splits exactly into explained plus unexplained parts.
Components
What it means
Fraction of the variation of Y explained by the model; between 0 and 1.
Components
What it means
In simple regression only, R squared is the squared correlation between x and y.
Components
What it means
Model assumption: errors average out to zero, so the line is correctly centred.
Components
What it means
Homoskedasticity: the error spread is the same at every value of x.
Components
What it means
Normality of errors is what justifies the t and F inference on the coefficients.
Components
What it means
Combining the assumptions: for a given x, Y is normal around the regression line.
Components
What it means
Slope precision improves with less noise and with more spread-out x values.
Components
What it means
Estimator of the error variance in simple regression; n-2 because two coefficients were estimated.
Components
What it means
Typical size of a prediction error, in the units of Y.
Components
What it means
Estimated standard error of the slope, the denominator of its t test.
Components
What it means
Confidence interval for the true slope with n-2 degrees of freedom.
Components
What it means
Tests whether the slope differs from a hypothesized value; with 0 it tests significance of x.
Components
What it means
Point prediction from the fitted line at a chosen x value.
Components
What it means
Uncertainty about the average Y at x; smallest at the mean of x.
Components
What it means
Wider than for a mean because it also includes the individual error term (the extra 1).
Components
What it means
Model with several explanatory variables; each coefficient is a partial effect holding the others fixed.
Components
What it means
Penalizes extra regressors, so it can fall when a useless variable is added.
Components
What it means
Error variance estimator with n-K-1 degrees of freedom for K regressors.
Components
What it means
t test for one coefficient in multiple regression, other variables held constant.
Components
What it means
Confidence interval for one coefficient in multiple regression.
Components
What it means
Tests all slopes jointly zero: explained variance per regressor over unexplained variance per degree of freedom.
Components
What it means
Equivalent F expressed through R squared, handy when only R squared is reported.
Components
What it means
Binary indicator coding a qualitative condition; its coefficient shifts the intercept.
Components
What it means
With three categories you include two dummies; the omitted one is the baseline.
Components
What it means
Adding a squared term allows a curved (non-linear) effect while staying linear in the parameters.
Components
What it means
A further OLS assumption: errors of different observations are uncorrelated, so no observation's error predicts another's.
Components
What it means
Rule of thumb in multiple regression: strongly correlated explanatory variables inflate coefficient standard errors and make them unreliable.
Components
What it means
Confidence interval for the expected value of Y at a given value x_g of the explanatory variable in simple linear regression. It quantifies uncertainty about the average response, and is narrower than the interval for an individual prediction.
Components
What it means
Prediction interval for a single future/individual value of Y at x_g. It is wider than the confidence interval for the mean because it also accounts for the random deviation of an individual observation from the conditional mean.
Components
What it means
The leverage h_i measures how far x_i is from the mean of the explanatory variable relative to its spread; observations with high leverage have more potential influence on the fitted regression line.
Components
What it means
This is the residual divided by its own estimated standard deviation, which depends on the leverage h_i of the observation. It is used in residual diagnostics (e.g., via rstandard()) to spot outliers more accurately than raw or simply-scaled residuals.
Components
What it means
The residual scaled by the overall residual standard error, used as a quick way to identify unusually large residuals when assessing model fit and checking for outliers.
Components
Every letter used in the sheet, and what it stands for.