📣 独立日限时特惠: VIP通行证立减$68
12
返回列表 发新帖
楼主: taskbitask
跳转到指定楼层
上一主题 下一主题
收起左侧

不懂就问:logistic regression的assumption

 
🔗
lionatBOS 2022-2-21 08:03:44 | 只看该作者
全局:
1. logistic regression is generalized regression, which means it does not have an explicit error term as linear regression. its error is is embedded in the randomness of the output. There will be similar assumptions as linear regression such as independence, etc.
2. linear regression assumes linear relation on the mean, logistic assumes linear relation on log odds.
3. checking the linear relation for numerical variables on the data is a trickier than regression where you can just do the simple scatter plot. for binary data you have to group the data so you can estimate the log odds, then plot it against the variable you want to check, similar to linear regression.
回复

使用道具 举报

🔗
lionatBOS 2022-2-21 08:14:27 | 只看该作者
全局:
microsat 发表于 2022-2-15 12:03
我有个疑问。logistic regression是用来干什么的?  比如  weight~ age+sex+city

有人会用odd ratios来 ...

you need to define "importance" first.  
statistical significance is different from practical significance. Whether one is important can change depending on situation.
for example, assume sex=M has a high OR vs F, but in your target sample, it is only 1% of M. is it important? probably not. but if you are concerned with M, it probably is important.
There are many different "importance" measures. You really need to use them according your problem. Specifically some "importance measure" from variable selection may not be very meaningful to real problem.
回复

使用道具 举报

🔗
u878qwqe 2022-2-23 06:09:26 | 只看该作者
全局:
linear regression 和 logistic regression都是GLM, 关于logistic regression 的 assumption和推导,我看过这个文章总结得比较细致:https://bit.ly/3Hb1ccC    也介绍了从glm角度比较两个模型。
回复

使用道具 举报

全局:
看了这么多回复感觉有两点没有提。
1. 如果做LR是用来分析odd和参数的话,那么binary target不可以是linear separable或者接近。如果是的话那预测很容易,但参数估不出来或者不准。
2. LR的误差项是有分布假设的。LR是可以用discrete choice model从概率公式推导出来。基于的假设是residual符合Gumbell distribution。但这玩意没法观测也就没法验证。所以没人像OLR那样去检查LR residual的分布。说LR是GLM也没啥问题,因为GLM本身就是随便变形下target variable,不用像OLR那么严格。所以也不用说误差项是normal,因为对不对没人在乎。
回复

使用道具 举报

🔗
1667156702 2022-3-7 04:46:49 | 只看该作者
全局:
本帖最后由 1667156702 于 2022-3-6 16:02 编辑
microsat 发表于 2022-2-15 12:03
我有个疑问。logistic regression是用来干什么的?  比如  weight~ age+sex+city

有人会用odd ratios来 ...

这个问题可以参考GLM的内容来解释。

Logit Models for Binary Data.pdf

255.1 KB, 阅读权限: 1, 下载次数: 12, 下载积分: 大米 -1 颗

回复

使用道具 举报

🔗
NickW 2022-3-7 06:15:24 | 只看该作者
全局:
hea_bow0w 发表于 2022-2-14 20:08
我之前复习的时候参考的assumption,链接是 https://www.statisticssolutions.com/fre ...
make sense
回复

使用道具 举报

🔗
microsat 2022-3-7 23:11:24 | 只看该作者
全局:
非常谢谢大家!
回复

使用道具 举报

全局:
Model a probability of having an event
Can be related to classification
Can be used as a prediction tool for new input
回复

使用道具 举报

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

本版积分规则

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