Kernel Density Discriminant Analysis
Kernel discriminant analysis classifies observations with Bayes' rule using nonparametric density estimates. For each class a multivariate Gaussian kernel density is estimated with a bandwidth matrix proportional to the class covariance, and each observation is assigned to the class with the largest prior-weighted density. Because no normality is assumed, class boundaries can be curved and classes can be multimodal. Accuracy is reported both on the training data and by exact leave-one-out.
커널 판별분석은 비모수 밀도추정치를 베이즈 규칙에 넣어 관측을 분류합니다. 집단마다 집단 공분산에 비례하는 대역폭 행렬로 다변량 가우스 커널 밀도를 추정하고, 사전확률을 곱한 밀도가 가장 큰 집단에 각 관측을 배정합니다. 정규성을 가정하지 않으므로 경계가 휘거나 집단 분포가 여러 봉우리를 가져도 됩니다. 정확도는 학습 자료에서와 정확한 하나 빼기 교차검증으로 함께 보고합니다.
How well can the classes be separated by these features when no particular distribution is assumed within each class?
집단 안의 분포를 특정하지 않을 때 이 특성들로 집단을 얼마나 잘 가를 수 있습니까?
You get the leave-one-out and resubstitution accuracy, a leave-one-out confusion matrix, accuracy per class, the priors and bandwidth factors used, and posterior class probabilities.
When to use Kernel Density Discriminant Analysis
- Class distributions are clearly non-normal, skewed or multimodal.
- Linear or quadratic discriminant analysis gives poor or implausible boundaries.
- There are few features (up to about five) and enough observations per class.
When to use something else
- Classes are roughly normal with a common covariance: use Linear Discriminant Analysis
- Classes are normal with different covariances: use Quadratic Discriminant Analysis
- Many features are available: use K-Nearest Neighbors (KNN)
Assumptions and requirements
- Independent observations
- Enough observations per class for a density estimate (at least about 10 per feature)
- Features are continuous and share the class covariance shape locally
What the analysis reports
- Leave-one-out and resubstitution accuracy
- Leave-one-out confusion matrix and per-class accuracy
- Priors and bandwidth factor per class
- Mean largest posterior probability
How to report it
Kernel discriminant analysis with [value] features classified [value]% of cases correctly under leave-one-out cross-validation (resubstitution [value]%).
Common variants
자주 쓰는 설정
The same analysis with settings already chosen. Each runs Kernel Density Discriminant Analysis itself, at the same price.
- Kernel discriminant analysis with Epanechnikov kernel — kernel set to “epanechnikov”
- Kernel discriminant analysis with uniform kernel — kernel set to “uniform”
- Kernel discriminant analysis with biweight kernel — kernel set to “biweight”
- Kernel discriminant analysis with triweight kernel — kernel set to “triweight”
Related methods
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with SciPy at a stated tolerance of 1e-10.
독립 계산. SciPy 대조 참조 시험 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 Kernel Density Discriminant Analysis on Quorant
- Data you need
- a table (CSV or Excel) with predictor (feature) columns and a grouping 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.