Karl 曹Jun 6, 20227 min readComparison of Ridge Regression and OLS This post will visualize how ridge regression outperforms OLS estimators. The figures and code of this post come from a group work in...
Karl 曹Jun 4, 20224 min readThe Coefficients' Shrinkage Path of Ridge RegressionFor ridge regression, it uses a shrinkage method by adding penalty on estimated coefficients. Usually ridge regression could deal with...
Karl 曹May 21, 20227 min readCompare LDA and Logistic Regression(2)LDA assumes the distribution of x is normal, and it estimates the mean and variance by: and estimates the basic probability of class k...
Karl 曹May 20, 20222 min readCompare LDA and Logistic Regression(1)Here we state the initial setting: We assume we have two classes, call them Class 1 and Class 2, obs. for class 1 is 300, and obs. for...
Karl 曹May 17, 20228 min readCompare the Confidence Intervals' Accuracy between OLS and BootstrapInitial setting: X belongs to a normal distribution, mean at 0 and select some variance sigma^2. Error term belongs to standard normal...
Karl 曹May 16, 20221 min readTwo Types of Confidence Interval for BootstrapThe regular precentile confidence interval for bootstrap result is easy, we just pick alpha/2 and 1 - alpha/2 quantile of estrimated...
Karl 曹May 16, 20221 min readShort Logistic Maximum Likelihood Function DerivationLogistic maximum likelihood function(for binary response) in product form is not popular, here is a derivation from product form to sum...