Statistics & probability

Multivariate Student t distribution fit calculator from vector observations

Estimate a joint location, positive-definite scatter matrix and finite degrees of freedom for two- or three-dimensional Student observations.

Your numbers

30–200 independent rows, two or three finite coordinates per row.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Estimate a joint location, positive-definite scatter matrix and finite degrees of freedom for two- or three-dimensional Student observations. Distinguish scatter from covariance and check moment existence.

THE FORMULAf(x)=Γ((ν+p)/2)/[Γ(ν/2)(νπ)^(p/2)|Σ|^(1/2)]·[1+(x−μ)ᵀΣ⁻¹(x−μ)/ν]^(−(ν+p)/2); Cov=νΣ/(ν−2) if ν>2.

A worked example

Ninety displayed synthetic vectors give location [1.204418306, −1.987377756], scatter [[2.255363731,1.013070168],[1.013070168,1.698122726]] and degrees of freedom 5.090893628.

Good to know

30–200 independent complete vectors in 2–3 dimensions, finite coordinates within ±10⁶, full-rank sample covariance. Standardized local MLE using three starts and Cholesky scatter; 0.5<ν<150, standardized parameters within ±8, boundaries and nonpositive local curvature rejected. Scatter differs from covariance; mean undefined for ν≤1 and covariance undefined for ν≤2. No regression, skewness, censoring, intervals, quantiles or global-optimum certificate.

Fit joint heavy-tailed observations

A multivariate Student distribution describes complete numeric vectors sharing a location and an elliptical scatter structure. Its heavy tails can reduce the influence of unusually distant observations relative to a Gaussian fit. The fit treats the vector as a joint observation rather than fitting each column separately.

Cross-coordinate dependence matters: an observation that looks ordinary in each marginal coordinate can still be unusual relative to a narrow diagonal cloud. Joint scatter records that orientation. Independent univariate fits cannot recover the ellipse or evaluate the complete multivariate density used by this likelihood.

Joint Student scatter among the observed vectorsSecond coordinateFirst coordinate-507-1103
Scroll across to see the full diagram.
Points are the ninety input vectors. The blue ellipse has Mahalanobis scatter radius one; it is not a 95% region or covariance ellipse. Green marks fitted location.

Compare this with the Student t location scale and degrees of freedom fit calculator. Estimate a joint location vector,scatter matrix and degrees of freedom,which a univariate location-scale fit cannot provide.

Supply complete vector rows

Enter thirty through two hundred observations with two or three coordinates in a consistent order. All entries must be finite and the ordinary sample covariance must have full rank. Missing coordinates, interval censoring and repeated correlated records require a different analysis rather than filling empty cells with zeros.

Coordinate units can differ, but sensible scaling helps numerical fitting. Internally each coordinate is centered and scaled before optimization; location and scatter are transformed back for display. That transformation includes the likelihood's scale Jacobian, so the reported likelihood corresponds to the original entered measurement units.

Keep scatter separate from covariance

The density uses a positive-definite scatter matrix and a degrees-of-freedom parameter nu. For nu greater than two, covariance equals scatter multiplied by nu divided by nu minus two. Consequently the scatter diagonal is not automatically the marginal variance, even when the location resembles an ordinary sample mean.

Location equals the population mean only when nu exceeds one. Covariance does not exist when nu is at most two. The interface explicitly reports those qualifications instead of manufacturing a finite variance from the scatter matrix. A fitted heavy-tail parameter controls existence of moments as well as tail thickness.

Follow the supplied bivariate example

The ninety default vectors are synthetic correlated heavy-tailed observations. Their fitted location is approximately 1.204418 and minus 1.987378. The estimated scatter has diagonal entries approximately 2.255364 and 1.698123 with off-diagonal entry 1.013070, giving a positively tilted joint density.

Estimated degrees of freedom are approximately 5.090894. Multiplying scatter by nu divided by nu minus two yields covariance diagonals approximately 3.714724 and 2.796914. Reporting the scatter entries as variances would understate spread in this example, even though both matrices describe the same fitted distribution.

Understand the numerical parameterization

The scatter is constructed as a lower-triangular Cholesky factor multiplied by its transpose. Diagonal factors are exponential parameters, ensuring positive definiteness during ordinary search steps. The likelihood combines the log determinant and a logarithmic function of squared Mahalanobis distance, with gamma terms depending on dimension and nu.

Three deterministic starts use different initial tail parameters. The best converged fit must pass score and positive local-curvature checks. These diagnostics support a finite local optimum; they do not prove a unique global maximum or that the Student family adequately describes multimodal or skewed observations.

Interpret rejected or extreme fits

Degrees of freedom are bounded between 0.5 and 150, with boundary solutions rejected. A cloud that is effectively Gaussian may prefer an indefinitely large tail parameter and therefore fail the finite interior requirement. That failure is more honest than presenting the upper bound as a precisely estimated degree of freedom.

Exactly collinear coordinates cannot identify a full-dimensional scatter matrix. Near collinearity can also produce unacceptable conditioning. Check measurement redundancy and units before deleting rows or adding arbitrary noise. The numerical bounds on standardized location and Cholesky parameters limit extreme shapes that would otherwise destabilize the browser calculation.

Use the result with appropriate diagnostics

This is a location-scatter distribution fit, with no predictors, mixture components or automatic outlier removal. A Student model can accommodate some large distances but does not justify discarding scientific anomalies. Examine projected data, dependence and whether observations are plausibly independent before using its fitted density for later work.

No standard errors, confidence ellipses, quantiles or prediction regions are returned. The output distinguishes distribution parameters and moment status and provides the fitted negative log likelihood. An affine change of measurement units should transform location and scatter accordingly while leaving nu unchanged within numerical optimization tolerance.

A few questions, answered

Is scatter the covariance matrix?

Only after multiplying by nu/(nu−2), when nu>2. For nu≤2 covariance is undefined even though the scatter matrix is finite and positive definite.

Why fit the coordinates together?

Joint fitting estimates cross-coordinate scatter and Mahalanobis distances. Separate marginal fits cannot recover the dependence structure of a multivariate Student density.

What if fitted nu approaches 150?

The finite search may be approaching a Gaussian limit or insufficiently identified tail parameter. Boundary fits are rejected rather than treating 150 as a precise estimate.

Are unusual observations removed?

No. Every input vector remains in the likelihood. A heavy-tailed model changes their influence through the density but does not delete or label them as errors.

Find your calculator

Start typing to explore the library.