Skip to Content
Python2年生 データ分析のしくみ 第2版 体験してわかる!会話でまなべる!
book

Python2年生 データ分析のしくみ 第2版 体験してわかる!会話でまなべる!

by 森 巧尚
June 2024
Intermediate to advanced
200 pages
4h 46m
Japanese
Shōeisha
Content preview from Python2年生 データ分析のしくみ 第2版 体験してわかる!会話でまなべる!
165
違うばらつきのデータでの比較ができる
LESSON
19
偏差値:真ん中は
50
Pythonのライブラリを使えば「ある値が、全体の上から何%なのか」は求めることがで
きましたが、一般的には大変な計算になります。
そこで、あらかじめ「平均値は
50、標準偏差は10」とそろえることで、比較しやすくす
る方法が考えられました。それが「偏差値」です。「平均値が
50、標準偏差が10」という
正規分布をあらかじめ対応表などで用意しておけば誰でも使うことができます。自分の偏
差値を「( 自分の得点−平均点)÷標準偏差×
10+50」と計算して対応表と見比べるだけ
で、「自分の点数だと、上から何%なのか」が、だいたいわかるというわけです。
ですが、
Pythonのライブラリがあれば、偏差値や対応表がなくても「norm.cdf」を使っ
て調べることができます。なぜなら、偏差値は「平均値
50、標準偏差10」の正規分布だか
らです。
例えば、偏差値
60、70、80が上から何%になるのかを調べてみましょう(リスト5.20)。
from scipy.stats import norm
scorelist = [60, 70, 80]
for score in scorelist:
cdf = norm.cdf(x=score, loc=50, scale=10)
print("
偏差値",score, "は、上から", (1-cdf) * 100, "%")
偏差値 60 は、上から 15.865525393145708 %
偏差値 70 ...
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

Python2年生 スクレイピングのしくみ 第2版 体験してわかる!会話でまなべる!

Python2年生 スクレイピングのしくみ 第2版 体験してわかる!会話でまなべる!

森 巧尚

Publisher Resources

ISBN: 9784798183657