Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 59 lines (54 sloc) 3.278 kb
aed4c98 @smenks13 New exercise: Z-scores 1
smenks13 authored
1 <!DOCTYPE html>
7041f1b @jeresig Re-run the linter on the exercises.
jeresig authored
2 <html data-require="math word-problems">
3 <head>
9de9147 @jeresig Add in a tool for automatically fixing some i18n issues in exercises. Ri...
jeresig authored
4 <meta charset="UTF-8">
24b734a @jeresig Clean up the titles of the HTML files.
jeresig authored
5 <title>Z scores 1</title>
ac1415e @spicyj Use requirejs for module loading
spicyj authored
6 <script data-main="../local-only/main.js" src="../local-only/require.js"></script>
aed4c98 @smenks13 New exercise: Z-scores 1
smenks13 authored
7 </head>
8 <body>
4e4cb9b @beneater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
9 <div class="exercise">
10 <div class="problems">
11 <div id="original">
12 <div class="vars">
13 <var id="MEAN">randRange( 65, 85 )</var>
14 <var id="STDDEV">randRange( 2, 5 ) + randRange( 0, 1 ) * 0.5</var>
15 <var id="GRADE">randRangeWeighted( roundTo( 0, MEAN - STDDEV * 3 ), min( roundTo( 0, MEAN + STDDEV * 3 ), 100 ), MEAN, 0 )</var>
16 <var id="ZSCORE">roundTo( 2, ( GRADE - MEAN ) / STDDEV )</var>
5a82f12 @petercollingridge Make hints easier to translate
petercollingridge authored
17 <var id="SOLUTION">localeToFixed(ZSCORE, 2)</var>
4e4cb9b @beneater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
18 </div>
aed4c98 @smenks13 New exercise: Z-scores 1
smenks13 authored
19
4e4cb9b @beneater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
20 <div class="problem">
989dbfd @mauk81 use localized decimals
mauk81 authored
21 The grades on a <var>course( 1 )</var> midterm at <var>school( 1 )</var> are normally distributed with <code>\mu = <var>MEAN</var></code> and <code>\sigma = <var>localeToFixed(STDDEV, 1)</var></code>.
5a82f12 @petercollingridge Make hints easier to translate
petercollingridge authored
22 <br><var>person( 1 )</var> scored <code><var>GRADE</var></code> on the exam.
4e4cb9b @beneater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
23 </div>
4342f2a @smenks13 @beneater changes and whitespace
smenks13 authored
24
4e4cb9b @beneater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
25 <p class="question">Find the z-score for <var>person( 1 )</var>'s exam grade. Round to two decimal places.</p>
aed4c98 @smenks13 New exercise: Z-scores 1
smenks13 authored
26
037ea59 @petercollingridge Make sure fraction accepted as answer
petercollingridge authored
27 <div class="solution" data-inexact="" data-max-error="0.01"><var>(GRADE - MEAN) /STDDEV</var></div>
aed4c98 @smenks13 New exercise: Z-scores 1
smenks13 authored
28
4e4cb9b @beneater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
29 <div class="hints">
30 <p>A z-score is defined as the number of <span class="hint_green">standard deviations</span> a specific point is away from the <span class="hint_pink">mean</span>.</p>
5a82f12 @petercollingridge Make hints easier to translate
petercollingridge authored
31 <p>
32 <code>\large{\quad z \quad = \quad
33 \dfrac{<var>GRADE</var> - \pink{<var>MEAN</var>}}{\green{<var>localeToFixed(STDDEV, 1)</var>}}}</code>
34 </p>
4e4cb9b @beneater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
35 <div>
5a82f12 @petercollingridge Make hints easier to translate
petercollingridge authored
36 <p><code>\large{\quad z \quad \approx \quad <var>SOLUTION</var>}</code></p>
4e4cb9b @beneater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
37 <p>
5a82f12 @petercollingridge Make hints easier to translate
petercollingridge authored
38 The z-score is <code><var>localeToFixed(ZSCORE, 2)</var></code>.
39 <span data-if="isSingular(ZSCORE)">
40 In other words, <var>person(1)</var>'s score was <code><var>SOLUTION</var></code> standard deviation above the mean.
41 </span>
42 <span data-else-if="isSingular(-ZSCORE)">
43 In other words, <var>person(1)</var>'s score was <code><var>SOLUTION</var></code> standard deviation below the mean.
44 </span>
45 <span data-else-if="ZSCORE > 0">
46 In other words, <var>person(1)</var>'s score was <code><var>SOLUTION</var></code> standard deviations above the mean.
47 </span>
48 <span data-else="">
49 In other words, <var>person(1)</var>'s score was <code><var>SOLUTION</var></code> standard deviations below the mean.
50 </span>
037ea59 @petercollingridge Make sure fraction accepted as answer
petercollingridge authored
51 </p>
4e4cb9b @beneater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
52 </div>
53 </div>
54 </div>
55 </div>
56 </div>
7041f1b @jeresig Re-run the linter on the exercises.
jeresig authored
57 </body>
58 </html>
Something went wrong with that request. Please try again.