EconStatsCraft › Descriptive statistics

Descriptive statistics

Means, dispersion, skewness, Jarque–Bera normality, a starred correlation matrix and distribution plots. Always run this first.

What it needs

The intuition

Every statistic here is a different question about the same cloud of numbers. The mean asks where the cloud sits, the standard deviation how wide it is, skewness whether it leans, kurtosis whether the tails are heavy. Correlation asks whether two clouds move together. None of them asks why, which is the whole reason the rest of econometrics exists.

When to use it

Always, before anything else. Every regression you run rests on what these numbers show, and half the mistakes in student projects are visible here - a variable that is 90% zeros, an impossible negative age, a wage of 10 million.

Where the estimator comes from

The sample mean is the value that minimises the sum of squared deviations: \bar{x}=\arg\min_c \sum_i (x_i-c)^2. The median minimises absolute deviations, \arg\min_c \sum_i |x_i-c|, instead. That single difference - squares versus absolutes - is why the mean is dragged by outliers and the median is not, and it reappears later as the difference between OLS and quantile regression.

The model

\bar{x}=\frac{1}{n}\sum_{i=1}^{n}x_i \qquad s^{2}=\frac{1}{n-1}\sum_{i=1}^{n}(x_i-\bar{x})^{2} \qquad r_{xy}=\frac{\operatorname{cov}(x,y)}{s_x s_y}

What it assumes

Statistical properties

How to read the output

A worked reading

Mean log wage 2.3565 with a standard deviation of 0.4532 and skewness 0.0912 - close enough to symmetric that Jarque-Bera does not reject (p = 0.4337). Because the variable is already in logs, exp(2.3565) is the GEOMETRIC mean wage - a little over ten currency units, not the arithmetic one, and the distinction matters the moment you report levels: the arithmetic mean of the wages themselves is higher, because exponentiating is convex. Two other columns repay attention. Experience is visibly skewed (0.8882) with Jarque-Bera at 185.8, so its mean of 15.86 sits above its median of 14.6. And the female indicator has a "kurtosis" of 1.0070 and a JB of 200 purely because it is binary - normality statistics on a 0/1 column describe the fact that it is binary, not a problem with the data, and reading them as a diagnostic is a common and harmless-looking mistake.

Symptom → diagnosis → what to do

If you see thisIt meansDo this
Mean far above medianRight-skewed, a long upper tailTake logs; report the median alongside
Excess kurtosis above 3Fat tails - extreme values more common than NormalRobust standard errors; consider Student-t
One variable has far fewer observationsMissing data concentrated in that columnCheck whether it is missing at random before dropping rows
|r| > 0.9 between two regressorsNear-collinearityDrop one, combine into an index, or accept wide intervals
Zero correlation but obvious pattern in the scatterThe relationship is non-linearAdd a squared term, or use logs

Common mistakes

Where to read this properly

See also

Run Classical statistical tests to compare groups formally, and OLS once you want to hold other variables constant.

Related Explore

Summary by group · Two-way table · Classical statistical tests

All analyses

Charts

Line chart · Area chart · Bar chart · Stacked bar · Scatter plot · Bubble chart · Histogram · Box plot · Pie chart · Heat map · Rebased to 100 · Lorenz curve and Gini

Maps

World map · Bivariate map · Flow map · India - state map · India - district map

Explore

Descriptive statistics · Summary by group · Two-way table · Classical statistical tests

Regression

Multiple regression (OLS) · Logit / Probit · Tobit (censored) · Truncated regression · Multinomial logit · Ordered logit / probit · Quantile regression · Poisson / Negative binomial

Time series - one series

Time-varying coefficients (Kalman) · Unit root tests · Correlogram (ACF / PACF) · ARIMA / SARIMA · Rolling-origin cross-validation · Theta method · Unobserved components · STL forecasting · Forecast combination · Markov regime switching · Change frequency (resample) · ARCH / GARCH volatility · Decompose & filter · Spectral analysis · Exponential smoothing · Forecast accuracy

Time series - several series

Yield curve (Nelson–Siegel / Svensson) · Dynamic factor model · Dynamic regression (ARIMAX) · Structural VAR · VAR · Granger causality · Cointegration · VECM · ARDL & bounds test

Panel data

Panel regression · Panel cointegration tests · Heterogeneous panel: Mean Group & PMG · Gravity model of trade · Dynamic panel GMM · Panel diagnostics · Panel unit-root tests

Multivariate statistics

Principal components (PCA) · Factor analysis · Cluster analysis

Marketing research

Conjoint analysis · MaxDiff (best–worst scaling) · TURF - reach of a product line · Price sensitivity (Van Westendorp) · Market basket analysis · Perceptual map · Scale reliability (Cronbach’s alpha) · Key driver analysis

Causal

Spatial autocorrelation · Spatial regression · Heckman selection · Instrumental variables (2SLS) · Difference-in-differences · Staggered difference-in-differences · Regression discontinuity · Matching & weighting · Oaxaca–Blinder decomposition

Finance & risk

Black–Scholes option pricing · Bond price, duration & convexity · Merton distance to default · EMI / home loan planner · CAPM / beta estimation · Multi-factor model · Portfolio optimization · Value at Risk & Expected Shortfall · Performance & drawdown · Time value of money & NPV/IRR · Equity valuation (DDM, FCF, residual income) · Cost of capital (WACC) · Binomial option pricing · Option strategies (payoff & profit) · Forwards, futures & swaps · Credit risk & Basel capital · Extreme value theory (tail risk)

Actuarial

Life table · Life annuity · Life insurance pricing · Chain ladder reserving · Buhlmann credibility · Survival analysis · Mortality graduation · Aggregate loss model · Ruin probability · Multi-state Markov model · Loss severity fitting

Tests & breaks

Monte Carlo experiment · F-test, Wald & Chow · Structural breaks & stability

Machine learning

Regression vs machine learning · Ridge / Lasso / Elastic Net · Random forest · Gradient boosting

Open the workspace →

Starting engine…

EconStatsCraft rigorous, plain-spoken econometrics

Econometrics that explains itself.

Regression, panel data, time series and the whole battery of tests. Every result is followed by a verdict you can defend.

Load a dataset to see it here.