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で学ぶ統計学入門

8章推定

例えば、人口1万人の町に住んでいて、今度の選挙で誰が勝つか予想したいとします。理論的には、町の人全員に誰に投票するつもりかを尋ね、全員が正直に答えれば、信頼できる予測ができます。

しかし、たとえ小さな町であっても、全住民を調査するのは現実的ではありません。幸いなことに、その必要はありません。無作為に選ばれた一部の住民を調査すれば、その標本を使って母集団の投票傾向を推測することができます。このように標本を使って母集団についての推測を行うプロセスを、「統計的推論」と呼びます。

統計的推論には、8章のテーマである推定と、9章のテーマである仮説検定が含まれます。

8.1 ペンギンの体重測定

南極でペンギンの個体数を調査する研究者だとします。あなたの仕事の1つは、1年の間に変化するペンギンの平均体重を監視することです。その環境にいるすべてのペンギンの体重を測定することは現実的ではないので、毎週10羽のペンギンの無作為標本を集め、体重を測定し、その標本を用いて母集団全体の平均値(これを母平均と呼びます)を推定することです。

標本を使って母平均を推定する方法はたくさんありますが、ここでは標本平均と標本中央値の2つだけを考えます。どちらも妥当な選択ですが、どちらが優れているのか、そして「優れている」とはどういう意味か考えてみましょう。

説明の関係上、ペンギンの体重は、平均値と標準偏差が既知の正規分布からとられたものであると仮定します。これらをそれぞれ、musigmaと表記し、kg単位で値を割り当てます。

mu = 3.7
sigma = 0.46

これらの値は正規分布のパラメータであり、特定の分布を指定するものです。これらのパラメータが与えられれば、NumPyを使ってサンプリング過程をシミュレーションし、任意のサイズの標本を生成することができます。例えば、ここで仮の体重10個の標本を作成します。 ...

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