Skip to Content
Think Stats 第2版 ―プログラマのための統計入門
book

Think Stats 第2版 ―プログラマのための統計入門

by Allen B. Downey, 黒川 利明, 黒川 洋
August 2015
Intermediate to advanced
272 pages
5h 46m
Japanese
O'Reilly Japan, Inc.
Content preview from Think Stats 第2版 ―プログラマのための統計入門
5
5
1.4 DataFrame
テキストファイル(
ASCII
)を
gzip
圧縮したファイルです。ファイルの各行が
1
のレコード(
record
)で、
1
つの妊娠についてのデータを表します。
ファイルフォーマットは、
Stata
辞書ファイル形式の
2002FemPreg.dct
に文書化さ
れています。
Stata
は商品として販売されている統計ソフトのシステムです。この文
脈での「辞書(
dictionary
)」とは、変数名、型、インデックスのリストです。インデッ
クスは、行のどこに変数(の値)があるかを示します。
例えば、
2002FemPreg.dct
には次のような行があります。
infile dictionary {
_column(1) str12 caseid %12s "RESPONDENT ID NUMBER"
_column(13) byte pregordr %2f "PREGNANCY ORDER (NUMBER)"
}
この辞書は次の
2
変数を記述しています。
caseid
は、回答者
ID
を表す
12
文字の
文字列です。
pregordr
は、この回答者の何回目の妊娠かを示す
1
バイト整数です。
ダウンロードしたコードには、
thinkstats2.py
モジュールが含まれています。こ
Python
モジュールには、本書で使う多数のクラスや関数に加えて、
Stata
辞書や
NSFG
データファイルを読む関数も含まれています。
nsfg.py
でこのモジュールがど
う使われているかを次に示します。
def ReadFemPreg(dct_file='2002FemPreg.dct', ...
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

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

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

Betsy Beyer, Chris Jones, Jennifer Petoff, Niall Richard Murphy, 澤田 武男, 関根 達夫, 細川 一茂, 矢吹 大輔, Sky株式会社 玉川 竜司
機械学習デザインパターン ―データ準備、モデル構築、MLOpsの実践上の問題と解決

機械学習デザインパターン ―データ準備、モデル構築、MLOpsの実践上の問題と解決

Valliappa Lakshmanan, Sara Robinson, Michael Munn, 鷲崎 弘宜, 竹内 広宜, 名取 直毅, 吉岡 信和
戦略的データサイエンス入門 ―ビジネスに活かすコンセプトとテクニック

戦略的データサイエンス入門 ―ビジネスに活かすコンセプトとテクニック

Foster Provost, Tom Fawcett, 竹田 正和, 古畠 敦, 瀬戸山 雅人, 大木 嘉人, 藤野 賢祐, 宗定 洋平, 西谷 雅史, 砂子 一徳, 市川 正和, 佐藤 正士

Publisher Resources

ISBN: 9784873117355Other