Course description

Introduction to statistical packages R and SAS, including data importation, cleaning, graphing, and basic programming. Emphasis on use of graphical displays to explore, understand, and present data, and on organization of code.

Learning outcomes

At the completion of this course, students will:

  1. Be literate in statistical programming using R and SAS,
  2. Effectively communicate through visual presentation of data, and
  3. Understand and imitate good programming practices, including version control and reproducible research.

Time and location

TR 12:15-1:30pm
Wilson Hall 1-143


Instructors

Lead Instructor

Dr. Stacey Hancock
email:
Office: Wilson 2-195
Phone: (406) 994-5350

Office Hours:

  • Virtual (see D2L for Zoom link): Mondays 3:10-4:00pm
  • In person (Wilson 2-195): Tuesdays and Thursdays 3:10-4:00pm
  • By appointment — Please feel free to email me to schedule an appointment outside of office hours.

Teaching Assistant

Elijah Meyer
email:
Office: Wilson 1-105

Office Hours (Virtual):

  • Mondays 12:00 - 12:50pm
  • Wednesdays 9:00 - 9:50am
  • Thursdays 2:00 - 2:50pm
  • See D2L for Zoom link
  • Please feel free to email me to schedule an appointment outside of office hours.
  • If you would rather meet in person during office hours or by appointment, please let me know in advance.

Prerequisites

One of: STAT 217, STAT 332, STAT 401, or equivalent.


Course materials

Textbooks / Resources (Optional)

The process of statistical computing often involves a combination of Google searches, Stack Overflow posts, and various online textbooks, tutorials, and blog posts. As such, there is no one textbook for this course. However, there are a few resources we will consult regularly:

  1. Modern Dive: Statistical Inference via Data Science by Chester Ismay and Albert Kim — free at https://moderndive.com/
  2. R for Data Science by Hadley Wickham and Garrett Grolemund — free at https://r4ds.had.co.nz/index.html
  3. Happy Git and GitHub for the useR by Jenny Bryan — free at https://happygitwithr.com/
  4. R cheatsheets: https://www.rstudio.com/resources/cheatsheets/
  5. Optional textbooks for purchase:

Explore my list of statistical computing resources for an extended list.

Computing

In this course, we will be using the statistical software:

In addition, we will use Git and GitHub for version control and group assignments.

For announcements, grades, discussion forums, and turning in individual assignments, see our D2L page.

  • Make sure you are receiving email notifications for any D2L activity. In D2L, click on your name, then Notifications. Check that D2L is using an email address that you regularly check; you have the option of registering a mobile number. Check the boxes to get notifications for announcements, content, discussions, and grades.
  • If you have a question about the course materials, computing, or logistics, please post your question to your D2L discussion board instead of emailing your instructors. This ensures all students can benefit from the responses. Other students are encouraged to respond.

Course assessment

Your grade in STAT 408 will be comprised of the following components.

  1. Homework (20%): Homework will be posted on the course calendar. Homework assignments will be turned in individually through D2L.
  1. Labs (20%): Weekly Thursday labs will have a large computational element and will be designed to be completed in 75 minutes; however, there may be times that labs need to be finished outside of class time. Lab assignments will be turned in as a group in GitHub.

  2. Exams (40%): There will be two midterm exams and one final exam. Each exam will have both an in-class and a take-home component.

  3. Project (20%): A data storytelling project will be completed in groups. Find the project instructions here.

Letter grades generally follow the typical scale:

93-100 = A
90-92 = A-
88-89 = B+
83-87 = B
80-82 = B-
etc.

These cutoffs may be adjusted down (never up!) at the end of the semester, depending on the grade distribution in the course. Thus, a 93% will guarantee an A, a 90% will guarantee an A-, etc.


Course policies

Classroom community

All members of the classroom community (instructor, students, visitors) are expected to treat each other with courtesy and respect. Our comments to others should be factual, constructive, and free from harassing statements. You are encouraged to disagree with others, but such disagreements need to be based upon facts and documentation (rather than prejudices and personalities). It is the instructor’s goal to promote an atmosphere of mutual respect in the classroom.

The success of all students in this course depends on all members of the classroom community agreeing to:

  • Show up and be present
  • Listen
  • Contribute
  • Build on other’s ideas
  • Speak clearly and loudly enough for all to hear

Please contact the instructor if you have suggestions for improving the classroom environment.

Absences, illnesses, and late work policy

If you find yourself under extenuating circumstances that are preventing you from keeping up with coursework, please speak to your instructor as soon as possible so I can work with you to figure out a plan for succeeding in this course.

Homework

It is expected that students turn in homework by the posted deadline, but understood that life sometimes prevents us from meeting a deadline. Thus, each student gets one “free late pass” for the semester, where you may turn in your homework up until the point when homework solutions are released (usually around 3–5 days after the homework submission deadline). Once your free pass is used, no late homework will be accepted.

Labs

Labs are designed to be finished during class under the guidance of your instructors. Almost all labs will be completed in teams that are assigned by the instructor. You will work with the same team throughout the semester, but please contact your instructor as soon as possible if any issues arise! We will reassign teams if needed.

Since labs are intended to be completed within a team, if you miss class on lab day, you will be removed from your team’s GitHub repo, an individual repo will be set up for you, and you will need to complete the lab assignment on your own. However, if you are able to attend class virtually, please let your teammates and your instructor know prior to lab day, and if possible, we can set you up to attend and work with your teammates virtually.

Exams

If you are ill or have other extenuating circumstances that arise that prevent you from taking the exam on the scheduled day, please email your instructor as soon as possible so other arrangements can be made. Students who miss an exam without contacting the instructor prior to the exam will receive a zero on that exam.

Policy on collaboration and academic misconduct

In STAT 408, at a minimum, any act of academic dishonesty, which includes but is not limited to plagiarism, cheating, multiple submissions, or facilitating others’ misconduct, will result in a score of zero on the assignment/quiz/exam in question and notification of department and university officials. Further action may be taken as warranted. If you have any questions about the limits of collaboration or about using and citing sources, you are expected to ask for clarification.

Collaboration on individual assignments

After attempting to complete homework problems on your own, you are permitted to collaborate on homework in a constructive manner for all involved—each individual in the collaboration needs to ensure they understand and could explain the process of solving each problem. While I encourage you to talk through problems with fellow students, the work you turn in must be your own and must be written in your own words (unless the assignment specifically states otherwise).

Each homework will require a “citations” page where you cite all sources (including web forums such as Stack Overflow) and individuals used to complete that homework assignment. Paraphrasing or quoting another’s work without citing the source is a form of academic dishonesty. Even inadvertent or unintentional misuse or appropriation of another’s work (such as relying heavily on source material that is not expressly acknowledged) is considered plagiarism. Homework assignments that do not cite sources or individuals, or assignments where answers are copied directly from another student, will be considered and treated as plagiarism, and will receive a zero grade.

Guidance on Citing Sources:

  • You do not need to include in-text citations—only a reference list at the end of your assignment.
  • The citation style you choose is up to you, but each entry should include enough information for someone to find the source on their own. This includes the author’s name (could be an organization), date of publication (if not known, then state “n.d.”), title of source, location and name of publisher (if applicable), and the URL where the source was retrieved.
  • I typically use APA style. Mendeley has a nice reference webpage for how to cite different sources in APA style.
  • If one of your sources on your homework assignment is another student in the class or a tutor, your citation needs only to state their name, e.g., “Direct correspondence with Jane Doe.”
  • You do not need to cite any assigned readings, notes, or material made available on our course website, nor do you need to cite asking questions of your instructor or teaching assistant.
  • If you did not use any external sources on your assignment, please state, “No external sources used.”

If you have any questions about the limits of collaboration or about using and citing sources, you are expected to ask for clarification.

MSU policy

Students in an academic setting are responsible for approaching all assignments with rigor, integrity, and in compliance with the University Code of Student Conduct. This responsibility includes:

  1. consulting and analyzing sources that are relevant to the topic of inquiry;
  2. clearly acknowledging when they draw from the ideas or the phrasing of those sources in their own writing;
  3. learning and using appropriate citation conventions within the field in which they are studying; and
  4. asking their instructor for guidance when they are uncertain of how to acknowledge the contributions of others in their thinking and writing.

More information about Academic Misconduct from the Dean of Students

Diversity and inclusivity statements

Respect for Diversity: It is our intent that 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 students bring to this class be viewed as a resource, strength and benefit. It is our intent to present materials and activities that are respectful of diversity: gender identity, sexual orientation, disability, age, socioeconomic status, ethnicity, race, religion, culture, perspective, and other background characteristics. Your suggestions about how to improve the value of diversity in this course are encouraged and appreciated. Please let us know ways to improve the effectiveness of the course for you personally or for other students or student groups.

In addition, in scheduling exams, we have attempted to avoid conflicts with major religious holidays. If, however, we have inadvertently scheduled an exam or major deadline that creates a conflict with your religious observances, please let us know as soon as possible so that we can make other arrangements.

Support for Inclusivity: We support an inclusive learning environment where diversity and individual differences are understood, respected, appreciated, and recognized as a source of strength. We expect that students, faculty, administrators and staff at MSU will respect differences and demonstrate diligence in understanding how other peoples’ perspectives, behaviors, and worldviews may be different from their own.