Presentation is loading. Please wait.

Presentation is loading. Please wait.

By Arthur Dryver, PhD 1 and Wasita Boonsathorn, PhD 2 1 Graduate School of Business Administration, NIDA URL:

Similar presentations

Presentation on theme: "By Arthur Dryver, PhD 1 and Wasita Boonsathorn, PhD 2 1 Graduate School of Business Administration, NIDA URL:"— Presentation transcript:

1 By Arthur Dryver, PhD 1 and Wasita Boonsathorn, PhD 2 1 Graduate School of Business Administration, NIDA URL: 2 School of Human Resource Development, NIDA

2 My Background – High Level Presently teaching within the School of Business Administration at NIDA, Bangkok Thailand (Been there over 9- years) Worked in consulting in America for 4 years – first firm worked for was PriceWaterhouseCoopers Ph.D. in Statistics from Pennsylvania State University Undergraduate at Rice University, TX



5 School Work Due one week or more Feedback a month… ASAP Sometimes immediate feedback also

6 The amount of examples for going from confusion to understanding differs for each student

7 I often ask myself two main questions 1. How can I give all my students at least access to all the examples they may need to understand at least the basic material? 2. How do I enhance learning for all students without simply forcing everyone to do a ton of examples?

8 Finally, I’ll go over the direction I selected and why.

9 Outline The power of random number generation Some platforms for leveraging random number generation: R, Sweave, and LaTeX Microsoft Excel Online and JSP Summary

10 With a focus on teaching statistics

11 Why use random number generation? Simulate realistic from small to large datasets. One can’t find real data and many examples for everything taught. Creating numbers just off the top of your head is limited and can be time consuming in its own way when trying to think of all the scenarios and making a good dataset for students to work with. Impossible if want a large dataset

12 Random Number Generation for Teaching Applied Statistics Teachers, wanting to avoid present students copying from previous batches of students in their class, would have to create new problems, at least new numbers for the problems each year. Even further individual assignments so no direct copying. Many students consider knowing the answer as understanding, which is often not true. For example, there is a big difference between knowing that 2+2=4 and understanding addition.

13 Random Number Generation for Teaching Applied Statistics To provide students with an ample number of problems to practice and homework, quizzes, etc., can be a large amount of work for the teacher each year. For a concrete example of how even something simple as reading computer output could require a lot of examples imagine a one sample t-test. How many different scenarios are there when looking at two- sided p-value from computer output?

14 There are 5, a two-sided test and then 4 different scenarios for converting the two-sided p-value into a 1-sided: Thus for only 3 examples of each possible scenario of a one sample t-test the instructor needs to create 15 examples. pval2s stands for 2 sided p-value

15 SPSS Workload Using Random Number Generation All from data simulation to analysis, even grading

16 Leverage 1 st leverage the power of the computer 2 nd leverage your own work/code H A :µ<75 coded easy to modify code for H A :µ>75 coded, etc.

17 Thus Imagine Using Random Number Generation Imagine having nearly an unlimited supply of applied statistical problems for each problem type to use. Imagine the freed up time from making up numbers and solving each problem individually. Imagine the ability to focus on the problem types, scenarios accompanying the numbers.

18 Using R, Sweave an R function, and LaTeX one can create PDF files with tons of examples

19 Why: R, Sweave, and LaTeX R, Sweave, and LaTeX are all free of charge. Many people already know R and LaTeX, for those people learning the R function Sweave will not be difficult. Those with a lot of lecture notes in LaTeX this can directly fit into your existing notes. R has a ton of advanced statistical functions already built in. For teaching advanced statistics and wanting to use random number generation this is one of the easiest platform to use. Much easier than C++, JAVA, etc. Something to consider if you are coding things yourself

20 R, Sweave, and LaTeX Combining R, Sweave, and LaTeX one can create an almost unlimited number examples, in terms of numbers. Using the package Sweave one can create a PDF file directly from within R. A version of LaTeX must also be installed.

21 Example Sweave Code – Matrix Inverse >= library(lattice); library(xtable) ## DATA GENERATION y2<-matrix(floor(runif(9, min=-20, max=20)),nrow=3, byrow=T) ## QUESTION/ANSWER \begin{question} Solve for the determinant and inverse of the following matrix \SweaveOpts{echo=false} >= print(xtable(y2,caption="X matrix"),include.rownames=FALSE, \begin{solution} The determinant equals $\Sexpr{det(y2)}$ and the inverse is:\\ \SweaveOpts{echo=false} >= print(xtable(solve(y2),caption="The inverse of the X matrix",digits=4),include.rownames=FALSE, \end{solution} \end{question } Not a lot for Matrix Inverse but you definitely need to be comfortable with R and LaTeX

22 Example R Code The below 2 commands are perhaps an over simplification of what is needed to run the package Sweave and create a PDF file you literally only need 2 lines of code. 1. Sweave(file1) 2. texi2dvi(file=file1, pdf = TRUE, clean = TRUE, quiet = TRUE,texi2dvi = getOption("texi2dvi"), texinputs = NULL) Reminder – See PDF file form my Regression Class Reminder – See PDF file form my Regression Class


24 Why: Microsoft Excel Most people that work with data will use Excel for at least basic statistics like the average and basic graphs/chats. It is easy to use. Can also be used with PowerPoint lecture notes very easily. One negative is for advanced statistics you’ll need to purchase an add-in package. For example:

25 How: Microsoft Excel Using random number generation in Microsoft Excel, it is possible to create many basic math and statistics problems. The words would not change but the function “rand()” could be used to create random numbers for each problem. The teacher could use the copy and paste function in Excel to create multiple problems from a single problem template in this manner. Static: The teacher could copy paste special as values to make the numbers static. Dynamic: The teacher can refresh the numbers on demand to change the numbers in the problem.

26 For updating and automatic grading for homework

27 For updating and automatic grading for homework using Microsoft Excel First, create a template sheet with random numbers for questions and formulas for checking answers.

28 Step 1: Create the problems in Excel. Create answer boxes for students to enter their Answers. I highlighted mine in yellow.

29 Correct answers using formulas. Change numbers and answers are still correct. Students answers using linked to yellow boxes Check if number equals correct answer within your given margin of error of 0.02 or whatever you choose. 1 if correct, 0 otherwise Sum of correct to get total score.

30 Highlight All Cells and “Lock” them.

31 Select all the “student answer cells” at once, hold “ctrl” button to select multiple cells – the ones in yellow. Right click and click on format cells. Go to protection and “unlock” – remove the check mark. This is necessary so that when you protect the worksheet students can still enter their answers on the yellow boxes.

32 Highlight everything you don’t want the student to see. Right click and click on “Hide” to hide the answers and stuff you want hidden, like their scores.

33 Right click on the sheet you wish to protect – make unchangeable except the answer boxes. Then click “protect sheet.” Enter a password and now only you can access the “locked “cells.

34 Check what you want users to be able to do. Then Enter password.

35 Re-enter password - microsoft asks twice. Also do not forget the password. If students ever get your password they can get the answers thus be careful about this. You’re Done!!!!!

36 Right click on the sheet you wish to unprotect – after students return their answers via and then unhide to get the grade on the students homework. For Grading Just unprotect and unhide the answers the students send back. Reminder: Go over example with Excel.


38 Why: Online Using the Internet we can offer a near unlimited audience to a near unlimited set of problems. Online is also easier to combine efforts across teachers. Immediate feedback – automatic grading Can force students to complete each problem type X number of times correctly in a row before moving forward. Basically wrong answers causes students to work harder and learn without forcing the instructor to grade/work more. I offer my online homework free to those interested From Descriptive statistics to Simple Linear Regression You personally can easily add questions to my database to ultimately use.

39 Online and JSP – Students Use Reminder: go over my online homework: Examples, from my website:

40 Online and JSP – Professors Use Examples, from my website for making question types: a.jsp?qtype=1&qname=Descriptive%20Statistics a.jsp?qtype=1&qname=Descriptive%20Statistics Examples of getting grades: Example grade file

41 Concluding Remarks

42 Summary – Concluding Remarks Through random numbers we can offer students a nearly unlimited supply of problems to work out. We can force students to demonstrate “mastery” of a topic before allowing them to move forward. Think of the saying, “Practice makes perfect.” We can do this without creating an unbearable amount of extra work for the instructors. We can even eliminate grading and automate it.

43 My Choice I have tried all of these and I think online is the best. I mainly teach MBA students and PhD students within the school of business. My online system is also presently used in the Human Resource Department by another professor also as online homework for her class on research methodology. Why I think online is the best Automatic feedback Don’t allow students to decide not to learn a topic. Forcing students to do the problems over and over until they demonstrate the ability to do it correctly. I require 5 times in a row correct before moving forward. Students focus on how to do not grades. I give full credit if done on time, some students still don’t do it on time because it isn’t easy. Those interested in using my website may contact me at I offer it free for those interested

44 44

Download ppt "By Arthur Dryver, PhD 1 and Wasita Boonsathorn, PhD 2 1 Graduate School of Business Administration, NIDA URL:"

Similar presentations

Ads by Google