Orthogonal Series Density Estimation
Orthogonal series density estimation writes a density on an interval as a sum of simple waves (here cosine functions) and estimates each wave's weight by a sample average. The number of waves controls smoothness and is chosen to minimise the estimated mean integrated squared error.
직교급수 밀도추정은 구간 위의 밀도를 단순한 파동(여기서는 코사인 함수)의 합으로 나타내고, 각 파동의 가중치를 표본 평균으로 추정하는 방법입니다. 파동의 개수가 매끄러움을 정하며, 추정된 평균적분제곱오차가 가장 작도록 개수를 고릅니다.
What is the shape of the distribution of a variable on a known interval, estimated with a small number of interpretable smooth components?
정해진 구간 안에 있는 변수의 분포 모양을 해석하기 쉬운 몇 개의 매끄러운 성분으로 추정하면 어떻게 될까요?
The data are rescaled to the unit interval and each cosine coefficient is the sample mean of the corresponding cosine function. A term is worth keeping when its squared coefficient exceeds twice its estimated sampling variance; the number of terms that minimises the cumulative estimated error is selected. Negative parts, if any, are set to zero and the estimate renormalised.
When to use Orthogonal Series Density Estimation
- The variable lives on a known bounded interval, such as proportions or scores with fixed limits.
- You want a compact density estimate described by a few coefficients.
- You need a fast, closed-form estimate for large samples.
When to use something else
- The density is steep or non-zero at the interval ends: use Local Polynomial Density Estimation
- The variable is unbounded with long tails: use Log-Spline Density Estimation
- A quick general-purpose smooth is enough: use Kernel Density Estimation
Assumptions and requirements
- Independent draws from a continuous density on the stated interval
- Density smooth enough to be captured by a moderate number of cosine terms
What the analysis reports
- Selected number of terms and the selection criterion
- Cosine coefficients with standard errors and risk increments
- Density curve with fitted mean and SD
How to report it
A cosine series density estimate for [value] on [[value], [value]] retained [value] terms by the estimated mean integrated squared error (N = [value]).
Related methods
- Kernel Density Estimation
- Local Polynomial Density Estimation
- Log-Spline Density Estimation
- Frequency Distribution and Histogram Binning
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-10.
독립 계산. 직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과(허용오차 1e-10).
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 Orthogonal Series Density Estimation on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable
- Price
- 250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 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.