전체 글 43

Linear methods for classification - LDA, QDA, RDA

input space -> use linear decision boundaries -> labeled regionsEx) 1~K의 클래스가 존재한다.k번째 클래스를 분류하는 변수, 함수가 fk(x) 라면 fk(x)=bk0+bk^Tx이다. k, l번째 클래스 사이에서 분리 -> fk(x)=fl(x), (bk0-bl0) + (bk-bl)^T x=0 의 affine set, hyperplane이 존재해야 한다. => 이를 위해, x를 특정 클래스로 분류하기 위해서 discriminant function, dk(x) 함수를 이용한다. 위의 식은 x 열벡터와 y 열벡터 사이에서 최적의 계수 행렬인 B를 적합하기 위한 식이다. y_true-y_pred의 제곱의 합이 최소가 되게 하는 B를 찾는 것이므로 MSE를 사..

머신러닝 2026.02.02

Bootstrap in machine learning

[The Elements of Statistical Learning] Bootstrap: Computational way to assess uncertainty.Ex) To fit a cubic spline to the data, we represent seven dimensional linear space (7-spline basis functions)N개의 datapoint, 7개의 함수(다변수라고 생각) -> H[N,7] -> b는 7개의 함수를 더할 때 함수별 가중치를 포함한 행렬 -> b=(H^T H)^(-1) H^T y => bootstrap distribution 이용해서 spline smooth 계산 (95% CI) 1)Parametric bootstrap: gaussian noise + ..

머신러닝 2026.01.19