プリンキピア

第8章統計学

Using Google Sheets to Find Normal PercentilesGoogle Sheetsを使って正規分布のパーセンタイルを求める

The 68-95-99.7 Rule is great when we’re dealing with whole-number z-scores. However, if the z-score is not a whole number, the Rule isn’t going to help us. Luckily, we can use technology to help us out. We’ll talk here about the built-in functions in Google Sheets, but other tools work similarly.
英語のヒント
68-95-99.7の法則は、z得点が整数のときにはとてもよい。しかし、z得点が整数でないなら、法則は役に立たない。幸い、計算機器を使って助けてもらえる。ここではGoogle Sheetsの組みこみの関数について話すが、ほかの道具も同じように働く。
Let’s say we’re working with normally distributed data with mean 40 and standard deviation 7, and we want to know at what percentile a data value of 50 would fall. That corresponds to finding the proportion of the data that are less than 50. If we create our histogram and mark off whole-number multiples of the standard deviation like we did before, we’ll see why the 68-95-99.7 Rule isn’t going to help:
英語のヒント
平均40、標準偏差7の正規分布したデータを扱っていて、データの値50が何パーセンタイルにあるかを知りたいとしよう。これは、50より小さいデータの割合を求めることにあたる。ヒストグラムを作って、前のように標準偏差の整数倍に印をつけると、68-95-99.7の法則が役に立たない理由がわかる:
A normal distribution curve. The horizontal axis ranges from 20 to 60, in increments of 2. The curve begins before 20, has a peak value at 40, and ends after 60. Five vertical lines are drawn at 26, 33, 40, 47, and 54. The region to the left of 50 is shaded in blue.
Figure 8.62図8.62
Since 50 doesn’t line up with one of our lines, the 68-95-99.7 Rule fails us. Looking back at Figure 8.47 and Figure 8.48, the best we can say is that 50 is between the 84th and 99.5th percentiles, but that’s a pretty wide range. Google Sheets has a function that can help; it’s called NORM.DIST. Here’s how to use it:
英語のヒント
50はどの線にもそろわないので、68-95-99.7の法則はお手上げである。図8.47と図8.48を見返すと、せいぜい言えるのは50が84パーセンタイルと99.5パーセンタイルのあいだにあることだが、それはかなり広い範囲である。Google Sheetsには助けになる関数がある。NORM.DISTという。使い方は次のとおりである:
  1. Click in an empty cell in your worksheet.
    英語のヒント
    ワークシートの空のセルをクリックする。
  2. Type “=NORM.DIST(“
    英語のヒント
    「=NORM.DIST(」と入力する
  3. Inside the parentheses, we must enter a list of four things, separated by commas: the data value, the mean, the standard deviation, and the word “TRUE”. These have to be entered in this order!
    英語のヒント
    かっこのなかに、コンマで区切った4つのものの一覧を入力する必要がある。データの値、平均、標準偏差、語「TRUE」である。これらはこの順で入力しなければならない!
  4. Close the parentheses, and hit Enter. The result is then displayed in the cell; convert it to a percent to get the percentile.
    英語のヒント
    かっこを閉じてEnterキーを押す。すると結果がセルに表示される。百分率に換算してパーセンタイルを得る。
So, for our example, we should type “=NORM.DIST(50, 40, 7, TRUE)” into an empty cell, and hit Enter. The result is 0.9234362745; converting to a percent and rounding, we can conclude that 50 is at the 92nd percentile. Let’s walk through a few more examples.
英語のヒント
だから、この例では、空のセルに「=NORM.DIST(50, 40, 7, TRUE)」と入力してEnterキーを押す。結果は0.9234362745である。百分率に換算して丸めると、50は92パーセンタイルにあると結論できる。さらにいくつかの例を見ていこう。
Example 8.39例題 8.39

Using Google Sheets to Find PercentilesGoogle Sheetsを使ってパーセンタイルを求める

Suppose we have data that are normally distributed with mean 28 and standard deviation 4. At what percentile do each of the following data values fall?
英語のヒント
平均28、標準偏差4の正規分布したデータがあるとする。次のデータの値はそれぞれ何パーセンタイルにあるか。
  1. 30
  2. 23
  3. 35
Solution解答
  1. By entering “=NORM.DIST(30, 28, 4, TRUE)” we find that 30 is at the 69th percentile.
    英語のヒント
    「=NORM.DIST(30, 28, 4, TRUE)」と入力すると、30は69パーセンタイルにあることがわかる。
  2. By entering “=NORM.DIST(23, 28, 4, TRUE)” we find that 23 is at the 11th percentile.
    英語のヒント
    「=NORM.DIST(23, 28, 4, TRUE)」と入力すると、23は11パーセンタイルにあることがわかる。
  3. By entering “=NORM.DIST(35, 28, 4, TRUE)” we find that 35 is at the 96th percentile.
    英語のヒント
    「=NORM.DIST(35, 28, 4, TRUE)」と入力すると、35は96パーセンタイルにあることがわかる。
Google Sheets can also help us go the other direction: If we want to find the data value that corresponds to a given percentile, we can use the NORM.INV function. For example, if we have normally distributed data with mean 150 and standard deviation 25, we can find the data value at the 30th percentile as follows:
英語のヒント
Google Sheetsは逆方向にも助けてくれる。与えられたパーセンタイルに対応するデータの値を求めたいなら、NORM.INV関数を使える。たとえば、平均150、標準偏差25の正規分布したデータがあるなら、30パーセンタイルのデータの値は次のように求められる:
  1. Click on an empty cell in your worksheet.
    英語のヒント
    ワークシートの空のセルをクリックする。
  2. Type “=NORM.INV(“
    英語のヒント
    「=NORM.INV(」と入力する
  3. Inside the parentheses, we’ll enter a list of three numbers, separated by commas: the percentile in question expressed as a decimal, the mean, and the standard deviation. These must be entered in this order!
    英語のヒント
    かっこのなかに、コンマで区切った3つの数の一覧を入力する。問題のパーセンタイルを小数で表したもの、平均、標準偏差である。これらはこの順で入力しなければならない!
  4. Close the parentheses and hit Enter. The desired data value will be in the cell!
    英語のヒント
    かっこを閉じてEnterキーを押す。求めるデータの値がセルに出る!
In our example, we want the 30th percentile; converting 30% to a decimal gives us 0.3. So, we’ll type “=NORM.INV(0.3, 150, 25)” to get 136.8899872; let’s round that off to 137.
英語のヒント
この例では30パーセンタイルがほしい。30%を小数に換算すると0.3である。そこで「=NORM.INV(0.3, 150, 25)」と入力すると136.8899872が得られる。137に丸めよう。
Example 8.40例題 8.40

Using Google Sheets to Find the Data Value Corresponding to a PercentileGoogle Sheetsを使ってパーセンタイルに対応するデータの値を求める

Suppose we have data that are normally distributed with mean 47 and standard deviation 9. Find the data values (rounded to the nearest tenth) corresponding to these percentiles:
英語のヒント
平均47、標準偏差9の正規分布したデータがあるとする。これらのパーセンタイルに対応するデータの値(小数第1位に四捨五入)を求めよ:
  1. 75th (that’s the third quartile)
    英語のヒント
    75パーセンタイル(第3四分位数である)
  2. 12th
    英語のヒント
    12パーセンタイル
  3. 90th
    英語のヒント
    90パーセンタイル
Solution解答
  1. By entering “=NORM.INV(0.75, 47, 9)” we find that 53.1 is at the 75th percentile.
    英語のヒント
    「=NORM.INV(0.75, 47, 9)」と入力すると、53.1が75パーセンタイルにあることがわかる。
  2. By entering “=NORM.INV(0.12, 47, 9)” we find that 36.4 is at the 12th percentile.
    英語のヒント
    「=NORM.INV(0.12, 47, 9)」と入力すると、36.4が12パーセンタイルにあることがわかる。
  3. By entering “=NORM.INV(0.9, 47, 9)” we find that 58.5 is at the 90th percentile.
    英語のヒント
    「=NORM.INV(0.9, 47, 9)」と入力すると、58.5が90パーセンタイルにあることがわかる。