Permalink
Fetching contributors…
Cannot retrieve contributors at this time
121 lines (119 sloc) 6.11 KB
<!DOCTYPE html>
<html data-require="math math-format graphie word-problems stat">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Z scores 2</title>
<script data-main="../local-only/main.js" src="../local-only/require.js"></script>
</head>
<body>
<div class="exercise">
<div class="problems">
<div data-calculator="">
<div class="vars">
<var id="COL_INDEX">randRange(0, 9)</var>
<var id="ROW_INDEX">randRange(0, 9)</var>
<var id="ZSCORE">roundTo(2, randRange(0, 2) + ROW_INDEX / 10 + COL_INDEX / 100)</var>
<var id="GRADE">randRange(70, 90)</var>
<var id="STDDEV">randRange(2, 6)</var>
<var id="MEAN">localeToFixed(GRADE - ZSCORE * STDDEV, 2)</var>
<var id="ROWS">
(function() {
var rowNames = [];
for(var i = floorTo(0, ZSCORE); i &lt; (floorTo(0, ZSCORE) + 1); i += 0.1) {
rowNames.push(localeToFixed(i, 1));
}
return rowNames;
})()
</var>
<var id="COLUMNS">[.00, .01, .02, .03, .04, .05, .06, .07, .08, .09]</var>
<var id="ZGRID">
(function() {
var zGrid = [];
for (var i = 0; i &lt; ROWS.length; i++) {
var zRow = [];
for (var j = 0; j &lt; COLUMNS.length; j++) {
zRow.push(zScores(roundTo(2,
(floorTo(0, ZSCORE) + i / 10 + j / 100) * 100)));
}
zGrid.push(zRow);
}
return zGrid;
})()
</var>
<var id="ANSWER">ZGRID[ROW_INDEX][COL_INDEX]</var>
<var id="HEADER">"z"</var>
</div>
<div class="problem">
The scores on a statewide <var>course(1)</var> exam were normally distributed with
<code>\mu = <var>MEAN</var></code> and <code>\sigma = <var>STDDEV</var></code>.
<br><var>person(1)</var> scored <code><var>GRADE</var></code> on the exam.
</div>
<p class="question">
<var>person(1)</var>'s exam grade was higher than what percentage of test-takers?</p>
<p class="render-answer-area-here"></p>
<p>Use the cumulative z-table provided below.</p>
<div class="fake_header z-score-table">
<span><var>HEADER</var></span><span data-each="COLUMNS as i, column"><var>localeToFixed(column, 2).substr(1)</var></span>
</div>
<div class="fake_row z-score-table" data-each="ROWS as i, row">
<span><var>row</var></span><span data-each="ZGRID[i] as j, zgrid"><var>localeToFixed(zgrid, 4)</var></span>
</div>
<div class="solution" data-forms="integer, proper, improper, mixed, decimal, percent" data-simplify="optional" data-inexact="" data-max-error="0.0001">
<var>roundTo(4, ANSWER)</var>
</div>
<div class="hints">
<p>
A cumulative z-table shows the probability that a standard normal variable will be
<b>less than</b> a certain value <b>(z)</b>.
</p>
<p>
In order to use the z-table, we first need to determine the
<span class="hint_blue">z-score</span> of <var>person( 1 )</var>'s exam grade.
</p>
<div>
<p data-if="isMale(1)">
Recall that we can calculate his z-score by subtracting the
<span class="hint_pink">mean <code>(\mu)</code></span> from his
grade and then dividing by the <span class="hint_purple">standard deviation
<code>(\sigma)</code></span>.
</p><p data-else="">
Recall that we can calculate her z-score by subtracting the
<span class="hint_pink">mean <code>(\mu)</code></span> from her
grade and then dividing by the <span class="hint_purple">standard deviation
<code>(\sigma)</code></span>.
</p>
<p>
<code>
\large{\quad z \quad = \quad
\dfrac{x - \pink{\mu}}{\purple{\sigma}}
\quad = \quad \dfrac{<var>GRADE</var> - \pink{<var>MEAN</var>}}{\purple{<var>STDDEV</var>}}
\quad = \quad <var>localeToFixed(ZSCORE, 2)</var>}
</code>
</p>
</div>
<div>
<p>
Look up <code><var>localeToFixed(ZSCORE, 2)</var></code> on the z-table. This value,
<code class="hint_blue"><var>localeToFixed(ANSWER, 4)</var></code>, represents
the portion of the population that scored lower than
<code><var>GRADE</var></code> on the exam.
</p>
<div class="graphie">
var nth = ":nth-child(" + (COL_INDEX + 2) + ")";
$(".fake_row").eq(ROW_INDEX).find("span").css("background", ORANGE);
$(".fake_row span" + nth).css("background", ORANGE);
$(".fake_header span" + nth).css("background", ORANGE);
$(".fake_row").eq(ROW_INDEX).find("span" + nth).css("background", BLUE);
</div>
</div>
<p>
<var>person( 1 )</var> scored higher than
<code class="hint_blue"><var>localeToFixed(ANSWER * 100, 2)</var>\%</code> of the
test-takers on the <var>course( 1 )</var> exam.
</p>
</div>
</div>
</div>
</div>
</body>
</html>