Log-Spline Density Estimation
Log-spline density estimation models the logarithm of a density as a natural cubic spline, so the estimate is always positive and integrates to one. The spline is linear beyond the outermost knots, which gives exponential tails, and the number of knots is chosen from the data.
로그 스플라인 밀도추정은 밀도의 로그를 자연 3차 스플라인으로 모형화해, 추정치가 항상 양수이고 적분하면 1이 되도록 하는 방법입니다. 바깥쪽 매듭 밖에서는 스플라인이 직선이 되어 꼬리가 지수적으로 줄어들며, 매듭 수는 자료로 정합니다.
What is the shape of the distribution of this variable, as a smooth genuine density, including its tails, mode, mean and spread?
이 변수의 분포를 꼬리와 최빈값, 평균, 퍼짐까지 포함한 매끄러운 진짜 밀도로 나타내면 어떤 모양일까요?
Knots are first placed at quantiles of the data and the spline coefficients are estimated by maximum likelihood. Knots are then removed one at a time, each time dropping the one whose removal costs the least likelihood, and the model with the best penalised likelihood (a penalty of log n per parameter by default) is kept. The fitted density, its mean, standard deviation, median and mode, and the deletion path are reported.
When to use Log-Spline Density Estimation
- You want a smooth density estimate that is a proper probability density with sensible tails.
- The distribution may be skewed or have several modes and a parametric family does not fit.
- You need summaries such as the mode or tail behaviour from a fitted density.
When to use something else
- You need pointwise confidence intervals or behaviour at a hard boundary: use Local Polynomial Density Estimation
- A single parametric family is believed to fit: use Probability Plots for Fitted Distributions (Q-Q and P-P)
- Only a quick visual smooth is needed: use Kernel Density Estimation
Assumptions and requirements
- Independent draws from a continuous density
- Log density smooth with roughly exponential tails
- Known support bounds supplied when the variable is bounded
What the analysis reports
- Fitted density curve
- Selected number and position of knots with the deletion path
- Log-likelihood and penalised criterion
- Mean, SD, median and mode of the fitted density
How to report it
A log-spline density estimate for [value] selected [value] knots by stepwise deletion (BIC penalty; log-likelihood = [value]); the fitted density had mean [value], SD [value] and mode [value] (N = [value]).
Related methods
- Kernel Density Estimation
- Local Polynomial Density Estimation
- Maximum Entropy Distribution
- Orthogonal Series Density Estimation
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with reference values computed independently in the test suite at a stated tolerance of 1e-6.
독립 계산. 시험에서 따로 계산한 참조값 대조 참조 시험 1건 통과(허용오차 1e-6).
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Log-Spline Density Estimation on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable
- Price
- 400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.