注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
本人学统计的,从去年开始一路找工作1年多了, 面了大大小小的公司的DS, MLE, DA总结出来的一些复习笔记。 想攒点大米, 所以分享出来, 求大米!! (陆续更新!)
此notes只是我个人的理解, 如有不对的地方, 欢迎指正!!
. ----
先分享statistics的部分
Statistics
1. OLS. 1point3acres.com
OLS is a type of parameter estimation methods for estimating the unknown parameters in a linear regression model by minimizing the sum of the squares of the differences between the observed response variable and predicted response variable.
. .и
2. Assumptions for Linear Regression model
1. the mean of the error term is 0 (Unbiasedness)
2. variables are linearly related
3. the variance of the error term is constant
4. error values are independent and normally distributed (Ensures that all the (Xi, Yi) are drawn randomly from the sample population)
5. x variables are not too highly correlated (collinearity/multicollinearity).
6. x values are fixed and are measured without error
Solutions to violations of assumptions (less robustness). 1point3acres
1. Transformation
2. Use weighted least squares, generalized least squares, lasso/ridge regression
3. Assumptions for Logistic Regression model. .и
1. Explanatory variables are measured without error
2. Model is correctly specified (neither over fitting nor under fitting, all important variables included, etc.)
3. Outcomes not completely linearly separable (i.e. x values cannot completely determine whether y = 0 or y = 1, make parameter estimates unstable) ..
4. Observations are independent
5. It requires large sample size, n
Because of MLE, it requires more observations than usual regression, especially if one of the categories occurs rarely (rule of thumb: at least 10 obs for each outcome (0/1))
6. Collinearity/multicollinearity. .и
The difference between linear regression and logistic regression
1. Linear regression is used when the dependent variable is continuous and logistic regression is used when dependent variable is binary.
2. Linear regression uses OLS and Logistic regression uses Maximum Likelihood method to estimate coefficients.
4. R-squared
How much of the variation in Y can be explained by the X
Every time we add a variable to the regressioeorem states that if you have a population with mean μ and standard deviation σ and take sufficiently large random samples from the population with replacement, then the distribution of the sample means will be approximately normally distributed. This will hold true regardless of whether the source population is normal or skewed, provided the sample size is sufficiently large (usually n > 30). If the population is normal, then the theorem holds true even for samples smaller than 30. This means that we can use the normal probability model to quantify uncertainty when making inferences about a population mean based on the sample mean.
19. Unbiased Estimator
θ is a population parameter and \hat{\theta} is an estimator, we hope theta hat is a good way of estimating θ. \hat{\theta} is a random variable because each time we take a sample, we will get a different estimate of θ, therefore we can determine the bias of an estimator is E(\hat{\theta} ) - θ. Hence, an unbiased estimator is where the bias equals 0 which indicates that the average of \hat{\theta} across repeated samples equals the true value of θ regardless of sample size n.
. ---- |