12
返回列表 发新帖
楼主: 期待阳光
跳转到指定楼层
上一主题 下一主题
收起左侧

note for data jobs

 
🔗
 楼主| 期待阳光 2023-12-21 10:02:58 | 只看该作者
全局:
Confusion matrix -- way to remember: . Χ
                             Predicted Class 0                           Predicted Class 1
Actual Class 0             TN                                        FP(false alarm, may not harm - Innocent - Tpye I)
Actual Class 1              FN(Miss opportunity         TP
                                       two missed - Type II)      
  • Recall = TP/(TP+FN), known as true positive rate, measures the ability of a classification model to identify all relevant instances(actual class 1) from the datase. (How many time recall due to FN)


  • Precision = TP/(TP+FP) reflects the accuracy of the positive predictions made by a model.
  • F1 score: 2× (Precision+Recall)/(Precision×Recall) --balance
回复

使用道具 举报

🔗
 楼主| 期待阳光 2023-12-21 10:39:14 | 只看该作者
全局:
Linear Regression
  • the Least Squares (LS) method
  • Maximum Likelihood Estimation (MLE)


1. **Least Squares (LS) Method:**
   - In the least squares approach, the goal is to minimize the sum of the squared differences between the observed values (actual outcomes) and the values predicted by the linear model. The objective function to minimize is the sum of squared residuals:. 1point 3acres
   . check 1point3acres for more.
   \[ \text{Minimize} \sum_{i=1}^{N} (y_i - \hat{y}_i)^2 \]

   - Here, \( y_i \) is the actual outcome for the \(i\)-th observation, and \( \hat{y}_i \) is the predicted value by the linear model.

2. **Maximum Likelihood Estimation (MLE):**.
   - In the context of Linear Regression, MLE is used to estimate the parameters of the model by maximizing the likelihood function. The likelihood function represents the probability of observing the given set of outcomes given the model parameters. Assuming normally distributed errors, the likelihood function is given by:
.google  и
   \[ \text{Likelihood} \propto \prod_{i=1}^{N} \frac{1}{\sigma \sqrt{2\pi}} \exp\left(-\frac{(y_i - \hat{y}_i)^2}{2\sigma^2}\right) \]

   - Here, \( \sigma \) is the standard deviation of the normally distributed errors.

3. **Relationship between LS and MLE:**. 1point3acres.com
   - Interestingly, when you assume normally distributed errors and maximize the likelihood function, it turns out that maximizing the likelihood is equivalent to minimizing the sum of squared residuals. In other words, under the assumption of normally distributed errors, the LS method and MLE yield the same parameter estimates.

   - Mathematically, maximizing the likelihood is equivalent to minimizing the negative log-likelihood, which is proportional to the sum of squared residuals. Therefore, the LS estimate and the MLE estimate are the same.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表