-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCourseOverview_Hybrid.qmd
More file actions
335 lines (217 loc) · 11.1 KB
/
CourseOverview_Hybrid.qmd
File metadata and controls
335 lines (217 loc) · 11.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
---
title: "MAT 241: Introduction and What to Expect (Hybrid)"
author: Dr. Gilbert
format:
revealjs:
smaller: true
date: today
date-format: long
theme: serif
incremental: true
---
```{r global-options, include=FALSE}
library(tidyverse)
library(reticulate)
theme_set(theme_bw(base_size = 20))
```
```{python}
import numpy as np
import matplotlib.pyplot as plt
```
```{css}
code.sourceCode {
font-size: 1.3em;
/* or try font-size: xx-large; */
}
a {
color: purple;
}
a:link {
color: purple;
}
a:visited {
color: purple;
}
```
```{r}
library(tidyverse)
library(kableExtra)
wafflehouse <- read_delim("https://raw.githubusercontent.com/rmcelreath/rethinking/master/data/WaffleDivorce.csv", delim = ";")
wafflehouse <- wafflehouse %>%
mutate(South = ifelse(South == 1, "Southern State", "Other State"))
metal <- read_delim("https://raw.githubusercontent.com/rmcelreath/rethinking/master/data/metal_bands.csv", delim = ";")
```
## Playing Along
Please play along...
1. Open RStudio
2. Create a new Project in a new folder, called `MAT241` by navigating to `File -> New Project` and choosing a *new directory*
3. Create an empty Quarto Document in RStudio by navigating to `File -> New File -> Quarto Document...` using the menus.
4. Choose to `Create Empty Document` and then remove the minimal YAML header to start with a truly empty document.
5. Navigate to [this Day 1 Activity notebook](https://github.com/agmath/IntroductoryStatistics/blob/main/Day1_DataExploration.qmd).
6. Copy all of the lines in that document and paste them into your Quarto document, making sure that you are in the *Source* editor rather than the *Visual* editor.
7. Play with that file as we work through these slides together.
. . .
If you don't have R/RStudio yet, [you can still play along here](https://agmath.github.io/WebRtutorials/MAT241_Intro.html), but you won't see the Quarto markdown and formatting items I mention.
## What Are We Here For?
. . .
```{r}
wafflehouse %>%
head() %>%
kable() %>%
kable_styling(bootstrap_options = c("striped", "hover"),
font_size = "18pt")
```
. . .
We'll ask questions and use data to investigate their answers.
## What Are We Here For?
We'll ask questions and use data to investigate their answers.
```{r}
metal %>%
head() %>%
kable() %>%
kable_styling(bootstrap_options = c("striped", "hover"),
font_size = "18pt")
```
. . .
We'll encounter two data sets today.
1. We'll explore potential associations between WaffleHouse restaurants and divorce using the `wafflehouse` data from Richard McElreath's *Statistical Rethinking* text.
2. We'll use the `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.
## Syllabus
. . .
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 and Office Hours
:::{.nonincremental}
+ Instructor: Dr. Adam Gilbert
+ E-mail Address: [a.gilbert1@snhu.edu](mailto:a.gilbert1@snhu.edu)
+ Office: Robert Frost Hall, Room 311
+ Drop-In Office Hours (please visit!):
+ Tuesdays 11:00am - 12:30pm
+ Wednesdays 9:00am - 10:30am
+ Fridays 1:00pm - 3:00pm
:::
## Class Embedded Tutor
:::{.nonincremental}
+ Embedded Tutor: Audrey Saidel
+ E-mail Address: [audrey.saidel@snhu.edu](mailto:audrey.saidel@snhu.edu)
+ Drop-in Location: Paul Hall, Room 104
+ Drop-in Hours (Please Visit!):
+ Mondays 1:00pm - 2:00pm
+ Wednesdays 2:00pm - 6:00pm
:::
## Required Resources
First and foremost...everything is free!
+ **Main Textbook:** We are following [*OpenIntro Statistics, (4th Edition)* by David Diez, Christopher Barr, and Mine Çetinkaya-Rundel](https://www.openintro.org/book/os/)
+ **Software:** We'll make use of the R computing language, RStudio, and an interactive notes package that I wrote. You've hopefully already installed all of these items, but [instructions for doing so are here](https://agmath.github.io/IntroductoryStatistics/AccessingInteractiveNotes.html).
+ **Online Exams:** Due to the hybrid nature of this section, we'll have *some* of our exams on [MyOpenMath](https://www.myopenmath.com/)
+ The CourseID and Enrollment Key are available in the *Welcome!* announcement on BrightSpace.
+ The MyOpenMath shell also contains some optional, non-credit homework assignments if you want additional practice
## Grading Scheme
<center>
Grade Item | Value
-------------------------------|-----------
Interactive Notebooks (~17) | 30%
Exams (2) | 40%
Final Exam | 30%
</center>
## Explanations of Grade Items
<div style="font-size: 18pt">
+ **Interactive Notebooks:** Completing these on time is crucial, as they'll be the way you are exposed to material and practice with it.
+ You should expect to have two of these to complete each week
+ You'll generate a *hash code* at the end of each notebook and submit that hash code using a Google Form (see BrightSpace for the link)
+ **Exams:** We'll have two exams during the semester -- each one will have two parts.
+ **Problems and Concepts Exam (75%):** Will look more like a traditional exam where you complete problems, but will occur on MyOpenMath (90-minute time limit, two attempts).
+ **Practical Exam (25%):** Will present you with a real data set and ask you to perform a scripted analysis using R/RStudio and building a Quarto Document.
+ **Final Exam:** The final exam will also come in two parts.
+ **No Tech, No Notes Concepts Exam (~67%):** Will take place during our class meeting in Week 16
+ **Problems Exam on MyOpenMath (~33%):** Will be completed on MyOpenMath, like your previous exams (120-minute time limit, two attempts)
</div>
## Brightspace
+ Announcements
+ Gradebook
+ Go to [the webpage](https://agmath.github.io/StatsWithR_Hybrid.html) for everything else
## Course Webpage
I've built a [webpage to organize our course content](https://agmath.github.io/StatsWithR_Hybrid.html).
+ Syllabus
+ Tentative timeline
+ Weekly discussion topics and required interactive notebooks
+ Optional supplementary discussion slides
+ Assignment due date reminders
## What's Class Like?
+ 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.
+ In a hybrid course, seeking help immediately is critical – please do not wait until the next class meeting to get your question answered.
+ 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 on Mondays and Thursdays from 11:00am – 12:15pm in RF211 with Dr. Duryea.
## What's Class Like?
Because we are only meeting once per week, our class time
together will be valuable.
+ In general, I’ll plan for the first 45 minutes of each class meeting to be devoted to questions, review, and tangential topics driven by student interest.
+ The final 30 minutes of class time will be devoted to previewing the material you’ll encounter as you work through the week’s notebooks.
## A Note on AI Use
. . .
<div style="font-size: 18pt">
The use of AI, such as chatGPT or copilot, in MAT241
will be discussed in class, particularly prior to exams.
+ While AI will not be completely prohibited, its use will generally be
restricted to helping with broken code in R.
+ The reason for taking this position is that MAT241 is a foundational course in which we are learning and applying concepts from applied statistics.
+ Relying on AI for statistical calculations and interpretations at this stage will rob you of the opportunity to understand and discover the intricacies involved in statistical analysis.
</div>
. . .
<div style="font-size: 18pt">
**Previewing Use of AI in MAT241:** AI use is permitted only for troubleshooting code you’ve written.
+ In the case that AI is used, please plan to save and provide your transcript along with your submission.
+ If AI use is suspected and a transcript is not provided on request, then an academic integrity inquiry will be submitted via the University’s formal channels and an investigation will determine the outcome.
</div>
## A Road Map to Our Semester
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.
::::{.columns}
:::{.column width=50%}
<div style="font-size: 18pt">
+ Introduction to Data
+ Introduction to R
+ **Descriptive Statistics** (Exploratory Data Analysis, EDA)
+ Numerical and tabular summary statistics
+ Data visualization
+ Interpretations and communications of EDA
+ Just Enough Probability
+ Binomial Distribution
+ Normal Distribution
</div>
:::
:::{.column width=50%}
<div style="font-size: 18pt">
+ **Inferential Statistics**
+ Confidence intervals for capturing a population parameter
+ Hypothesis tests for testing claims about a population parameter
+ Contexts
+ Single means or proportions
+ Comparisons of means or proportions across two or more groups
+ Associations between a numerical variable and one or more other variables numerical variables (linear regression)
</div>
:::
::::
## The WaffleHouse and Metal Data
. . .
Let's get our hands dirty...
+ Open RStudio back up and take a look at that Quarto Document
. . .
We'll overview the following items:
+ Quarto document structure
+ The YAML header
+ Code chunks
+ Markdown/text cells
+ The Source versus Visual editors
+ Rendering a Quarto document to an output file format
+ Using R to examine data, specifically to construct plots
+ Again, I'm assuming no background, so our goal today is just to make small changes to existing plots -- hopefully becoming interested in what's possible
## Closing
1. Render your notebook and make sure that the sections we've updated look as you intended them to.
+ Make any updates you like and re-render the notebook.
2. We got a first taste of R today, and we'll continue to learn more.
3. 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!
4. **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.
+ Be sure to see me immediately if you are having difficulty with setup.