3.3: z-score / z-transformation
- Page ID
- 51790
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\dsum}{\displaystyle\sum\limits} \)
\( \newcommand{\dint}{\displaystyle\int\limits} \)
\( \newcommand{\dlim}{\displaystyle\lim\limits} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\(\newcommand{\longvect}{\overrightarrow}\)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\ket}[1]{\left| #1 \right>}\)
\(\newcommand{\bra}[1]{\left< #1 \right|}\)
\(\newcommand{\braket}[2]{\left< #1 \vphantom{#2} \right| \left. #2 \vphantom{#1} \right>}\)
\(\newcommand{\braopket}[3]{\left< #1 \vphantom{#2}\vphantom{#3} \right| #2 \vphantom{#1}\vphantom{#3} \left| #3 \vphantom{#1}\vphantom{#2} \right>}\)
\(\newcommand{\qmvec}[1]{\mathbf{\vec{#1}}}\)
\(\newcommand{\op}[1]{\hat{\mathbf{#1}}}\)
\(\newcommand{\expect}[1]{\langle #1 \rangle}\)
\(\newcommand{\dfn}[1]{\emph{\textbf{#1}}}\)
The \(z\)-score is the result of transformation of data that converts a dataset of \(x\) values, \(\{ x_{i} \}\), that has a mean of \(\bar{x}\) and standard deviation \(s\) to a set of \(z\) values \(\{z_{i}\}\) that has a mean of \(\bar{z} = 0\) and a standard deviation of \(s_{z} = 1\). It will be very useful when we need to compute probabilities associated with normal distributions. The \(z\)-transformation is defined by
\[z = \frac{x - \bar{x}}{s} \mbox{\ \ \ \ \ (sample)}\] \[z = \frac{x-\mu}{\sigma} \mbox{\ \ \ \ \ (population)}\]Example 3.12 : Find the \(z\)-scores of the data given in the left column of the table below.
| Data \(x_{i}\) | \(x_{i}^{2}\) | \(z\)-score, \(z_{i}\) |
| 18 | 324 | (18-9.9)/6.2 = 1.3 |
| 15 | 225 | (15-9.9)/6.2 = 0.8 |
| 12 | 144 | (12-9.9)/6.2 = 0.3 |
| 6 | 36 | (6-9.9)/6.2 = -0.6 |
| 8 | 64 | (8-9.9)/6.2 = -0.3 |
| 2 | 4 | (2-9.9)/6.2 = -1.3 |
| 3 | 9 | (3-9.9)/6.2 = -1.1 |
| 5 | 25 | (5-9.5)/6.2 = -0.8 |
| 20 | 400 | (20-9.5)/6.2 = -1.7 |
| 10 | 100 | (10-9.5)/6.2 = 0.1 |
| \(\sum x_{i}=99\) | \(\sum x_{i}^{2}=1331\) |
The dataset size is \(n=10\). You need to compute the \(z\)-score for each data value separately. To do the calculation, both \(\bar{x}\) and \(s\) are needed. So in addition to the sum of the data, \(\sum x\), we also need the sum of the \(x^{2}\) values. The work of getting those sums is shown in the table above. With the \(x\) and \(x^{2}\) sums we get
\[\bar{x} = \frac{\sum x_{i}}{n} = \frac{99}{10} = 9.9\]and
\[s^{2} &=& \frac{\sum x_{i}^{2} - [\frac{(\sum x_i)^2}{n}]}{n-1} =\frac{1331 - [\frac{99^2}{10}]}{9}=\frac{1331-980.1}{9}=39.0\]and \(s = \sqrt{39} = 6.2.\)
Using these values for \(\bar{x}\) and \(s\) in the third column of the table above, compute the \(z\)-scores as shown. If we had computed the \(z\)-scores more accurately, they would add up to zero, \(\sum z_{i} = 0\) (the mean of the \(z\)-scores is zero.)
◻


