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

付録C統計的有意性の落とし穴

江川 崇

本付録は日本語版オリジナルの記事です。本稿では、データの統計的な解釈における落とし穴についてもう少し深堀りしたいと思います。

データを意味のある形で分析し、分析に十分な時間をかけることが、プロジェクトの成否に大きく影響すると本書では述べられています。「5章 線形回帰」で詳しく触れられているとおり、統計において「相関がある」とは、2つの変数に強い関係があることを意味し、相関係数を求めることで、変数間の相関の有無やその程度を確認できます。しかし、たとえ相関が見られたとしても、それが単なる偶然の産物である可能性があります。そこで、相関が偶然の産物かどうかを統計的に検証する指標としてp値が用いられます。p値を使えば、帰無仮説の下で、観測された相関係数が偶然に生じる確率を評価することができます。

ただし、p値によって統計的有意性が確認できたとしても、その結論を鵜呑みにして無条件に信用するのは必ずしも適切ではありません。統計的有意性は重要な指標のひとつですが、それだけで結論の妥当性が保証されるわけではありません。たとえば研究デザインに欠陥がある場合やデータの測定方法に偏りや誤差がある場合は、そこから導かれる結論は信頼できません。さらに言えば、「3章 記述統計と推測統計」で紹介されていたpハッキングのような恣意的な分析が行われていれば、結果が捏造に近い形で作られている可能性すらあります。本稿では、こうした統計に潜む罠や落とし穴を具体例とともに解説していきます。

C.1 相関に潜む統計の罠

具体的な例を挙げてみましょう。表C-1のデータセットは、ある地域で購入されているアイスクリームの売上と、その地域の犯罪件数の推移を示したものです。

表C-1 ある地域のアイスクリームの売上と犯罪件数 ...

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