Upgrade to Pro — share decks privately, control downloads, hide ads and more …

The art and science of teaching data science

The art and science of teaching data science

Abstract: Modern statistics is fundamentally a computational discipline, but too often this fact is not reflected in our statistics curricula. With the rise of data science it has become increasingly clear that students want, expect, and need explicit training in this area of the discipline. Additionally, recent curricular guidelines clearly state that working with data requires extensive computing skills and that statistics students should be fluent in accessing, manipulating, analyzing, and modeling with professional statistical analysis software. In this talk, we introduce the design philosophy behind an introductory data science course, discuss in progress and future research on student learning as well as new directions in assessment and tooling as we scale up the course.

Mine Cetinkaya-Rundel

November 02, 2020
Tweet

More Decks by Mine Cetinkaya-Rundel

Other Decks in Education

Transcript

  1. Image credit: Thomas Pedersen, data-imaginist.com/art
    the art and science
    of teaching data science
    mine çetinkaya-rundel
    bit.ly/ds-art-sci-ares
    mine-cetinkaya-rundel
    [email protected]
    @minebocek

    View Slide

  2. 2016 GAISE
    1. Teach statistical thinking.
    ‣ Teach statistics as an investigative process of problem-solving and decision making.
    Students should not leave their introductory statistics course with the mistaken impression
    that statistics consists of an unrelated collection of formulas and methods. Rather,
    students should understand that statistics is a problem-solving and decision making
    process that is fundamental to scientific inquiry and essential for making sound decisions.
    ‣ Give students experience with multivariable thinking. We live in a complex world in
    which the answer to a question often depends on many factors. Students will encounter
    such situations within their own fields of study and everyday lives. We must prepare our
    students to answer challenging questions that require them to investigate and explore
    relationships among many variables. Doing so will help them to appreciate the value of
    statistical thinking and methods.
    2. Focus on conceptual understanding.
    3. Integrate real data with a context and purpose.
    4. Foster active learning.
    5. Use technology to explore concepts and analyse data.
    6. Use assessments to improve and evaluate student learning.
    amstat.org/asa/files/pdfs/GAISE/GaiseCollege_Full.pdf

    View Slide

  3. 2016 GAISE
    1. Teach statistical thinking.
    ‣ Teach statistics as an investigative process of problem-solving and decision making.
    Students should not leave their introductory statistics course with the mistaken impression
    that statistics consists of an unrelated collection of formulas and methods. Rather,
    students should understand that statistics is a problem-solving and decision making
    process that is fundamental to scientific inquiry and essential for making sound decisions.
    ‣ Give students experience with multivariable thinking. We live in a complex world in
    which the answer to a question often depends on many factors. Students will encounter
    such situations within their own fields of study and everyday lives. We must prepare our
    students to answer challenging questions that require them to investigate and explore
    relationships among many variables. Doing so will help them to appreciate the value of
    statistical thinking and methods.
    2. Focus on conceptual understanding.
    3. Integrate real data with a context and purpose.
    4. Foster active learning.
    5. Use technology to explore concepts and analyse data.
    6. Use assessments to improve and evaluate student learning.
    amstat.org/asa/files/pdfs/GAISE/GaiseCollege_Full.pdf
    1 NOT a
    commonly used
    subset of tests
    and intervals
    and produce
    them with hand
    calculations

    View Slide

  4. 2016 GAISE
    1. Teach statistical thinking.
    ‣ Teach statistics as an investigative process of problem-solving and decision making.
    Students should not leave their introductory statistics course with the mistaken impression
    that statistics consists of an unrelated collection of formulas and methods. Rather,
    students should understand that statistics is a problem-solving and decision making
    process that is fundamental to scientific inquiry and essential for making sound decisions.
    ‣ Give students experience with multivariable thinking. We live in a complex world in
    which the answer to a question often depends on many factors. Students will encounter
    such situations within their own fields of study and everyday lives. We must prepare our
    students to answer challenging questions that require them to investigate and explore
    relationships among many variables. Doing so will help them to appreciate the value of
    statistical thinking and methods.
    2. Focus on conceptual understanding.
    3. Integrate real data with a context and purpose.
    4. Foster active learning.
    5. Use technology to explore concepts and analyse data.
    6. Use assessments to improve and evaluate student learning.
    amstat.org/asa/files/pdfs/GAISE/GaiseCollege_Full.pdf
    2 Multivariate
    analysis
    requires the use
    of computing

    View Slide

  5. 2016 GAISE
    1. Teach statistical thinking.
    ‣ Teach statistics as an investigative process of problem-solving and decision making.
    Students should not leave their introductory statistics course with the mistaken impression
    that statistics consists of an unrelated collection of formulas and methods. Rather,
    students should understand that statistics is a problem-solving and decision making
    process that is fundamental to scientific inquiry and essential for making sound decisions.
    ‣ Give students experience with multivariable thinking. We live in a complex world in
    which the answer to a question often depends on many factors. Students will encounter
    such situations within their own fields of study and everyday lives. We must prepare our
    students to answer challenging questions that require them to investigate and explore
    relationships among many variables. Doing so will help them to appreciate the value of
    statistical thinking and methods.
    2. Focus on conceptual understanding.
    3. Integrate real data with a context and purpose.
    4. Foster active learning.
    5. Use technology to explore concepts and analyse data.
    6. Use assessments to improve and evaluate student learning.
    amstat.org/asa/files/pdfs/GAISE/GaiseCollege_Full.pdf
    3 NOT use
    technology that
    is only
    applicable in the
    intro course or
    that doesn’t
    follow good
    science
    principles

    View Slide

  6. 2016 GAISE
    1. Teach statistical thinking.
    ‣ Teach statistics as an investigative process of problem-solving and decision making.
    Students should not leave their introductory statistics course with the mistaken impression
    that statistics consists of an unrelated collection of formulas and methods. Rather,
    students should understand that statistics is a problem-solving and decision making
    process that is fundamental to scientific inquiry and essential for making sound decisions.
    ‣ Give students experience with multivariable thinking. We live in a complex world in
    which the answer to a question often depends on many factors. Students will encounter
    such situations within their own fields of study and everyday lives. We must prepare our
    students to answer challenging questions that require them to investigate and explore
    relationships among many variables. Doing so will help them to appreciate the value of
    statistical thinking and methods.
    2. Focus on conceptual understanding.
    3. Integrate real data with a context and purpose.
    4. Foster active learning.
    5. Use technology to explore concepts and analyse data.
    6. Use assessments to improve and evaluate student learning.
    amstat.org/asa/files/pdfs/GAISE/GaiseCollege_Full.pdf
    4 Data analysis
    isn’t just
    inference and
    modelling, it’s
    also data
    importing,
    cleaning,
    preparation,
    exploration, and
    visualisation

    View Slide

  7. a course that satisfies these four
    points is looking more like today’s
    intro data science courses than
    (most) intro stats courses
    but this is not because
    intro stats is inherently
    “bad for you”
    instead it is because it’s time to visit
    intro stats in light of emergence of
    data science

    View Slide

  8. View Slide

  9. fundamentals of
    data & data viz,
    confounding variables,
    Simpson’s paradox
    +
    R / RStudio,
    R Markdown, simple Git
    tidy data, data frames
    vs. summary tables,
    recoding &
    transforming,
    web scraping & iteration
    +
    collaboration on GitHub

    View Slide

  10. fundamentals of
    data & data viz,
    confounding variables,
    Simpson’s paradox
    +
    R / RStudio,
    R Markdown, simple Git
    tidy data, data frames
    vs. summary tables,
    recoding &
    transforming,
    web scraping & iteration
    +
    collaboration on GitHub
    building & selecting
    models,
    visualising interactions,
    prediction & validation,
    inference via simulation

    View Slide

  11. fundamentals of
    data & data viz,
    confounding variables,
    Simpson’s paradox
    +
    R / RStudio,
    R Markdown, simple Git
    tidy data, data frames
    vs. summary tables,
    recoding &
    transforming,
    web scraping & iteration
    +
    collaboration on GitHub
    building & selecting
    models,
    visualising interactions,
    prediction & validation,
    inference via simulation
    data science ethics,
    text analysis,
    Bayesian inference
    +
    communication &
    dissemination

    View Slide

  12. fundamentals of
    data & data viz,
    confounding variables,
    Simpson’s paradox
    +
    R / RStudio,
    R Markdown, simple Git
    tidy data, data frames
    vs. summary tables,
    recoding &
    transforming,
    web scraping & iteration
    +
    collaboration on GitHub
    building & selecting
    models,
    visualising interactions,
    prediction & validation,
    inference via simulation
    data science ethics,
    text analysis,
    Bayesian inference
    +
    communication &
    dissemination

    View Slide

  13. ‣ Go to RStudio Cloud
    ‣ Start the project titled UN Votes

    View Slide

  14. ‣ Go to RStudio Cloud
    ‣ Start the project titled UN Votes
    ‣ Open the R Markdown document called unvotes.Rmd

    View Slide

  15. ‣ Go to RStudio Cloud
    ‣ Start the project titled UN Votes
    ‣ Open the R Markdown document called unvotes.Rmd
    ‣ Knit the document and review the data visualisation you just produced

    View Slide

  16. ‣ Go to RStudio Cloud
    ‣ Start the project titled UN Votes
    ‣ Open the R Markdown document called unvotes.Rmd
    ‣ Knit the document and review the data visualisation you just produced
    ‣ Then, look for the character string “Turkey” in the code and replace it with
    another country of your choice
    ‣ Knit again, and review how the voting patterns of the country you picked
    compares to the United States and United Kingdom & Northern Ireland

    View Slide

  17. three questions that keep me up at night…
    1 what should students learn?
    2 how will students learn best?
    3 what tools will enhance student learning?

    View Slide

  18. three questions that keep me up at night…
    1 what should students learn?
    2 how will students learn best?
    3 what tools will enhance student learning?
    content
    pedagogy
    infrastructure

    View Slide

  19. content

    View Slide

  20. ex. 1
    fisheries of the world

    View Slide

  21. View Slide

  22. ✴ data joins

    View Slide

  23. ✴ data joins
    ✴ data science ethics

    View Slide

  24. ✴ data joins
    ✴ data science ethics
    ✴ critique
    ✴ improving data
    visualisations

    View Slide

  25. ✴ data joins
    ✴ data science ethics
    ✴ critique
    ✴ improving data
    visualisations
    ✴ mapping

    View Slide

  26. Project: 2016 US Election Redux
    Question: Would the outcome of the 2016 US Presidential Elections been
    different had Bernie Sanders been the Democrat candidate?
    Team: 4 Squared

    View Slide

  27. ex. 2
    First Minister’s COVID briefings

    View Slide

  28. View Slide

  29. ✴ web scraping
    ✴ text parsing
    ✴ data types
    ✴ regular expressions

    View Slide

  30. ✴ web scraping
    ✴ text parsing
    ✴ data types
    ✴ regular expressions
    ✴ functions
    ✴ iteration

    View Slide

  31. ✴ web scraping
    ✴ text parsing
    ✴ data types
    ✴ regular expressions
    ✴ functions
    ✴ iteration
    ✴ data visualisation
    ✴ interpretation

    View Slide

  32. ✴ web scraping
    ✴ text parsing
    ✴ data types
    ✴ regular expressions
    ✴ functions
    ✴ iteration
    ✴ data visualisation
    ✴ interpretation
    ✴ text analysis

    View Slide

  33. ✴ web scraping
    ✴ text parsing
    ✴ data types
    ✴ regular expressions
    ✴ functions
    ✴ iteration
    ✴ data visualisation
    ✴ interpretation
    ✴ text analysis
    ✴ data science ethics
    robotstxt::paths_allowed("https://www.gov.scot")
    #> www.gov.scot
    #> [1] TRUE

    View Slide

  34. Project: The North South Divide: University Edition
    Question: Does the geographical location of a UK university affect its
    university score?
    Team: Fried Egg Jelly Fish

    View Slide

  35. ex. 3
    spam filters

    View Slide

  36. ✴ logistic regression
    ✴ prediction

    View Slide

  37. ✴ logistic regression
    ✴ prediction
    ✴ decision errors
    ✴ sensitivity /
    specificity
    ✴ intuition around
    loss functions

    View Slide

  38. Project: Spotify Top 100 Tracks of 2017/18
    Question: Is it possible to predict the year a song made the Top Tracks
    playlist based on its metadata?
    Team: weR20
    year ~ danceability + energy + key + loudness + mode + speechiness +
    acousticness + instrumentalness + liveness + valence + tempo +
    duration_s
    2017
    name artists
    I'm the One DJ Khaled
    Redbone Childish Gambino
    Sign of the Times Harry Styles
    2018
    name artists
    Everybody Dies In Their Nightmares XXXTENTACION
    Jocelyn Flores XXXTENTACION
    Plug Walk Rich The Kid
    Moonlight XXXTENTACION
    Nevermind Dennis Lloyd
    In My Mind Dynoro
    changes XXXTENTACION

    View Slide

  39. pedagogy

    View Slide

  40. teams: weekly labs in teams +
    periodic team evaluations +
    term project in teams
    peer feedback: used
    minimally so far, but
    positive experience
    “minute paper”: weekly online
    quizzes ending with a brief
    reflection of the week’s material

    View Slide

  41. View Slide

  42. # A tibble: 19 x 2
    bigram n

    1 question 7 19
    2 question 8 16
    3 questions 7 12
    4 join function 9
    5 question 2 9
    6 choice questions 7
    7 first question 7
    8 multiple choice 7
    9 correct answer 6
    10 necessarily improve 6
    11 join functions 5
    12 question 1 5
    13 7 8 4
    14 airline names 4
    15 data frames 4
    16 feel like 4
    17 many options 4
    18 right answer 4
    19 x axis 4

    View Slide

  43. teams: weekly labs in teams +
    periodic team evaluations +
    term project in teams
    peer feedback: used
    minimally so far, but
    positive experience
    “minute paper”: weekly online
    quizzes ending with a brief
    reflection of the week’s material
    creativity: assignments that
    make room for creativity

    View Slide

  44. View Slide

  45. View Slide

  46. infrastructure & tooling

    View Slide

  47. student-facing
    +

    ghclass
    +
    instructor-facing

    checklist
    +
    +

    learnr
    +

    parsermd

    gradethis

    learnrhash

    View Slide


  48. ghclass
    + +

    View Slide


  49. ghclass
    +

    View Slide

  50. openness

    View Slide

  51. View Slide

  52. View Slide

  53. View Slide

  54. on

    View Slide

  55. Image credit:
    Thomas Pedersen, data-imaginist.com/art
    the art and science
    of teaching data science
    mine çetinkaya-rundel
    mine-cetinkaya-rundel
    [email protected]
    @minebocek
    bit.ly/ds-art-sci-ares

    View Slide