Skip to Content
面向数据科学家的实用统计学
book

面向数据科学家的实用统计学

by Peter Bruce, Andrew Bruce
October 2018
Beginner to intermediate
238 pages
6h 32m
Chinese
Posts & Telecom Press
Content preview from 面向数据科学家的实用统计学
分类
|
143
5.3.1
 逻辑响应函数和
Logit
函数
该问题的关键在于
逻辑响应函数
和
Logit
函数
。它们实现了将
[0, 1]
区间内的概率值,映射
到适用于线性建模的更广的区间上。
首先,我们不能将结果变量简单看作二元标签,而应视为标签是
1
的概率
p
。我们可能天
真地想将概率
p
建模为预测变量的一个线性函数。
0 1 1 2 2 q q
p x x x
β β β β
= + + + +
但是在拟合模型时,并不能确保概率
p
位于
[0, 1]
区间内。而作为一个概率值,概率
p
必
须位于该区间内。
下面换一种做法。我们通过在预测因子中应用
逻辑响应
函数或
逆
Logit
(
inverse logit
)函数
去建模
p
。
这一转换确保了
p
值位于
[0, 1]
区间内。
为了消去分母中的指数表达式,我们考虑使用
几率
(
odds
)而非概率。对于世界各地的投
注者来说,几率无疑是个耳熟能详的词语,它表示“成功”(
1
)与“不成功”(
0
)两者间
的比率。从概率的角度看,几率是事件发生的概率除以事件不会发生的概率。例如,如果
一匹赛马胜出的概率为
0.5
,那么“未胜出”的概率就为(
1
-
0.5
)
= 0.5
,这时几率为
1
。
Odds( 1)
1
p
Y
p
= =
−
我们可以使用逆几率函数,由几率得到概率。
Odds
1 Odds
p =
+
将概率与前面介绍的逻辑响应函数相结合,得到:
0 1 1 2 2
Odds( 1)
q q
x x x
Y e
β β β β
+ + + +
= =
最后,对等式两端取对数,得到预测因子的一个线性函数表达式。
0 1 1 2 2
log(Odds( ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

基于Python的智能文本分析

基于Python的智能文本分析

Benjamin Bengfort, Rebecca Bilbro, Tony Ojeda
Python数据处理

Python数据处理

Jacqueline Kazil, Katharine Jarmul
精通機器學習

精通機器學習

Aurélien Géron
C++语言导学(原书第2版)

C++语言导学(原书第2版)

本贾尼 斯特劳斯特鲁普

Publisher Resources

ISBN: 9787115493668