A Web Simulator to Assist in the Teaching of Bayes’ Theorem
Abstract
University of the Basque Country: GIU17/011
Full text
Full Terms & Conditions of access and use can be found at https://www.tandfonline.com/action/journalInformation?journalCode=ujse20 Journal of Statistics Education ISSN: (Print) 1069-1898 (Online) Journal homepage: https://www.tandfonline.com/loi/ujse20 A Web Simulator to Assist in the Teaching of Bayes’ Theorem M. J. Bárcena, M. A. Garín, A. Martín, F. Tusell & A. Unzueta To cite this article: M. J. Bárcena, M. A. Garín, A. Martín, F. Tusell & A. Unzueta (2019) A Web Simulator to Assist in the Teaching of Bayes’ Theorem, Journal of Statistics Education, 27:2, 68-78, DOI: 10.1080/10691898.2019.1608875 To link to this article: https://doi.org/10.1080/10691898.2019.1608875 © 2019 The Author(s). Published with license by Taylor & Francis Group, LLC Published online: 12 Jun 2019. Submit your article to this journal Article views: 2034 View related articles View Crossmark data Citing articles: 1 View citing articles
JOURNAL OF STATISTICS EDUCATION 2019, VOL. 27, NO. 2, 68–78 https://doi.org/10.1080/10691898.2019.1608875 A Web Simulator to Assist in the Teaching of Bayes’Theorem M. J. Bárcenaa,M.A.Garín a,A.Martín a,F.Tusell a, and A. Unzuetab aFacultad de Economía y Empresa, UPV/EHU, Bilbao, Spain; bEscuela de Ingeniería, UPV/EHU, Bilbao, Spain ABSTRACT Teaching some concepts in statistics greatly benefits from individual practice with immediate feedback. In order to provide such practice to a large number of students we have written a simulator based on an historical event: the loss in May 22, 1968, and subsequent search for the nuclear submarine USS Scorpion. Students work on a simplified version of the search and can see probabilities change in response to new evidence. The simulator is designed to assist in the teaching of Bayesian concepts, in particular Bayesian updating. It has been deployed in our courses and our experience and results are described, as well as the reactions of our students to its use. The simulator is open source, freely available and easy to implement and run, as it only requires a machine to serve web pages. We explain in detail our experience with its deployment and use. KEYWORDS Bayesian statistics; Statistics; Simulator 1. Introduction Bayes’ theorem, in its simplest form expressible as P(A|B)=P(B|A)P(A) P(B),(1) provides a way to “invert” probabilities: from the conditional probability of Bgiven Aand the respective marginals, the probability of Agiven Bcan be computed. Although it is simple and canbepresentedandprovedinamatterofminutes,thisisa concept that requires time for students to grasp. We have found useful over the years to present some examples that help enhance student’s comprehension of the practical implications of (1). Medical diagnosis is one: the probability P(A|B)of having a sickness Agiven the presence of symptom Bcanbeobtainedintermsoftheprobabilityofthesymptom giventhesicknessandtherespectivemarginalprobabilitiesof sickness and symptom. This nicely illustrates the way to revise a prior P(A)in the light of newly available information B. Acquiring familiarity with the concepts involved requires, much as the acquisition of a new language, repeated interaction with (1), beyond the few examples that can be presented in class. Such familiarity can be fostered by assigning homework to be done by students and later graded, but this imposes a considerable burden on the teachers and provides, at best, delayed feedback to the student. We thought that a simple simulator, presenting each student a unique instance of a problem, with immediate feedback and automatic grading, would be much preferable. This article reports on our work in this direction. Section 2 reviews some work which addresses similar goals as ours or which we have otherwise used for inspiration. Section 3 briefly describes the story we have used, in a simplifiedrecreation,tomotivateagameinwhichstudents CONTACT F. Tusell fernando[email protected] Facultad de Economía y Empresa, UPV/EHU, Avda. Lehendakari Aguirre, 83, Bilbao, Spain. Supplementary materials for this article are available online. Please go to www.tandfonline.com/ujse. arerequiredtolocateamissingsubmarine.Section 4 describes the implementation. We tested the use of our simulator on our introductory course on statistics to sophomores, when Bayes’ theorem is first presented; Section 5 gives some details about the results obtained. Section 6 closes with some comments. 2. Motivation and Available Resources 2.1. Motivation In the last few decades, there has been a clear trend toward Bayesian statistics which was previously almost entirely neglected by practicing statisticians: McGrayne (2012)tells the fascinating history. However, this trend seems to have been much slower in statistical teaching in spite of vigorous allegations advocating for change (Cobb 2015;Witmer2017). In our courses, Bayes’ theorem is introduced at a very early stage, just three weeks after starting the first introductory course to Statistics and Data Analysis. We consider this early introduction of the utmost importance, even if statistical techniques taught later are (still) classical in the main. It gives students a broader perspective which helps them understand the frequentist interpretation of probability first, then of inference (Page and Satake 2017, p. 263, further elaborates this point). On the other hand, at least for some students, it is thrilling to findrightattheverybeginningofthesubjectastillcontroversial questionaboutwhatitisthe“right”waytolearnfromdata. 2.2. Available Resources In an attempt to introduce some practice in Bayesian statistics beyond simple classroom examples, we searched the Internet for teaching aids. We did not find anything covering, in a simple way, the precise topic we wanted our students to practice © 2019 The Authors. Published with License by Taylor & Francis Group, LLC. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. The moral rights of the named author(s) have been asserted.
JOURNAL OF STATISTICS EDUCATION 69 (Bayesian updating of probabilities), although there are abundant resources which make use of games or simulations of some sort. Most examples we have found are related to experimental design and some have a history that goes back to pioneering papers Mead and Stern (1973)andPike(1974); see Stern, Latham, and Stern (2009)forinstance. Closer to our goal of introducing students to the rudiments of Bayesian thinking is Erickson (2017), which proposes two examples of activities. It emphasizes graphical aids in the form of mosaic plots to help build intuition. Downey (2012)isawonderful book with lots of worked examples that guide the reader who is reasonably proficient in Python. It could be adapted to usewithR,whichisprevalentatourinstitution,butstillwould require more skills in programming than we can assume of most of our students. Witmer (2017), in turn, presents an experience of introducing Bayesian ideas through Markov chain Monte Carlo (MCMC) at the undergraduate level. Ourgoalislessambitious:wewantedasimpleteachingaid to help understand the very foundations of Bayesian thinking, namely how a priori probabilities are updated to a posteriori probabilities in the light evidence, and how these a posteriori become established a priori knowledge to be used at a next step. We did not find a tool to do exactly that, which led us to develop the simulator described in Section 4 around the story in Section 3 next. 3. The Loss of the USS SCORPION 3.1. The History The USS Scorpion was a nuclear submarine in the U.S. Navy. It disappeared on May 22, 1968, close to the Azores archipelago, when returning to its base in Norfolk from a mission. The reasons are as yet uncertain. There was speculation about an explosion, accidental activation of a foul torpedo, a Soviet attack, and various malfunctions. After several days elapsed without contact, the search for the submarine started. The vicinity of the last known position of the ship was divided in 400 sectors. An a priori probability of containing the remaining of the ship, using available information and expert’s assessments, was ascribed to each such sector. The search was conducted using methods of Bayesian search theory, on the advice of statistical experts. These methods had been used with success in the search of a hydrogen bomb accidentally dropped by a B52 bomber off the southern coast of Spain, near Palomares, in 1966. The search for the USS Scorpion also ended with success in October 1968, when parts of the submarine were found in the sea bed under 3000 m of water, some 400 nautical miles southwest of the Azores. BothCressieandWikle(2011) and McGrayne (2012)contain statistically oriented accounts of the USS Scorpion search. Wikipediaalsohasagoodaccountandanumberofpointers to other sources of information. An interesting follow-up, more technical, is Davey et al. (2016), presenting Bayesian search techniques in the case of the lost Malaysian Air Lines flight MH370, in 2014. We closely follow the first reference in the short summary of relevant theory next. 3.2. Bayesian Approximation Let Yibe a random variable with two states: Yi=0means“The submarine is not present in sector i,” w hil e Yi=1meansthe opposite. Likewise, let Xibe a random variable coding the outcome of searching a sector i.LetXi=0ifthesubmarineisnotfoundin said sector and Xi=1ifitis. Clearly Xiis dependent on Yi: • If the submarine is not present in the ith sector, it cannot possibly be located in that sector, so: P(Xi=1|Yi=0)=0. • On the other hand, if it is indeed present in the ith sector, the probabilitythatitwillbefoundisp: P(Xi=1|Yi=1)=p. A search is not guaranteed to be successful, so p<1: there is a nonzero probability that we fail to detect the submarine in asearchoftheith sector, even though it is really there. Assume that the a priori probability of the submarine being in the ith sector is πi.Ifwesearchthatsectortonoavail,the probability a posteriori that the ship is there is, using (1) P(Yi=1|Xi=0)=P(Xi=0|Yi=1)P(Yi=1) P(Xi=0) =P(Xi=0|Yi=1)P(Yi=1) P(Xi=0|Yi=0)P(Yi=0) +P(Xi=0|Yi=1)P(Yi=1) =(1−p)πi 1×(1−πi)+(1−p)πi =πi (1−p) 1−pπi (2) We call the attention of students on the fact that, as intuition suggests, failure to locate the submarine in a search of sector i does not preclude the possibility that it is there, but makes the posterior probability smaller than the prior probability: the ratio (1−p) 1−pπi which multiplies πiin (2) is less than one, the more so the greater pis. As a consequence of a fruitless search of sector i,theprobabilities of all others sectors are also modified. For j= i,wehave P(Yj=1|Xi=0)=P(Xi=0|Yj=1)P(Yj=1) P(Xi=0) =1×πj 1−pπi =πj 1 1−pπi .(3) Again as intuition suggests, the fact that the submarine is not located by a search of sector ienhances our belief that it is in any of the sectors j= i, for the factor that multiplies the prior probability πjin (3)isgreaterthanone.
70 M.J. BÁRCENA ET AL. Figure 1. Initial screen of simulator. 4. The Simulator: Use and Implementation 4.1. Design Goals We did not seek a tool to introduce Bayes’ theorem, but rather a tool to practice theory previously learned although perhaps not fully internalized. Consequently, Bayes’ theorem and its application to the problem at hand is taught in class, roughly along the lines of Section 3.2, and a handout describing the practice and how to use the simulator is given in advance to students. We had to serve a large number of students, not all of them in one location. This, in practice, reduced the choices to a webbasedsimulator,requiringnothingelseontheclientsideother than a Javascript-enabled web browser. Students can use the simulator from any computer room on campus or from their own computers at home. The implementation is light, runs off a single server and can be easily understood and changed. Simulation parameters like the number of initial regions, parameter p, generation of initial a priori probabilities, etc. require fairly simple changes to the source. 4.2. Setup Our simulator faces the student with the same decisions that the search team of the USS Scorpion had to make, but in a rather simplified setting: instead of 400 sectors only nine are presented in a map (see Figure 1). Prior to use of the simulator, students are given a write-up containing essentially the information given in Section 3 of the present article. To start using the simulator, the student only has to press the button Start in the bottom left corner. The simulator then generates a random instance of the game assigning a priori probabilities to all nine searchable sectors and places a search vessel next to the southwest corner of the searchable area. Clicking on any one sector gives information on its a priori probability at any time; this probability is also encoded as color saturation in apaletteofgreens 1(Figure 2). The first search is trivial: just go to the sector with higher a priori probability. In order to do that, the student just has to drag with the mouse the search vessel to the sector chosen and either click on it or on the button Search in the southwest corner; the latter alternative has been found necessary for players using small screens such as tablets or cellular phones. After each student’s choice, the simulator updates the counters at the top of the page (last sector searched, number of searches, “correct” and incorrect searches, points earned). A search is “correct” if the sector with the largest probability is chosen. Points earned are ten times the ratio of correct to total searches, so a score of 10 means that the student chose every time to search the most likely rectangle. The simulator will tell the student whether the submarine isfound,inwhichcasethegameends,orelseupdatethea priori probabilities of each of the sectors, in light of the last fruitless search. These updated probabilities, though, are neither displayed nor color-encoded in the screen, which always shows probabilities prior to the last search: the πiof Equations (2) 1A different palette, less visually pleasing, is available for color blind students, should the need arise.
JOURNAL OF STATISTICS EDUCATION 71 Figure 2. Simulator screen after one correct but unsuccessful search. and (3).Itisthestudent’stasktodotheupdatingusingthese formulas. Studentsaretoldthevalueofp—the probability that a search of the right rectangle will unveil the submarine—which in the experiment described later was set at p=0.60. They can be told or allowed to discover by themselves that, as they proceed with the game, they only have to update two probabilities: that of the recently searched sector, which might remain the most promising in spite of a failed attempt, and that of the previously most likely sector—since the Bayesian updating multiplies the a priori probability of all sectors different from the one just searched by the same factor and so preserves their order; see Equation (3). Thegameendswhenthesubmarineisfinallylocated,and the points earned are saved. It is up to the instructors to let the students play once or (our choice) as often as they wish, keeping only their last score. 4.3. Implementation Aspects ThesimulatoriscodedinJavascriptusingthelibraryleaflet2for the map presentation. We cheated a bit in the implementation. In fact, the submarine is not randomly allocated to any sector. What we randomize at the start of the game is the minimum number of trials the student will have to go through: this is toavoideventslikefindingthesubmarineatthefirsttrial, that would give the maximum score without a record of consistently good search choices. No matter what, the student willhavetomakeanumberofsearches(atleastsixinthe currentimplementation,butthisiseasytochange),sowe 2See http://leafletjs.com. canbeassuredthatascoreof10meansconsistentgood useofBayesupdatingandnotjustaluckysinglechoice that finds the submarine on the first or second random attempt. Another aspect that teachers might want to fine tune is the parameter p—the probability of success when searching the correct sector. It follows from the previous paragraph that it has no influence in the length of the game, but it does have a large influence in the updating of the a priori probabilities. Ifsettoohigh,anunsuccessfulsearchwilldramaticallylower the posterior probability of the searched sector: the subsequent choice will then almost invariably be the sector that had the largest a priori probability before the last search. Students might soon notice the pattern and play with no resort at all to formulas in Equations (2) and (3)—which defeats the purpose of the simulator. It is therefore advisable to set pat a moderate value. We have tried in the vicinity of 0.6 with good results. 5. Deployment and Results We have tested the simulator with undergraduate students taking a first quarter in statistics, covering probability, random variables, density and distribution functions, moments, characteristic function, etc. which lay the foundation for a second quarter on Inferential Statistics. It is in this course that Bayes’ theorem is first discussed. Our students are all in the sophomore year of Business, Economics or Business and Law degrees. The last group (double major in Business and Law) tend to be composed of better performing students, as the entrance requirements are stricter. The mathematical background of all groups is similar: two quarters of Calculus and Algebra.
72 M.J. BÁRCENA ET AL. 5.1. Test We devised a short exam with questions in which students were required to recognize whether the use of the word “probability” had a Bayesian or frequentist flavor. For instance, When we say that the probability that the Malaysian Airlines plane lost in 2014 (flight MH370) is in a given area in the Pacific ocean with probability p=0.01, are we using the word ‘probability’ in a Bayesian or in a frequentist sense?. We also included the simplest problem we could think of which required sequential application of Bayes’ theorem—what the simulator is designed to provide training for. It read, (a) In a foggy day, a hiker suffers an accident when returning from a mountain. He believes that with probability 0.60 he is in the North slope, but with probability 0.40 he might have ended in the South slope. Before using his cellular phone to ask forhelp,hewouldliketobetterfixhislocation.He remembers that in the North slope beech trees are prevalent (70% of the total) with the rest being oak trees (15%) and yew trees (15%), while in the South slope the proportions are 30% beech trees, 60% oak trees and 10% yew trees. He approaches the nearest tree and realizes that it is an oak tree. Using this information, the probability that he is in the North slope is, approximately... This is a simple example in which students can use the available information to revise their prior probability and obtain aposteriorprobability.Thiswasfollowedby: (b)Afterhavingfoundthetreementionedin the previous question, he walks further and finds another tree, which he recognizes as being a yew tree.Hethenfallstotheground,exhausted.Where will he tell the rescue brigade to search for him, in the North or South slope? The intent is to go one step further. Here, we want the student to recognize that the posterior from (a) can be used as a prior in (b)—the essence of Bayesian learning that our simulator targets. 5.2. Assessment Method Our first thought was to devise a standard experiment, either randomizing the “treatment” (= use of simulator) or taking pairs of students matched according to their ability (measured by their grade point average, for instance) and assigning within each pair one to the group of simulator users and the other to the group of nonusers. We would then compare performance of both groups when taking the test described in the previous section. However,sincethetestwastogivecredittowardthecourse grade this would create an unfairness toward the students that werenotassignedtothesimulatorgroup.This,inourcontext, cannot be contemplated. On the other hand, there is no way in which we could ensure that the untreated or control group wasreallyuntreated:outofcuriosityorotherwiseanystudent could use the simulator and thus contaminate the control group. We therefore decided that we would administer the test twice, before and after giving a chance to use the simulator. We were fully aware that the second time the test is taken a better performance is to be expected, even for nonusers of the simulator. But we counted on measures of use of the simulator (time spent, score obtained when using it) as well as on having some accidental “controls”: students who for various reasons wouldnotusethesimulator.Thatwouldenableustodisentangle the effect of using the simulator and the effect of mere repetition of the test. As it happens, the control group was larger than we expected. After covering Bayes’ theorem in class, we required students to take the test described above. They were then encouraged to freely use the simulator for a period of five days: this freeusepolicyandthefactthatonlythelastscorewouldbe recorded was made clear to them beforehand, as well as the fact that use of the simulator might be of some help in a second test. Then, the same test was given again, complemented with a few questions regarding whether they had found the use of the simulatortobeeasy,rewarding,howmuchtimetheyhadspent on it, etc. The fact that we have the same students take the first and second tests enables us to account for differences in student ability.Theproblem,ofcourse,isthattherecanbeaselfselection effect: more motivated students might choose to use the simulator in greater proportion than the others. Below we report on some evidence of this effect in the results: it may have been countered by the fact that better performing students, after obtaining a good grade in the first test, did not see room for improvement and therefore neglected the use of the simulator. 5.3. Results and Modeling Both tests were administered in the Fall Term of 2017 in the form of multiple choice questionnaires, to avoid any subjective biases from the graders. As Figures 3 and 4imply,theyweregraded on a 0–10 scale (the color-coded simulator scores were also in a 0-10 scale). A total of 241 students participated, but 52 were absent in either the first or second test (preand post-test in the sequel). Therefore, we observed 189 students who took both the first and second test plus 52 who only took one of the tests. Figure 3 shows the breakdown of grades of the common set of questions in the preand post-test. (Subjective questions in the post-test as to whether the simulator had been useful, fun, etc. were not graded.) Clearly, there is an improvement, particularly apparent in the larger median grade for the subset of students that used the simulator. Also, grades below 2.5 points were entirely absent among the simulator users. A different, more insightful view, is provided by Figure 4.The performance of each student is shown by a point, whose coordinates are the grades in the first and second test. (Points have
JOURNAL OF STATISTICS EDUCATION 73 Used simulator Did not use simulator First test Second test First test Second test 0.0 2.5 5.0 7.5 10.0 Test Grade Test First test Second test Figure 3. Breakdown on grades in preand post-test according to use of simulator. been jittered, to reduce overploting.) The two panels show the performance of students who did and did not use the simulator. Further, for those who did use the simulator, the score obtained is color-coded in the left panel. The red lines mark show equal grades in the first and second tests: points above the red line indicate an improvement. We expected all scores using the simulator to be equal or close to the maximum 10, given our policy of “use for as long as you wish,keeponlyyourlastgrade.”Asamatteroffact,thishasnot been the case: some students abandoned the task earlier with low or even zero scores. However, although improvement in the second test is not clearly related to the simulator score, it seems much more consistent among students who used the simulator, whatever score they obtained. When we break down the results by group, Figure 5,wefind that students in the ADEDE group (double degree in Business and Law) did much better than students in either of the single degrees of Business (ADE) or Economics (ECO). It is apparent also that ADEDE students not only obtained higher scores when using the simulator, but also used it in a larger proportion (more colored points in Figure 5), which points to a possible problem of sample self-selection addressed earlier. To obtain a more formal assessment of the effect of the simulator, we have fitted several linear models. A natural approach would be to consider for each student the difference in grades obtained in the first and second test as a response variable, and relate that difference to the use (or not) of the simulator, and possible other factors. In other words, to use a paired comparisons approach. However, a total of 52 observations are not paired: some students took the first test and not the second or vice versa. In order to use also these observations, we have fitted several linear mixed models, Demidenko (2004), in which the response variable is the grade obtained in either of the tests. Differences in the individual performance of students are accounted for by a random effect, as individuals are of no interest in themselves. The simulator effect, “repeat” effect, and group effect are introduced as fixed effects. All models have been fitted in R, R Core Team (2017), using package lme4 (see Bates et al. 2015). Model 1 is, in the usual notation, Grade =1+(1|ID) +Rep; variable Rep is a dichotomous variable taking value 0 for 230 observations corresponding to the first test and 1 for 200 observations corresponding to the second. (1|ID) is a random term, different for each student and reflecting his or her individual ability. It is of no interest in itself—we know students to be
74 M.J. BÁRCENA ET AL. Used simulator Did not use simulator 0.0 2.5 5.0 7.5 10.0 0.0 2.5 5.0 7.5 10.0 0.0 2.5 5.0 7.5 10.0 Grade first test Grade second test 0.0 2.5 5.0 7.5 10.0 Score using simulator Figure 4. Individual performances in preand post-test according to use of simulator and score obtained. Each point is color-coded reflecting the score obtained when using the simulator (right legend), with students who did not use it shown in gray. different—but useful to allocate the part of variance that is explained by student’s heterogeneity. The coefficient of Rep (the “repeat” effect) is positive and highly significant (refer to column Model 1 in Table 1). Its value in this model reflects the (possible) effect of the use of the simulator for some students, as well as the fact that (for all) better performance should be expected the second time the students took the test, irrespective of whether or not they used the simulator. To disentangle the effect attributable to the simulator from that of mere repetition of the exam, we can fit the model Grade =1+(1|ID) +Rep +Used.sim, where Used.sim is a dichotomous variable taking value 1 for observations corresponding to the second test of students who did use the simulator. The estimation results can be seen in column “Model 2” of Table 1. A test of Model 2 versus Model 1, see Table 2, shows a decrease of 5.922 in deviance, highly significant (p=0.015). (There is a very small mismatch with the values of the log-likelihood and model criteria AIC and BIC reported in Table 1, possibly consequence of different methods of computing the log-likelihood and degrees of freedom.) However, when we fit the model Grade =1+(1|ID) +Rep +Used.sim +Group (results in column Model 3 of Table 1), the coefficient of Used.sim becomes non-significant: it seems that it is partly confounded with the Group effect. This was to be expected since, as it is apparent from Figure 5, students in group ADEDE, who are clearly better performers, have also used the simulator in greater proportion. The Group effect is of paramount importance and accounts for a decrease of 19.288 in deviance, reducing the variance accounted by the random effect ID from 2.52 to 2.13, a reduction of about 15%: part of the heterogeneity among students is in fact a difference between groups. 5.4. Student’s Feedback The second test included a few questions regarding the experience with the simulator. Students were told that these questions hadnoreflectwhatsoeverintheirgrades,butresponsewas nonetheless total among students having used the simulator. Their perception of whether playing with the simulator was of any help did not clearly correlate with their performance—see
JOURNAL OF STATISTICS EDUCATION 75 ADE ADEDE ECO 0.0 2.5 5.0 7.5 10.0 0.0 2.5 5.0 7.5 10.0 0.0 2.5 5.0 7.5 10.0 0.0 2.5 5.0 7.5 10.0 Grade first test Grade second test 0.0 2.5 5.0 7.5 10.0 Score using simulator Figure 5. Breakdown of grades in preand post-test according to use of simulator per group. Each point is color-coded reflecting the score obtained when using the simulator (right legend), with students who did not use it shown in gray. Table 1. Effect on Grade of use of simulator. Model 1 Model 2 Model 3 (Intercept) 5.60∗∗∗ 5.61∗∗∗ 5.25∗∗∗ (0.18)(0.18)(0.22) RepYES 1.24∗∗∗ 0.99∗∗∗ 1.04∗∗∗ (0.22)(0.24)(0.24) Used.simYES 1.08∗0.75 (0.44)(0.45) GroupADEDE 2.12∗∗∗ (0.48) GroupECO 0.40 (0.32) AIC 2083.28 2079.17 2064.15 BIC 2099.53 2099.49 2092.60 Log-likelihood −1037.64 −1034.58 −1025.08 Num. obs. 430 430 430 Num. groups: ID 241 241 241 Var: ID (Intercept) 2.66 2.52 2.13 Var: Residual 5.04 5.06 5.07 NOTE: ∗∗∗p<0.001, ∗∗p<0.01, and ∗p<0.05. Figure 6. Whether they said it had been of no, little, moderate or significant help, their performance in the second test appears to be better—except perhaps, quite paradoxically, for those who were more convinced of the usefulness of the simulator. This may be due to the fact that they were good performers in the first test and therefore with little room for improvement. On the other hand, when asked about how much time they spent playing with the simulator, there seems to be a clear pattern of greater improvement for those who spent more than 30 minutes on the simulator: see Figure 7. The median grade went from 6.4 to the maximum of 10; for all the other categories, an upward shift in grades is visible, but—except for the “None” category—the medians remain the same. It is also apparent that those that used the simulator had a higher median grade in the first test. 6. Discussion The evidence we can present on the impact of the simulator is not conclusive: the partial confounding with group effect preventsusfrommakingstrongclaimsabouttheusefulnessofthe simulator. However, what we can learn from the observational