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で学ぶ線形代数、確率、統計の基礎

6章ロジスティック回帰と分類

本章ではロジスティック回帰について説明します。ロジスティック回帰は、ひとつ以上の独立変数を与えて、ある事象の確率を予測する回帰の一種です。この確率は分類にも利用できます。分類とは、線形回帰のように具体的な値を予測するのではなく、カテゴリを予測するものです。

我々は、変数を常に無限の実数値として連続的(continuous)に表現したいわけではありません。ときには、変数を離散的(discrete)に、つまり自然数、整数、あるいは真偽値(0か1、trueかfalseなど)で表現したほうが適切な場合もあります。ロジスティック回帰は、0または1の二値やカテゴリを示す整数値などの離散的な値を出力変数として訓練します。また、確率自体は連続変数の形で出力されますが、しきい値を使えばこの値を離散的な値に変換することができます。

ロジスティック回帰は実装が簡単で、また、外れ値などのデータに関する問題にもある程度耐性があります。そのため、機械学習のさまざまな場面で、他の教師あり学習の手法よりも実用面やパフォーマンスの面で優れているケースが多く見られます。

5章 線形回帰」で線形回帰を扱いましたが、そのときと同様に、本章でも統計と機械学習の双方の視点のバランスを取りながら、両分野のツールや分析手法を活用して解説を進めていきます。ロジスティック回帰は、2章の確率から5章の線形回帰まで、この本で学んできた多くの概念を統合するものです。

6.1 ロジスティック回帰を理解する

ある架空の事例で考えてみましょう。小規模な労働災害が発生し、化学物質への曝露が人体に及ぼす影響を調査することになりました。手元に11人の患者のデータ(架空のデータですが)があり、人によってこの化学物質に ...

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