Skip to Content
Think Stats 第3版 ―Pythonで学ぶ統計学入門
book

Think Stats 第3版 ―Pythonで学ぶ統計学入門

by Allen B. Downey, 大橋 真也
October 2025
Intermediate to advanced
328 pages
3h 56m
Japanese
O'Reilly Japan, Inc.
Content preview from Think Stats 第3版 ―Pythonで学ぶ統計学入門

7章変数間の関係

これまでは、一度に1つの変数だけを見てきました。この章では、変数間の関係について見ていきます。2つの変数が関連しているのは、一方を知ることでもう一方についての情報が得られる場合です。例えば、身長と体重には関係があります。背の高い人は体重も重い傾向があります。もちろんこれは、完全な関係ではありません。背が低くて体重が重い人もいれば、背が高くて体重が軽い人もいます。しかし、誰かの体重を推測しようとする場合、身長を知っていれば、知らない場合よりも正確に推測することができます。

この章では、変数間の関係を可視化する複数の方法と、関係の強さを定量化する方法の1つである相関について説明します。

7.1 散布図

数学が異常に得意な人に出会った場合、その人の言語能力は平均より優れているのか劣っているのか、どちらだと予想しますか。一方では、人はどちらか片方の分野に特化するので、どちらかに秀でている人はもう片方が得意でないかもしれないかもしれません。他方では、一般的に頭のよい人は、両方の分野でも平均以上であると期待するかもしれません。どちらが正しいのか調べてみましょう。

ここでは、1997年の全米青年縦断調査(NLSY97)のデータを使用します。これは「1980年から84年の間に生まれた8,984人のアメリカの若者のサンプルを追跡調査したもの」です。この公開データセットには、大学入試で最もよく使われるSATとACTを含む、標準テストのスコアが含まれています。受験者は数学と言語の分野で別々のスコアを得るため、このデータを使って数学的能力と言語能力の関係を調べることができます。

データのダウンロード方法は、7章のノートブック(chap07.ipynb)で説明しています。read_csv ...

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

直感 生成AI ―ハンズオンで動かして学ぶ拡散モデル入門

直感 生成AI ―ハンズオンで動かして学ぶ拡散モデル入門

Omar Sanseviero, Pedro Cuenca, Apolinário Passos, Jonathan Whitaker, 江川 崇
SRE サイトリライアビリティエンジニアリング ―Googleの信頼性を支えるエンジニアリングチーム

SRE サイトリライアビリティエンジニアリング ―Googleの信頼性を支えるエンジニアリングチーム

Betsy Beyer, Chris Jones, Jennifer Petoff, Niall Richard Murphy, 澤田 武男, 関根 達夫, 細川 一茂, 矢吹 大輔, Sky株式会社 玉川 竜司
MLOps実装ガイド ―本番運用を見据えた開発戦略

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

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

Publisher Resources

ISBN: 9784814401376Publisher Website