August 19, 2025
Please play along…
File -> New File -> Quarto Document...
using the menus.If you don’t have R/RStudio yet, you can still play along here, but you won’t see the Quarto markdown and formatting items I mention.
Location | Loc | Population | MedianAgeMarriage | Marriage | Marriage SE | Divorce | Divorce SE | WaffleHouses | South | Slaves1860 | Population1860 | PropSlaves1860 |
---|---|---|---|---|---|---|---|---|---|---|---|---|
Alabama | AL | 4.78 | 25.3 | 20.2 | 1.27 | 12.7 | 0.79 | 128 | Southern State | 435080 | 964201 | 0.45 |
Alaska | AK | 0.71 | 25.2 | 26.0 | 2.93 | 12.5 | 2.05 | 0 | Other State | 0 | 0 | 0.00 |
Arizona | AZ | 6.33 | 25.8 | 20.3 | 0.98 | 10.8 | 0.74 | 18 | Other State | 0 | 0 | 0.00 |
Arkansas | AR | 2.92 | 24.3 | 26.4 | 1.70 | 13.5 | 1.22 | 41 | Southern State | 111115 | 435450 | 0.26 |
California | CA | 37.25 | 26.8 | 19.1 | 0.39 | 8.0 | 0.24 | 0 | Other State | 0 | 379994 | 0.00 |
Colorado | CO | 5.03 | 25.7 | 23.5 | 1.24 | 11.6 | 0.94 | 11 | Other State | 0 | 34277 | 0.00 |
We’ll ask questions and use data to investigate their answers.
We’ll ask questions and use data to investigate their answers.
Territory | Bands | Population | Happiness |
---|---|---|---|
Afghanistan | 2 | 37466414 | 2.404 |
Albania | 7 | 3088385 | 5.199 |
Algeria | 16 | 43576691 | 5.122 |
Andorra | 2 | 85645 | NA |
Angola | 8 | 33642646 | NA |
Argentina | 1907 | 45864941 | 5.967 |
We’ll encounter two data sets today.
wafflehouse
data from Richard McElreath’s Statistical Rethinking text.metal
data set from the same text to examine potential associations between the number of heavy metal bands originating from a country and that country’s overall happiness score.Before we jump into working with the data, let’s cover the usual beginning of semester course logistics.
Major Highlights from the Syllabus: I’ll ask you to read the syllabus, but the most important items are on the following slides.
Instructor: Dr. Adam Gilbert
e-mail address: a.gilbert1@snhu.edu
Office: Robert Frost Hall, Room 311
Office Hours (please visit!):
First and foremost…everything is free!
Main Textbook: We are following OpenIntro Statistics, (4th Edition) by David Diez, Christopher Barr, and Mine Çetinkaya-Rundel
Software: We’ll make use of the R computing language, RStudio, and and interactive notes package that I wrote. You’ve hopefully already installed all of these items, but instructions for doing so are here.
Online Exams: Due to the hybrid nature of this section, we’ll have some of our exams on MyOpenMath
Grade Item | Value |
---|---|
Interactive Notebooks (~17) | 30% |
Exams (2) | 40% |
Final Exam | 30% |
Interactive Notebooks: Completing these on time is crucial, as they’ll be the way you are exposed to material and practice with it.
Exams: We’ll have two exams during the semester – each one will have two parts.
Final Exam: The final exam will also come in two parts.
I’ve built a webpage to organize our course content.
Syllabus
Tentative timeline
This particular section of MAT241 is operating under a hybrid format.
This means that we’ll have just one 75-minute class meeting per week (Tuesdays) and the vast majority of the learning and work for this course will be done outside of class time.
I’ll expect you to work diligently between class meetings, attend my student hours (office hours), and reach out on Slack (see BrightSpace for information on joining) when you have questions or need help.
Depending on your level of preparation, you should expect to spend 6 to 10 (or more) hours per week on this course outside of class time.
If you would be more comfortable in a section which meets twice per week, there is one available this semester from 11:00am – 12:15pm in RF211 with Dr. Duryea.
Because we are only meeting once per week, our class time together will be valuable.
The use of AI, such as chatGPT or copilot, in MAT241 will be discussed in class, particularly prior to exams.
Previewing Use of AI in MAT241: AI use is permitted only for troubleshooting code you’ve written.
We’ll be discussing a lot of material in MAT 241. Here is a very generic road map of what we will discuss. Starting now.
Introduction to Data
Introduction to R
Descriptive Statistics (Exploratory Data Analysis, EDA)
Just Enough Probability
Inferential Statistics
Contexts
Let’s get out hands dirty…
We’ll overview the following items:
Quarto document structure
Rendering a Quarto document to an output file format
Using R to examine data, specifically to construct plots
Render your notebook and make sure that the sections we’ve updated look as you intended them to.
We got a first taste of R today, and we’ll continue to learn more.
Don’t worry if you didn’t completely understand all of the code from today’s Quarto Document or if you feel like you couldn’t write that code on your own – we’ll be starting from scratch!
Homework: Complete and submit the Topic 1
and Topic 2
notebooks by 11:59PM on Friday, September 5. These notebooks will give you a first introduction to data and R, respectively.