class: center, middle, inverse, title-slide # A Fully Customizable Textbook for Introductory Statistics/Data Science Courses ###
Chester Ismay - Reed College/Pacific University
Albert Y. Kim - Middlebury College
Email:
chester@moderndive.com
albert@moderndive.com
### 2017/03/14
Slides available at
http://bit.ly/moderndive-causeweb
--- class: center, middle # Why is this needed? <center> <a href="http://vignette2.wikia.nocookie.net/legomessageboards/images/5/51/House-of-cards-but-why.gif/revision/latest?cb=20150203023508"><img src="images/House-of-cards-but-why.gif" width="680"/> </a> </center> --- class: center, middle # Guiding Principles of ModernDive --- class: center, middle # 1. Blur the lines between lecture and lab ## While in lab section... <center><img src="https://pbs.twimg.com/profile_images/577715748497281024/VutE_k52.jpeg" alt="Drawing" style="width: 200px;"/> <img src="https://i.stack.imgur.com/n5cRZ.jpg" alt="Drawing" style="width: 300px;"/><img src="https://cdn2.macworld.co.uk/cmsdata/features/3607036/MagSafe1.jpg" alt="Drawing" style="width: 220px;"/></center> --- # Then and Now * Segregated lecture/lab is a legacy of when: + Desktops reigned + Proprietary statistical software was <br> usually the best/only option -- * Today + Almost all students have access to laptops + Open source software options are more palatable --- # A new classroom environment <center><img src="Albert/group_1.jpg" alt="Drawing" style="width: 700px;"/></center> --- ## Working like data scientists/statisticians work <center><img src="Albert/group_2.jpg" alt="Drawing" style="width: 700px;"/></center> --- # 2. Focus on Hadley Wickham's data/science research pipeline <br><br> <img src="images/hadley.png" width="100%" /> --- # Creating effective data stories is the key - Each topic builds on previous topics towards improving communication using data <center> <br> <a href="https://fivethirtyeight.com/features/the-dollar-and-cents-case-against-hollywoods-exclusion-of-women/"><img src="images/hickey-bechdel-11.png" width="450"/> </a> </center> --- # 3. It's all about the data - Use modern R packages with rich, interesting, open data <center> <br> <a href="http://3.bp.blogspot.com/-7PT3LAJf44I/UagJEZglWHI/AAAAAAAAC74/aADwJ8BPHhM/s1600/bird+eating5.jpg"><img src="images/mother_robin.jpg" width="450"/> </a> </center> --- # Have data visualization be the driver ![](slides_files/figure-html/unnamed-chunk-3-1.png)<!-- --> --- # 4. Use simulation/resampling instead of probability ## <div style="float: left; width: 60%;">From Albert's 300-level ~~Mathematical Statistics~~ <br> Theory of Statistics: </div> <div style="float: right; width: 40%;"> <center><img src="Albert/hesterberg.jpg" alt="Drawing" style="width: 275px;"/></center> </div> --- # Reinforce concepts instead of equations, formulas, and probability tables - Build the ideas behind the Central Limit Theorem using computation -- <img src="images/tdist.png" width="75%" style="display: block; margin: auto;" /> --- # Inspiration and common theme ## There is only ONE (hypothesis) test! <br><br> <center> <a href="http://allendowney.blogspot.com/2016/06/there-is-still-only-one-test.html"><img src="images/ht.png" width="650"/> </a> </center> --- # 5. Don’t fence off students from the computation pool, throw them in! - <small>Scaffold & support as a good foreign language professor would</small> - <small>Coding will soon be a basic skill on par with reading and writing</small> <center> <br> <a href="http://giphy.com/gifs/pool-diving-synchronized-swimming-pDWtwK7D2IlFu"><img src="images/giphy2.gif" width="450"/> </a> </center> --- # 6. Complete reproducibility via <small>`bookdown`</small> - Put it all out there - Ultimately the best textbook is one you’ve written yourself <center> <br> <a href="http://giphy.com/gifs/oskouioskoui-lotr-gifscapade-3oFyCVxsQn6RBa0r5u"><img src="images/precious.gif" width="550"/> </a> </center> --- ## The `bookdown` R package - Write an entire book using [R](https://rmarkdown.rstudio.com/) and [Markdown](https://daringfireball.net/projects/markdown/syntax) - Rapid iteration and easily-updateable - Exports book to multiple formats - Slick cross-references - Textbook has versions not editions - Wikipedia model for intro stats/data science <br> - [A <small>`bookdown`</small> book about writing with <small>`bookdown`</small>](https://bookdown.org/yihui/bookdown/) --- class: center, middle # ModernDive ## An Introduction to Statistical and Data Sciences via R *** ### Authors: Chester Ismay, Albert Y. Kim and you? ## [ModernDive.com](http://moderndive.com) OR ## [ModernDive.org]((http://moderndive.com) --- # Tips from us - We think the model for teaching intro stats is evolving rapidly in an exciting way. - We want to encourage you to stay ahead of the curve and to help you stay on the cutting edge as well with your courses. -- - We use the chalkboard/whiteboard for writing code, for coloring plots, and for better engaging with our students. - We also demo R code in class and ask students to engineer/reverse engineer. --- # Start small <br> ## <div style="float: left; width: 45%;">Adding just a few of our ideas and materials into your course can go a long way </div> <div style="float: right; width: 45%;"> <a href="https://www.amazon.com/Small-Teaching-Everyday-Lessons-Learning/dp/1118944496"><img src="images/small_teaching.jpg" width="280"/> </a> </center></div> --- ## [ModernDive.com](http://www.moderndive.com) - Join us for a [workshop](https://www.causeweb.org/cause/uscots/uscots17/workshop/3) with many more details at USCOTS at <br> Penn State on May 17-18 - Fill out our [form](http://eepurl.com/cBkItf) to receive updates regarding the textbook - Email us <br>   <chester@moderndive.com> <br>   <albert@moderndive.com> - Follow us on Twitter <br>   [@old_man_chester](https://twitter.com/old_man_chester) <br>   [@rudeboybert](https://twitter.com/rudeboybert) --- class: center, middle # Supplementary materials *** ### [`fivethirtyeight` R package](#fte) ### [DataCamp course](#dc) ### [Chester's course webpage](#chester) ### [Albert's course webpage](#albert) ### [What's to come](#tocome) ### [Source code](#source) --- name: fte ## The [<small>`fivethirtyeight`</small>](https://cran.r-project.org/web/packages/fivethirtyeight/vignettes/fivethirtyeight.html) R package - Data sets that balance being - *rich enough* to answer meaningful questions with, - *real enough* to ensure that there is context, and - *realistic enough* to convey to students that data as it exists "in the wild" often needs processing. -- - Easily and quickly accessible to novices, so that we [minimize the prerequisites to research](https://arxiv.org/abs/1507.05346). --- ## The [<small>`fivethirtyeight`</small>](https://CRAN.R-project.org/package=fivethirtyeight) R package ```r library(fivethirtyeight) police_locals ``` <center> <a href="https://fivethirtyeight.com/datalab/most-police-dont-live-in-the-cities-they-serve/"><img src="images/police.png" width="750"/> </a> </center> --- name: dc ## [DataCamp course](https://www.datacamp.com/courses/effective-data-storytelling-using-the-tidyverse) <center> <a href="https://www.datacamp.com/courses/effective-data-storytelling-using-the-tidyverse"><img src="images/datacamp.png" width="630"/> </a> </center> --- name: chester ## [Chester's Social Statistics course webpage](https://ismayc.github.io/soc301_s2017/) <center> <a href="https://ismayc.github.io/soc301_s2017/schedule/"><img src="images/schedule.png" width="530"/> </a> </center> --- name: albert ## [Albert's Intro to Stat & Data Sciences course webpage](https://rudeboybert.github.io/MATH116/) <center> <a href="https://rudeboybert.github.io/MATH116/"><img src="images/albert_page.png" width="700"/> </a> </center> --- name: tocome ## What's to come - Add more interactive shiny apps into the book - Create more Review Questions at chapter ends using <small>`fivethirtyeight`</small> and other open data sources - Design and share instructor resources - Finish DataCamp course to supplement and assist with more immediate feedback --- name: source ## Source code - [Source code for ModernDive](https://github.com/ismayc/moderndiver-book) - Feel free to modify the book as you wish for your own needs! Just please list the authors as "Chester Ismay, Albert Y. Kim, and YOU!" - These slides available at <http://bit.ly/moderndive-causeweb> - Slides created via the R package [xaringan](https://github.com/yihui/xaringan) by Yihui Xie - Source code for these slides at <https://github.com/ismayc/causeweb2017>