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 面向数据科学家的实用统计学
回归与预测
|
115
变量所代表的部分等级类型。鉴于每个等级都具有特定的意义,因此数值是从低到高排序
的,对应于房屋等级的逐步提高。如果使用
4.2
节中拟合的回归模型
house_lm,我们需要
将 BldgGrade 作为数值型变量处理。
表4-1:一个典型的数据格式
数值 描述
1 Cabin
2 Substandard
5 Fair
10 Very good
12 Luxury
13 Mansion
将有序因子作为数值变量处理,可以保留次序关系中所包含的信息。否则,这些信息将在
转换为因子的过程中丢失。
本节要点
•
因子变量需要转换为数值变量,才能在回归中使用。
•
要编码一个具有
P
个不同值的因子变量,最常用的方法是表示为
P
-
1
个虚拟变量。
•
即便是在规模非常大的数据集中,多层因子变量也需整合为具有更少层的变量。
•
一些因子的层是有序的,可以表示为单一的数值变量。
4.5
 解释回归方程
在数据科学中,回归最重要的用途就是预测因变量(结果变量)。但是在某些情况下,从
回归方程本身获得一些洞见,以理解预测变量与结果之间的关系是十分有价值的。本节将
为如何查看并解释回归方程提供一些指导。
主要术语
相关变量
当预测变量高度相关时,难以解释单个回归系数。
多重共线性
当预测变量间存在完美的或近乎完美的相关性时,回归是不稳定的,或者说是不
可能计算的。
同义词:共线性
混淆变量
一种重要的预测变量。忽视该变量可导致回归方程给出伪关系。
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