summaryrefslogtreecommitdiff
path: root/texmf-dist/doc/latex/dps/examples/advanced/usebtnappr/basic/stat_match1.tex
blob: 34b126831ae0aa2233335f7548acdea9a497be0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
\documentclass{article}
\usepackage[texcoord]{eso-pic}
% aeb_pro  not required for pdflatex, lualatex, or xelatex
% If you don't have acrobat, no harm done. For the
% dvips -> distiller workflow, aeb_pro is required.
\usepackage[web={extended},eforms,useacrobat]{aeb_pro}
% for non-pdfmark workflow, the alternative is to use
% the following two packages instead.
%\usepackage[extended]{web}
%\usepackage{eforms}
\usepackage[usebtnappr,
  nonrandomized,
  !showletters,
  !showanswerkey,
  savedata,
  lang=custom,
]{dps}
\usepackage{graphicx}

%\previewOn \pmpvOn
%\useRandomSeed{number}
\inputRandomSeed
%\useLastSeed

\margins{.5in}{.5in}{.5in}{.5in} % left,right,top, bottom
\screensize{8.5in}{8.5in}          % height, width

\DeclareDocInfo
{
    title=Stat Matching Game,
    author=D. P. Story,
    university=NORTHWEST FLORIDA STATE COLLEGE\\Department of Mathematics,
    email=storyd@nwfsc.edu,
    subject=First extra credit assignment,
    keywords={statistics, matching, game},
    talksite=http://www.acrotex.net,
    copyrightyears=2006-\the\year,
}
\talkdateLabel{Version}
\version{1.0}\nocopyright

\everyTextField{\textFont{TiRo}}

\begin{embedding}
\dpsEmbedIcons
\embedIcon[name=Emoji,placement=btnEmoji]{MyEmoji.pdf}
\end{embedding}

% The dpsFinishedEvent() function fires when the puzzle is completed
% (the last question is answered). Here, we display the btnEmoji
%\begin{insDLJS}{dpsfinevent}{DPS: Btn appr finish event}
%function dpsFinishedEvent() {
%    dpsShowFld("btnEmoji");
%}
%\end{insDLJS}
\dpsFinishedEvent{dpsShowFld("btnEmoji");}

% since we are displaying btnEmoji, we need to hide it
\dpsResetHook{%
  dpsHideFld("btnEmoji");
}


% Try to prevent the student from saving the game (for some other student)
% we clear the game board if either student closes or save the document.
\clearOnCloseOrSave

\optionalPageMatter
{%
    \par\minimumskip\vspace{\stretch{1}}
    \begin{center}
    \fcolorbox{blue}{white}{%
    \begin{minipage}{.75\linewidth}\parskip3pt
    \textbf{\textcolor{red}{Instructions: }}
    On the next page of this document is a little matching game covering
    some of the statistical concepts discussed in class.
    \begin{itemize}
        \item When you turn to the next page, type in your name in the name field
        provided near the top of the page.
        \item Follow the instructions on that page on how to answer the questions.
        \item After you have correctly answered the last question correctly, a message
        appears at the bottom of the page with an evaluation of your effort.
        \item Print the completed page and turn it in to me at the next class meeting
        for (extra) credit.
    \end{itemize}
    \textbf{\textcolor{red}{Warning:}} The puzzle board is cleared if this document
    is closed or saved. Complete the puzzle in one sitting, then print the results.
    \end{minipage}}
    \end{center}
}

\rheader{}

\parindent0pt
\parskip6pt

\DeclarePuzzle
{%
    {R}{R}
    {o}{o}
    {n}{n}
    {a}{a}
    {l}{l}
    {d}{d}
    {F}{F}
    {i}{i}
    {s}{s}
    {h}{h}
    {e}{e}
    {r}{r}
}


%\writeComposingEnv

\begin{Composing}

\begin{cQ}{R}
Branches of Statistics
\begin{setContent}{R}
The two branches of statistics
are descriptive and \underbar{\hspace{.5in}}.
\end{setContent}
\end{cQ}
\begin{cA}[r]{R}
inferential
\end{cA}

\begin{cQ}{o}
Definition\begin{setContent}{o}\raggedright
\underbar{\hspace*{.5in}} is the
science of collecting, organizing, analyzing and interpreting data
in order to make decisions.
\end{setContent}
\end{cQ}
\begin{cA}{o}
statistics
\end{cA}

\begin{cQ}{n}
A frequency distribution is an example of
\underbar{\hspace*{.5in}}
\end{cQ}
\begin{cA}{n}
data reduction
\end{cA}

\begin{cQ}{a}
Find the median\begin{setContent}{a}
Find the median of the following
data:\\[1ex]
\begin{tabular}{r|ll}
2&2334&\kern6pt Key $2\,|\,4=24$\\
2&57888\\
3&344\\
3&55666\\
4&0023\\
4&566
\end{tabular}
\end{setContent}
\end{cQ}
\begin{cA}{a}
$34.5$
\end{cA}

\begin{cQ}{l}
Compute mean and standard deviation\begin{setContent}{l}
Given that $n=5$,
$\sum x = 26$ $\sum x^2 = 154$, compute $\bar x$ and $s$.
\end{setContent}
\end{cQ}
\begin{cA}{l}
$5.2$ and $2.17$
\end{cA}

\begin{cQ}{d}
Definition\begin{setContent}{d}
A \underbar{\hspace{.5in}} is a sample
in which every possible sample of the same size has the same chance
of being selected.
\end{setContent}
\end{cQ}
\begin{cA}{d}
simple random sample
\end{cA}

\begin{cQ}{F}
Measures of Position\begin{setContent}{F}
The number
\underbar{\hspace{.5in}} divides a data set in such a way that
$75\%$ of the data is less than it and $25\%$ of the data is greater
than it.
\end{setContent}
\end{cQ}
\begin{cA}[f]{F}
$Q_3$
\end{cA}

\begin{cQ}{i}
Measure of Central Tendency\begin{setContent}{i} The
\underbar{\hspace{.5in}} is the measure of central tendency
that is sensitive to outliers in the data set.
\end{setContent}
\end{cQ}
\begin{cA}{i}
sample mean
\end{cA}

\begin{cQ}{s}
$\mu$ refers to the \underbar{\hspace{.5in}}
\end{cQ}
\begin{cA}{s}
population mean
\end{cA}

\begin{cQ}{h}
Calculating the $z$-score\begin{setContent}{h}
In a data set with sample
mean of $4.5$ and sample standard deviation of $1.5$, the $z$-score
of $x = 4$ is $ z = \underbar{\hspace{.5in}}$.
\end{setContent}
\end{cQ}
\begin{cA}{h}
$-0.33$
\end{cA}

\begin{cQ}{e}
Interpreting the $z$-score\begin{setContent}{e}
If a $z$-score of a data
entry is negative, then that data entry is
\underbar{\hspace{.5in}} than mean.
\end{setContent}
\end{cQ}
\begin{cA}{e}
less
\end{cA}

\begin{cQ}{r}
The Empirical Rule\begin{setContent}{r}
The mean value of land and building
per acre from a sample of farms is $\$1200$ with a standard
deviation of $\$350$. Assuming the distribution of the data set is
bell shaped, approximately what percentage of the sample of farmers
had value of land and building (per acre) between $\$1200$ and
$\$1550$?
\end{setContent}
\end{cQ}
\begin{cA}{r}
$34$
\end{cA}

%-------------------

\begin{cA}[b]{fake1}
$5.2$ and $1.94$
\end{cA}

\begin{cA}[c]{fake2}
sample
\end{cA}

\begin{cA}[d]{fake3}
$0.33$
\end{cA}

\begin{cA}[g]{fake4}
greater
\end{cA}

\begin{cA}[j]{fake5}
median
\end{cA}

\begin{cA}[k]{fake6}
mode
\end{cA}

\begin{cA}[m]{fake7}
$Q_1$
\end{cA}

\begin{cA}[p]{fake8}
variance
\end{cA}

\begin{cA}[t]{fake9}
$35$
\end{cA}

\end{Composing}

\begin{document}

\maketitle

% these are placed on the page where they are to appear
\placeQuesIcon{\AddToShipoutPictureFG*{\AtTextCenter{\put(-72,0)
  {\dpsQuesIcon{#1}{2.25in}{9\baselineskip}}}}}
\placeOtherIcon{\AddToShipoutPictureFG*{\AtTextCenter{\put(-72,0)
   {\dpsOtherIcon[\I{\csOf{Emoji}}]{btnEmoji}{2.25in}{9\baselineskip}}}}}


\def\answidth{1.7in}
\def\queswidth{2in}
\def\commondepth{5.5in+6pt}

{\bfseries\noindent
\makebox[\textwidth]{\rlap{STA 2023}\hfill\textcolor{blue}{\webtitle}\hfill\llap{Statistics}}
\makebox[\textwidth]{\rlap{\webauthor}\hfill\textcolor{blue}{Descriptive Statistics}\hfill\llap{Fall 2006}}}

\underbar{\textbf{Name:} \textField[\BC{}]{dpsSignInName}{2in}{11bp}}

\textcolor{red}{\textbf{Instructions:}} Select a question from the
left panel by clicking its checkbox. Find the answer listed in
either the right panel.  No guessing! A maximum of $\dsthreshold$
tries on any problem before you get $\dspenaltypoints$ penalty
points!  Passing is to complete the puzzle with only $\dspassing$
incorrect answers.

\fbox{\begin{minipage}[t][\commondepth][t]{\queswidth-2\fboxsep-2\fboxrule}\raggedright
\makebox[\linewidth]{\centering\textbf{Questions}}
\begin{enumerate}\itemsep3pt plus 1pt minus 1pt
\displayRandomizedQuestions
\end{enumerate}
\end{minipage}}%
%
\fbox{\begin{minipage}[t][\commondepth][t]{\linewidth-\answidth-\queswidth-2\fboxsep-2\fboxrule}
Who is considered the founder of modern statistics? The answer is
hidden in the puzzle below.\par\smallskip
\begin{center}
\parbox{2.2in}{\insertPuzzle{6}}
\end{center}
\makebox[0pt][s]{\hspace*{-\fboxsep}\rule{\linewidth+2\fboxsep}{.4pt}\hss}
\vfill
\placeMessageField{\linewidth}{10\baselineskip}%
\end{minipage}}%
%
\fbox{\begin{minipage}[t][\commondepth][t]{\answidth-2\fboxsep-2\fboxrule}\raggedright
\makebox[\linewidth]{\textbf{Answers}}
\begin{itemize} \itemsep2pt plus 1pt minus 1pt
\displayRandomizedAnswers
\end{itemize}
\par\smallskip
\end{minipage}}%

\textbf{\textcolor{red}{Important:}} Don't forget to print the puzzle page and to hand it in to me.

Print this page: \printDPS{}{11bp}\cgBdry[1ex]
Try again: \resetDPS{}{11bp}

\end{document}