Welcome to Data Science
🐱
for Psychologists

S. Mason Garrison

layout: true

Hello world!

What is data science?



Data science is an exciting discipline that allows you to turn raw data into understanding, insight, and knowledge. We’re going to learn to do this in a tidy way – more on that later!

What is this course?

This course is an introduction to data science that is designed for psychologists. It emphasizes statistical thinking and best practices.

Q - What data science background does this course assume?
A - None.

Q - Is this an intro CS course?
A - Although statistics and computer science \(\ne\) data science, they are very closely related and have tremendous of overlap. Hence, this course is a great way to get comfortable with those topics. However this course is not your typical course.

Q - Will we be doing computing?
A - Yes.

Q - What computing language will we learn?
A - R.

Q: Why not language X?
A: We can discuss that remotely over ☕.

Where is this course?








[ [DataScience4Psych.github.io/DataScience4Psych/

(https://DataScience4Psych.github.io/DataScience4Psych/)

Wrapping up… Hello world!

Data in the wild

The US of Bey

.footnote[Brooke Watson, [blog.brooke.science/posts/the-us-of-bey
(https://blog.brooke.science/posts/the-us-of-bey/)

Punctuation in literature

.footnote[ Julia Silge, [juliasilge.com/blog/punctution-literature
(https://juliasilge.com/blog/punctution-literature/)

Text analysis of Trump’s tweets

.footnote[David Robinson, [varianceexplained.org/r/trump-tweets
(http://varianceexplained.org/r/trump-tweets)

Greatest Twitter scheme of all time

.footnote[ [gist.github.com/mine-cetinkaya-rundel/03d7516dea1e5f2613a5d71c28edb08d (https://gist.github.com/mine-cetinkaya-rundel/03d7516dea1e5f2613a5d71c28edb08d)

Voting patterns in the UN

[minecr.shinyapps.io/unvotes

(https://minecr.shinyapps.io/unvotes/)

Wrapping up… Data in the wild

, bg_orange

Course structure and policies

Logistics

-narrow[
  • Course

  • Professor

  • Assistants

-wide[


+ PSY 703: Data Science for Psychologists + Flipped Classroom

+ S. Mason Garrison + Green 438/Zoom + Office Hours [calendly.com/smasongarrison/

Structure

- Flipped Lectures - Pre-recorded Lectures - Module is finalized by the week’s start
- Coursenotes - [datascience4psych.github.io/DataScience4Psych

Milestones

Contract Grading

Diversity & Inclusion:

Intent: Students from all diverse backgrounds and perspectives be well-served by this course, that students’ learning needs be addressed both in and out of class, and that the diversity that the students bring to this class be viewed as a resource, strength and benefit. It is my intent to present materials and activities that are respectful of diversity: gender identity, sexuality, disability, age, socioeconomic status, ethnicity, race, nationality, religion, and culture. Let me know ways to improve the effectiveness of the course for you personally, or for other students or student groups.

How to get help

Tips for asking questions

More Tips for asking questions

Sharing/reusing code

Wrapping Up…

Your Turn!

Voting patterns in the UN

[minecr.shinyapps.io/unvotes

(https://minecr.shinyapps.io/unvotes/)

Create a GitHub account

.small[
Go to [github.com
(https://github.com/), and create an account (unless you already have one).

Tips for selecting a username:

.small[ - Incorporate your actual name. - Reuse username from other contexts, e.g., Twitter or Slack. - Pick a username you’ll be comfortable revealing to your future boss. - Shorter is better than longer. - Be as unique as possible in as few characters as possible. - Make it timeless. Don’t highlight your current university, employer, etc. - Avoid words laden with special meaning in programming, like NA. – .small[ Source: [Happy git with R (http://happygitwithr.com/github-acct.html#username-advice) by Jenny Bryan

Option 1.

(https://github.com/DataScience4Psych/ae01a_unvotes).
  • In the Files pane in the bottom right corner, spot the file called unvotes.Rmd. Open it, and then click on the “Knit” button.
  • Go back to the file and change your name on top (in the yaml – we’ll talk about what this means later) and knit again.
  • Change the country names to those you’re interested in. Your spelling and capitalization should match how the countries appear in the data, so take a peek at the Appendix to confirm spelling. Knit again. Voila, your first data visualization!
  • Option 2.

    (https://github.com/DataScience4Psych/ae01b_covid).
  • In the Files pane in the bottom right corner, spot the file called covid.Rmd. Open it, and then click on the “Knit” button.
  • Go back to the file and change your name on top (in the yaml – we’ll talk about what this means later) and knit again.
  • Change the country names to those you’re interested in. Your spelling and capitalization should match how the countries appear in the data, so take a peek at the Appendix to confirm spelling. Knit again. Voila, your first data visualization!
  • Wrapping Up…