Skip to Content
データサイエンスのための数学入門 ―Pythonで学ぶ線形代数、確率、統計の基礎
book

データサイエンスのための数学入門 ―Pythonで学ぶ線形代数、確率、統計の基礎

by Thomas Nield, 江川 崇
September 2025
Intermediate to advanced
424 pages
5h 17m
Japanese
O'Reilly Japan, Inc.
Content preview from データサイエンスのための数学入門 ―Pythonで学ぶ線形代数、確率、統計の基礎

5章線形回帰

データ分析において実用的な手法のひとつが、観測されたデータポイントの間に直線を当てはめて、2つ以上の変数間の関係を示すことです。このように、観測データに関数を当てはめて、新しいデータに対する予測を試みる手法のことを回帰と呼びます。その中でも線形回帰は、観測データに対して直線を当てはめて変数間の線形関係を表現し、まだ観測されていない新しいデータに対して予測しようとする手法です。

線形回帰についての解説を眺めるよりも、図を見たほうが理解しやすいかもしれません。図5-1は、線形回帰の例を示したものです。

観測データに直線を当てはめた線形回帰の例

図5-1 観測データに直線を当てはめた線形回帰の例

線形回帰はデータサイエンスと統計を支える大黒柱的な存在であり、これまでの章で学んだ概念を活用できるだけでなく、後で触れる6章のロジスティック回帰や7章のニューラルネットワークなどのトピックの基礎を築くものでもあります。この比較的シンプルな手法は200年以上前から存在しており、今では機械学習の一種にも位置付けられています。

機械学習の専門家は、まずデータを訓練用データとテスト用データに分割することから始めるなど、統計の専門家と異なる検証アプローチを採用する傾向があります。これに対し、統計の専門家は予測区間や相関係数といった指標を使って統計的有意性を評価することに重点を置きます。双方のこういった考え方やアプローチの違いを学ぶことで、2つの分野の間にある溝を埋めることができ、どちらの立場でも柔軟に語る力を身につけることができるでしょう。 ...

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

データサイエンスのための統計学入門 第2版 ―予測、分類、統計モデリング、統計的機械学習とR/Pythonプログラミング

データサイエンスのための統計学入門 第2版 ―予測、分類、統計モデリング、統計的機械学習とR/Pythonプログラミング

Peter Bruce, Andrew Bruce, Peter Gedeck, 黒川 利明, 大橋 真也
ソフトウェア工学の基礎

ソフトウェア工学の基礎

Nathaniel Schutta, Dan Vega
MLOps実装ガイド ―本番運用を見据えた開発戦略

MLOps実装ガイド ―本番運用を見据えた開発戦略

Yaron Haviv, Noah Gift, 井伊 篤彦, 入江 美穂, 張 凡, 樋口 千洋

Publisher Resources

ISBN: 9784814401260Publisher Website