Your SlideShare is downloading.
×

×

Saving this for later?
Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.

Text the download link to your phone

Standard text messaging rates apply

Like this presentation? Why not share!

No Downloads

Total Views

378

On Slideshare

0

From Embeds

0

Number of Embeds

0

Shares

0

Downloads

10

Comments

0

Likes

1

No embeds

No notes for slide

- 1. Educational Data Mining<br />March 3, 2010<br />
- 2. Today’s Class<br />EDM<br />Assignment#5<br />Mega-Survey<br />
- 3. Educational Data Mining<br />“Educational Data Mining is an emerging discipline, concerned with developing methods for exploring the unique types of data that come from educational settings, and using those methods to better understand students, and the settings which they learn in.” <br />www.educationaldatamining.org<br />
- 4. Classes of EDM Method(Romero & Ventura, 2007)<br />Information Visualization<br />Web mining<br />Clustering, Classification, Outlier Detection<br />Association Rule Mining/Sequential Pattern Mining<br />Text Mining<br />
- 5. Classes of EDM Method(Baker & Yacef, 2009)<br />Prediction<br />Clustering<br />Relationship Mining<br />Discovery with Models<br />Distillation of Data For Human Judgment<br />
- 6. Prediction<br />Develop a model which can infer a single aspect of the data (predicted variable) from some combination of other aspects of the data (predictor variables)<br />Which students are using CVS?<br />Which students will fail the class?<br />
- 7. Clustering<br />Find points that naturally group together, splitting full data set into set of clusters<br />Usually used when nothing is known about the structure of the data<br />What behaviors are prominent in domain?<br />What are the main groups of students?<br />
- 8. Relationship Mining<br />Discover relationships between variables in a data set with many variables<br />Association rule mining<br />Correlation mining<br />Sequential pattern mining<br />Causal data mining<br />Beck & Mostow (2008) article is a great example of this<br />
- 9. Discovery with Models<br />Pre-existing model (developed with EDM prediction methods… or clustering… or knowledge engineering)<br />Applied to data and used as a component in another analysis<br />
- 10. Distillation of Data for Human Judgment<br />Making complex data understandable by humans to leverage their judgment<br />Text replays are a simple example of this<br />
- 11. Focus of today’s class<br />Prediction<br />Clustering<br />Relationship Mining<br />Discovery with Models<br />Distillation of Data For Human Judgment<br />There will be a term-long class on this, taught by Joe Beck, in coordination with Carolina Ruiz’s Data Mining class, in a future year<br />Strongly recommended<br />
- 12. Prediction<br />Pretty much what it says<br />A student is using a tutor right now.Is he gaming the system or not?<br />A student has used the tutor for the last half hour.<br /> How likely is it that she knows the knowledge component in the next step?<br />A student has completed three years of high school.<br /> What will be her score on the SAT-Math exam?<br />
- 13. Two Key Types of Prediction<br />This slide adapted from slide by Andrew W. Moore, Google http://www.cs.cmu.edu/~awm/tutorials<br />
- 14. Classification<br />General Idea<br />Canonical Methods<br />Assessment<br />Ways to do assessment wrong<br />
- 15. Classification<br />There is something you want to predict (“the label”)<br />The thing you want to predict is categorical<br />The answer is one of a set of categories, not a number<br />CORRECT/WRONG (sometimes expressed as 0,1)<br />HELP REQUEST/WORKED EXAMPLE REQUEST/ATTEMPT TO SOLVE<br />WILL DROP OUT/WON’T DROP OUT<br />WILL SELECT PROBLEM A,B,C,D,E,F, or G<br />
- 16. Classification<br />Associated with each label are a set of “features”, which maybe you can use to predict the label<br />Skill pknow time totalactions right<br />ENTERINGGIVEN 0.704 9 1 WRONG<br />ENTERINGGIVEN 0.502 10 2 RIGHT <br />USEDIFFNUM 0.049 6 1 WRONG <br />ENTERINGGIVEN 0.967 7 3 RIGHT <br />REMOVECOEFF 0.792 16 1 WRONG <br />REMOVECOEFF 0.792 13 2 RIGHT <br />USEDIFFNUM 0.073 5 2 RIGHT <br />…. <br />
- 17. Classification<br />The basic idea of a classifier is to determine which features, in which combination, can predict the label<br />Skill pknow time totalactions right<br />ENTERINGGIVEN 0.704 9 1 WRONG<br />ENTERINGGIVEN 0.502 10 2 RIGHT <br />USEDIFFNUM 0.049 6 1 WRONG <br />ENTERINGGIVEN 0.967 7 3 RIGHT <br />REMOVECOEFF 0.792 16 1 WRONG <br />REMOVECOEFF 0.792 13 2 RIGHT <br />USEDIFFNUM 0.073 5 2 RIGHT <br />…. <br />
- 18. Classification<br />Of course, usually there are more than 4 features<br />And more than 7 actions/data points<br />I’ve recently done analyses with 800,000 student actions, and 26 features<br />
- 19. Classification<br />Of course, usually there are more than 4 features<br />And more than 7 actions/data points<br />I’ve recently done analyses with 800,000 student actions, and 26 features<br />5 years ago that would’ve been a lot of data<br />These days, in the EDM world, it’s just a medium-sized data set<br />
- 20. Classification<br />One way to classify is with a Decision Tree (like J48) <br />PKNOW<br /><0.5<br />>=0.5<br />TIME<br />TOTALACTIONS<br /><6s.<br />>=6s.<br /><4<br />>=4<br />RIGHT<br />RIGHT<br />WRONG<br />WRONG<br />
- 21. Classification<br />One way to classify is with a Decision Tree (like J48) <br />PKNOW<br /><0.5<br />>=0.5<br />TIME<br />TOTALACTIONS<br /><6s.<br />>=6s.<br /><4<br />>=4<br />RIGHT<br />RIGHT<br />WRONG<br />WRONG<br />Skill pknow time totalactions right<br />COMPUTESLOPE 0.544 9 1 ?<br />
- 22. Classification<br />Another way to classify is with step regression<br />Linear regression (discussed later), with a cut-off<br />
- 23. And of course…<br />There are lots of other classification algorithms you can use...<br />SMO (support vector machine)<br />In your favorite Machine Learning package<br />
- 24. And of course…<br />There are lots of other classification algorithms you can use...<br />SMO (support vector machine)<br />In your favorite Machine Learning package<br />WEKA<br />
- 25. And of course…<br />There are lots of other classification algorithms you can use...<br />SMO (support vector machine)<br />In your favorite Machine Learning package<br />WEKA<br />RapidMiner<br />
- 26. And of course…<br />There are lots of other classification algorithms you can use...<br />SMO (support vector machine)<br />In your favorite Machine Learning package<br />WEKA<br />RapidMiner<br />KEEL<br />
- 27. And of course…<br />There are lots of other classification algorithms you can use...<br />SMO (support vector machine)<br />In your favorite Machine Learning package<br />WEKA<br />RapidMiner<br />KEEL<br />RapidMiner<br />
- 28. And of course…<br />There are lots of other classification algorithms you can use...<br />SMO (support vector machine)<br />In your favorite Machine Learning package<br />WEKA<br />RapidMiner<br />KEEL<br />RapidMiner<br />RapidMiner<br />
- 29. And of course…<br />There are lots of other classification algorithms you can use...<br />SMO (support vector machine)<br />In your favorite Machine Learning package<br />WEKA<br />RapidMiner<br />KEEL<br />RapidMiner<br />RapidMiner<br />RapidMiner<br />
- 30. Comments? Questions?<br />
- 31. How can you tell if a classifier is any good?<br />
- 32. How can you tell if a classifier is any good?<br />What about accuracy?<br /> # correct classifications <br /> total number of classifications<br />9200 actions were classified correctly, out of 10000 actions = 92% accuracy, and we declare victory.<br />
- 33. What are some limitations of accuracy?<br />
- 34. Biased training set<br />What if the underlying distribution that you were trying to predict was:<br />9200 correct actions, 800 wrong actions<br />And your model predicts that every action is correct<br />Your model will have an accuracy of 92%<br />Is the model actually any good?<br />
- 35. What are some alternate metrics you could use?<br />
- 36. What are some alternate metrics you could use?<br />Kappa<br />(Accuracy – Expected Accuracy) <br /> (1 – Expected Accuracy)<br />
- 37. What are some alternate metrics you could use?<br />A’<br />The probability that if the model is given an example from each category, it will accurately identify which is which<br />
- 38. Comparison<br />Kappa<br />easier to compute<br />works for an unlimited number of categories<br />wacky behavior when things are worse than chance<br />difficult to compare two kappas in different data sets (K=0.6 is not always better than K=0.5)<br />
- 39. Comparison<br />A’<br />more difficult to compute<br />only works for two categories (without complicated extensions)<br />meaning is invariant across data sets (A’=0.6 is always better than A’=0.55)<br />very easy to interpret statistically<br />
- 40. Comments? Questions?<br />
- 41. What data set should you generally test on?<br />A vote…<br />Raise your hands as many times as you like<br />
- 42. What data set should you generally test on?<br />The data set you trained your classifier on<br />A data set from a different tutor<br />Split your data set in half (by students), train on one half, test on the other half<br />Split your data set in ten (by actions). Train on each set of 9 sets, test on the tenth. Do this ten times. <br />Votes?<br />
- 43. What data set should you generally test on?<br />The data set you trained your classifier on<br />A data set from a different tutor<br />Split your data set in half (by students), train on one half, test on the other half<br />Split your data set in ten (by actions). Train on each set of 9 sets, test on the tenth. Do this ten times. <br />What are the benefits and drawbacks of each?<br />
- 44. The dangerous one(though still sometimes OK)<br />The data set you trained your classifier on<br />If you do this, there is serious danger of over-fitting<br />
- 45. The dangerous one(though still sometimes OK)<br />You have ten thousand data points. <br />You fit a parameter for each data point.<br />“If data point 1, RIGHT. If data point 78, WRONG…”<br />Your accuracy is 100%<br />Your kappa is 1<br />Your model will neither work on new data, nor will it tell you anything.<br />
- 46. The dangerous one(though still sometimes OK)<br />The data set you trained your classifier on <br />When might this one still be OK?<br />
- 47. K-fold cross validation (standard)<br />Split your data set in ten (by action). Train on each set of 9 sets, test on the tenth. Do this ten times. <br />What can you infer from this?<br />
- 48. K-fold cross validation (standard)<br />Split your data set in ten (by action). Train on each set of 9 sets, test on the tenth. Do this ten times. <br />What can you infer from this?<br />Your detector will work with new data from the same students<br />
- 49. K-fold cross validation (student-level)<br />Split your data set in half (by student), train on one half, test on the other half<br />What can you infer from this?<br />
- 50. K-fold cross validation (student-level)<br />Split your data set in half (by student), train on one half, test on the other half<br />What can you infer from this?<br />Your detector will work with data from new students from the same population (whatever it was)<br />
- 51. A data set from a different tutor<br />The most stringent test<br />When your model succeeds at this test, you know you have a good/general model<br />When it fails, it’s sometimes hard to know why<br />
- 52. An interesting alternative<br />Leave-out-one-tutor-cross-validation (cf. Baker, Corbett, & Koedinger, 2006)<br />Train on data from 3 or more tutors<br />Test on data from a different tutor<br />(Repeat for all possible combinations)<br />Good for giving a picture of how well your model will perform in new lessons<br />
- 53. Comments? Questions?<br />
- 54. Regression<br />
- 55. Regression<br />There is something you want to predict (“the label”)<br />The thing you want to predict is numerical<br />Number of hints student requests<br />How long student takes to answer<br />What will the student’s test score be<br />
- 56. Regression<br />Associated with each label are a set of “features”, which maybe you can use to predict the label<br />Skill pknow time totalactionsnumhints<br />ENTERINGGIVEN 0.704 9 1 0<br />ENTERINGGIVEN 0.502 10 2 0 <br />USEDIFFNUM 0.049 6 1 3 <br />ENTERINGGIVEN 0.967 7 3 0 <br />REMOVECOEFF 0.792 16 1 1 <br />REMOVECOEFF 0.792 13 2 0 <br />USEDIFFNUM 0.073 5 2 0 <br />…. <br />
- 57. Regression<br />The basic idea of regression is to determine which features, in which combination, can predict the label’s value<br />Skill pknow time totalactionsnumhints<br />ENTERINGGIVEN 0.704 9 1 0<br />ENTERINGGIVEN 0.502 10 2 0 <br />USEDIFFNUM 0.049 6 1 3 <br />ENTERINGGIVEN 0.967 7 3 0 <br />REMOVECOEFF 0.792 16 1 1 <br />REMOVECOEFF 0.792 13 2 0 <br />USEDIFFNUM 0.073 5 2 0 <br />…. <br />
- 58. Linear Regression<br />The most classic form of regression is linear regression<br />Alternatives include Poisson regression, Neural Networks...<br />
- 59. Linear Regression<br />The most classic form of regression is linear regression<br />Numhints = 0.12*Pknow + 0.932*Time – 0.11*Totalactions<br />Skill pknow time totalactionsnumhints<br />COMPUTESLOPE 0.544 9 1 ?<br />
- 60. Linear Regression<br />Linear regression only fits linear functions (except when you apply transforms to the input variables, which RapidMiner can do for you…)<br />
- 61. Linear Regression<br />However…<br />It is blazing fast<br />It is often more accurate than more complex models, particularly once you cross-validate<br />Data Mining’s “Dirty Little Secret”<br />It is feasible to understand your model(with the caveat that the second feature in your model is in the context of the first feature, and so on)<br />
- 62. Example of Caveat<br />Let’s study a classic example<br />
- 63. Example of Caveat<br />Let’s study a classic example<br />Drinking too much prune nog at a party, and having an emergency trip to the Little Researcher’s Room<br />
- 64. Data<br />
- 65. Data<br />Some people are resistent to the deletrious effects of prunes and can safely enjoy high quantities of prune nog!<br />
- 66. Learned Function<br />Probability of “emergency”= 0.25 * # Drinks of nog last 3 hours - 0.018 * (Drinks of nog last 3 hours)2<br />But does that actually mean that (Drinks of nog last 3 hours)2 is associated with less “emergencies”?<br />
- 67. Learned Function<br />Probability of “emergency”= 0.25 * # Drinks of nog last 3 hours - 0.018 * (Drinks of nog last 3 hours)2<br />But does that actually mean that (Drinks of nog last 3 hours)2 is associated with less “emergencies”?<br />No!<br />
- 68. Example of Caveat<br />(Drinks of nog last 3 hours)2 is actually positively correlated with emergencies!<br />r=0.59<br />
- 69. Example of Caveat<br />The relationship is only in the negative direction when (Drinks of nog last 3 hours) is already in the model…<br />
- 70. Example of Caveat<br />So be careful when interpreting linear regression models (or almost any other type of model)<br />
- 71. Comments? Questions?<br />
- 72. Discovery with Models<br />
- 73. Why do Discovery with Models?<br />Let’s say you have a model of some construct of interest or importance<br />Knowledge<br />Meta-Cognition<br />Motivation<br />Affect<br />Inquiry Skill<br />Collaborative Behavior<br />Etc.<br />
- 74. Why do Discovery with Models?<br />You can use that model to<br />Find outliers of interest by finding out where the model makes extreme predictions<br />Inspect the model to learn what factors are involved in predicting the construct<br />Find out the construct’s relationship to other constructs of interest, by studying its correlations/associations/causal relationships with data/models on the other constructs<br />Study the construct across contexts or students, by applying the model within data from those contexts or students<br />And more…<br />
- 75. Most frequently<br />Done using prediction models<br />Though other types of models (in particular knowledge engineering models) are amenable to this as well!<br />
- 76. Boosting<br />
- 77. Boosting<br />Let’s say that you have 300 labeled actions randomly sampled from 600,000 overall actions <br />Not a terribly unusual case, in these days of massive data sets, like those in the PSLC DataShop<br />You can train the model on the 300, cross-validate it, and then apply it to all 600,000<br />And then analyze the model across all actions<br />Makes it possible to study larger-scale problems than a human could do without computer assistance<br />Especially nice if you have some unlabeled data set with nice properties<br />For example, additional data such as questionnaire data(cf. Baker, Walonoski, Heffernan, Roll, Corbett, & Koedinger, 2008)<br />
- 78. However…<br />To do this and trust the result,<br />You should validate that the model can transfer across students, populations, and to the learning software you’re using<br />As discussed earlier<br />
- 79. A few examples…<br />
- 80. Middle School Gaming Detector<br />
- 81. Skills from the Algebra Tutor<br />Probability of learning skill at each opportunity<br />Initial probability of knowing skill<br />
- 82. Which skills could probably be removed from the tutor?<br />
- 83. Which skills could use better instruction?<br />
- 84. Comments? Questions?<br />
- 85. A lengthier example (if there’s time)<br />Applying Baker et al’s (2008) gaming detector across contexts<br />
- 86. Research Question<br />Do students game the system because of state or trait factors?<br />If trait factors are the main explanation, differences between students will explain much of the variance in gaming<br />If state factors are the main explanation, differences between lessons could account for many (but not all) state factors, and explain much of the variance in gaming<br />So: is the student or the lesson a better predictor of gaming?<br />
- 87. Application of Detector<br />After validating its transfer<br />We applied the gaming detector across 35 lessons, used by 240 students, from a single Cognitive Tutor<br />Giving us, for each student in each lesson, a gaming frequency<br />
- 88. Model<br />Linear Regression models<br />Gaming frequency = Lesson + a0<br />Gaming frequency = Student + a0<br />
- 89. Model<br />Categorical variables transformed to a set of binaries<br />i.e. Lesson = Scatterplot becomes<br />3DGeometry = 0<br />Percents = 0<br />Probability = 0<br />Scatterplot = 1<br />Boxplot = 0<br />Etc…<br />
- 90. Metrics<br />
- 91. r2<br />The correlation, squared<br />The proportion of variability in the data set that is accounted for by a statistical model<br />
- 92. r2<br />The correlation, squared<br />The proportion of variability in the data set that is accounted for by a statistical model<br />
- 93. r2<br />However, a limitation<br />The more variables you have, the more variance you should be expected to predict, just by chance<br />
- 94. r2<br />We should expect<br />240 students <br />To predict gaming better than<br />35 lessons<br />Just by overfitting<br />
- 95. So what can we do?<br />
- 96. BiC<br />Bayesian Information Criterion(Raftery, 1995)<br />Makes trade-off between goodness of fit and flexibility of fit (number of parameters)<br />
- 97. Predictors<br />
- 98. The Lesson <br />Gaming frequency = Lesson + a0<br />35 parameters<br />r2 = 0.55<br />BiC’ = -2370<br />Model is significantly better than chance would predict given model size & data set size<br />
- 99. The Student<br />Gaming frequency = Student + a0<br />240 parameters<br />r2 = 0.16<br />BiC’ = 1382<br />Model is worse than chance would predict given model size & data set size!<br />
- 100. Standard deviation bars, not standard error bars<br />
- 101. Comments? Questions?<br />
- 102. EDM – where?<br />Holistic<br />Existentialist<br />Essentialist<br />Entitative<br />
- 103. Today’s Class<br />EDM<br />Assignment#5<br />Mega-Survey<br />
- 104. Any questions?<br />
- 105. Today’s Class<br />EDM<br />Assignment#5<br />Mega-Survey<br />
- 106. Mega-Survey<br />I need a volunteer to bring these surveys to Jim Doyle after class<br />*NOT THE REGISTRAR*<br />
- 107. Mega-Survey Additional Questions(See back)<br />#1: In future years, should this class be given <br />1: In half a semester, as part of a unified semester class, along with Professor Skorinko’s Research Methods class<br />3: Unsure/neutral<br />5: As a full-semester class, with Professor Skorinko’s class as a prerequisite<br />#2: Are there any topics you think should be dropped from this class? [write your answer in the space to the right]<br />#3: Are there any topics you think should be added to this class? [write your answer in the space to the right]<br />

Be the first to comment