Course Info
Welcome!
I love teaching this course, and I am an R enthusiast! I know it times this course can be challenging but I promise you the hard work will pay off. Please read this document fully and bring questions about this to class on 09/02 or post on Piazza.
1 Course Description
A solid foundation in statistics and R is the standard tool for performing statistics in biology, health studies, data science, and many other fields. Because of this, B215 is neither just a biostatistics course nor simply an R programming course: it is a biostatistics course where R is directly integrated into the learning process. We will focus mainly on classic statistics (so-called “frequentist”) and probability theory, but we will also have an introduction to the increasingly relevant Bayesian statistics approach.
Throughout the course, we use motivating case studies and data analysis problem sets and R labs based on similar challenges to those one finds in scientific research.
Topics we (aim to) cover in the lecture portion of the class:
- Sampling & Experimental Design
- Descriptive statistics
- Data visualization
- Probability Theory
- Estimation & Hypothesis Testing
- The Normal Distribution
- Comparing samples & Correlations
- Bootstrapping and permutation
- Bayesian vs. Likelihood approaches
- Bootstrapping & Permutation Tests Likelihood & Bayesian Statistics
In labs, you will learn:
- the fundamentals of any programming language, which will be relevant for any future programming languages you decide to learn
- how to run built-in functions in R to run summary statistics, make plots, and perform data analyses in general
- how to use Rmarkdown to make beautiful reports with text and code
- how to write your own functions for custom analyses
- how to troubleshoot/debug your code, arguably the most important skill a programmer must develop
2 Textbook & Other Materials
- The Analysis of Biological Data (3rd or 2nd edition), by Whitlock & Schluter. This is a great book with a ton of exercises. The e-book version is cheaper if you rent it. Collier Library will have one copy on reserve for enrolled students.
- For labs you will need a laptop with a browser. Tablets in my experience will not work. If you need, you can borrow a laptop from the bio department. Email our admin Andrew (agalleghe[at]brynmawr.edu).
- For exams you may use a calculator to save you time. A scientific calculator with roots, exponents,etc, is fine, but graphic/function calculators will NOT be accepted. Please plan accordingly. A scientific calculator is ~ $12 and you might also be able to borrow one from a buddy on Midterm days.
3 Weekly Course Structure
Monday and Wednesday lectures: Introduces statistical concepts and addresses questions based on the assigned readings. In-class activities will occur often and count towards your grade. Lectures are designed with the assumption that you have completed the pre-assigned readings, enabling us to dive deeper into nuances, applications, and questions.
Tuesday labs: R computer lab (bring your laptop) with guided tutorial. Activity is due by the end of the day.
Typically problem sets and lab assignments are due on Fridays, but always check case by case.
Quizzes are typically due weekly on Sundays though you may retake them later.
Lectures will not be recorded. Follow PA regulations, you are also not allowed to record lectures without explicit permission.
We have Piazza set up for you to ask questions outside of class. Professor and TA will check this often and it is the preferred method to get our help. You may post your questions anonymously on Piazza, so no excuse for not using it! Also, see office hours schedule.
4 Grade Distribution
Component | Weight | Type |
---|---|---|
Low-stakes assignments 1 | 8% | Formative |
Problem sets | \(5\times 3\)% \(= 15\)% | |
Lab assignments 1 | 9 % | Formative |
Lab assignment 2 | 11 % | Summative |
Midterm 1 | 25% | |
Midterm 2 | 35% |
Formative vs. Summative Assessments 2(https://teachers.institute/assessment-for-learning/formative-vs-summative-evaluation-differences/] Formative assessments are focused on supporting the learning process throughout the course. Summative assessments typically occur at the end of a learning period and assess student mastery of the material and whether they have met learning objectives.
5 Problem Sets
Problem sets (5 in total) will be due roughly every two weeks (depending on difficulty) starting on week 4. They will be due at 11:59 PM on the day denoted on the Problem Sets page.
6 Lab Assignments
Lab assignment submissions need to be completely reproducible R markdown documents. If your R markdown file does not compile it will be considered a late day, and you will be notified and will need to resubmit a R markdown file that does compile. You will be deducted further late days for every day it takes for you to turn in a R markdown file that does knit.
You will be allowed to resubmit the first lab assignment (formative) within a week of my handing it back to you if you get less than 90% in your grade. The final grade will be the average of both attempts. There will be no re-submissions for the second lab assignment.
7 Grading
Low-stakes assessments will be graded for completion with the exception of the weekly quizzesm which will be graded as the average of your (unlimited) attempts. These will be open until the end of the course, but you are required to complete the quizz at least once before the deadline each week.
Since problem sets and lab assignments are formative, i.e, their purpose is learning, I will grade them benevolently follow this rubric:
Grade (%) | Description |
---|---|
100 | Grades \(> 90%\) will be rounded up. |
70-90 | Complete and various degrees of incorrect answers: 3 + major errors (~\(70\)%) to a few minor errors (~ \(90\)%) |
60 | Complete but sloppy or excessive amount of major errors. |
50 | Incomplete (not everything was answered) |
0 | Plagiarism (including innapropriate LLM use, see Section 11) |
Final grades will likely be assigned as follows (if curving is performed, it could increase but not decrease your grade):
Min % | BMC scale |
---|---|
93 | 4 |
90 | 3.7 |
87 | 3.3 |
83 | 3.0 |
80 | 2.7 |
77 | 2.3 |
70 | 2.0 |
8 Late work & Grace Days
Students can have a total of 4 late days without penalty during the entire semester. No need to provide a written excuse. Providing an explanation does not give you more days unless an accommodation is requested and approved by your dean. Email me at least a day before the deadline and communicate how many grace days (1-4) you are requesting and for which assignment.
10% of the total points for the problem sets, lab assignments, and labs will be deducted for every late day. Late quizzes will not be graded though you should still take them for practice/learning purposes.
9 Midterms
Both midterms are closed book, no internet. You may use certain calculator (see above) and you will be allowed one sheet of standard paper with hand-written notes (front and back) to assist you. Your thought process must be explained for all answers and your final answer clearly marked. Questions will drawn from or similar to problem sets. The second midterm will be scheduled during finals week.
Please make sure you can come to class on the midterm dates provided in the Key Dates table below. If you absolutely must miss the exam, you will need approval from your dean and myself before the exam in order to have a makeup. All make-up exams will be completely different from the in-class ones.
10 Make up policy
The course is structured in such a way that you can have some late work without penalty. So there will be no make-up for homework, problem sets and lab assignments.
Please know that makeup Midterms are not a given. If you absolutely must miss any of them, you will need approval from your dean and myself before the Midterm in order to have a makeup. Any make-up assessments will be completely different from the in-class ones.
11 Plagiarism & LLMs Policy
The Bryn Mawr honor code covers both of these well and I am following these guidelines, copied here:
BMC honor code on Plagiarism:
In reports and other written work, sources of information and of ideas and opinions not the student’s own must be clearly indicated; the source of direct quotations must be acknowledged. Failure to do so constitutes plagiarism.
From me: In addition to the above, yes, LLMs/AI also must be properly acknowledged if permitted in an assignment (see ?@sec-LLMs). If you have doubts about whether something constitutes plagiarism, please ask on Piazza.
BMC honor code on LLMs/AI:
Generative AI tools should not be used in the completion of any course assignments, exams, or written work, including laboratory work, unless an instructor for a given course has specifically and explicitly authorized their use for the assignment in question.
Presenting AI-generated content as original student work, submitting AI-generated content without citing its source in artificial intelligence tools, and relying on generative AI tools for closed-book quizzes, tests, and exams all constitute violations of the Honor Code.
Ok, so there we go, this should be pretty clear to everyone.
If you’re interested in why some of us are strict about this, here is my phylosophy on LLMs/AI as of 2025:
LLMs for learning?
- I am aware that most college students in the U.S. right now use chatGPT/AI regularly.
- I am also aware of arguments that students need to be trained to use proper use of AI.
- It is almost certain that in your professional life you will use this to some extent (or be pressured to do so for the sake of “efficiency”).
Ok, great, now counter points:
- I am 100% sure that no one is looking to hire a person who pastes LLM output and presents it as their own work. Anyone can do that.
- Students will learn this anyway as they are using it for many things, often.
- One of the key purposes of a college education is to develop critical thinking, which AI it not only not helpful for but actually detrimental. Research clearly shows that when used in the ways many students do, it hampers the development of critical thinking. 3
On a more personal level, I personally have not embraced these tools because of their devastating impact on our already out of control climate catastrophe. 4 I don’t think the convenience of a quick summary is worth the energy and clean water demmands that LLM data centers impose.
I have many more thoughts on this, so feel free to come chat if you’re interested!
11.1 So can you use ir or not?
Following the BMC honor code:
For Lab assignments ONLY you can use it to understand things (e.g, to understand a cryptic error message) just as I am ok with you using web searches in general. I will give specific instructions about this in the assignments but, briefly, for the lab assignments you may search for help on the web, including the LLMs. If you do use LLMs for a lab assignment, you will be required to include citations for each instance where you used it, including the prompt you used. You are also required to cite any other sources of information.
Note: Stack Overflow and other programming forums online + office hours will be way more helpful to your lasting learning and what you will take from this course than LLMs, by the way. I have never had help from an LLM on a coding error that I could not figure out from online posts in forums.
For homework and problem sets: Please don’t use, as there is (ethical) reason to do so. The whole point of these formative assessments is to learn and/or practice for the exams.
Lastly, do remember you won’t be able to use AI or any other external sources beyond one page of your own notes during the midterms.
12 Key Dates
Date | Event |
---|---|
9/25 | Problem set 1 due |
10/10 | Problem set 2 due |
10/24 | Lab assignment 1 due |
10/28 | Midterm 1 |
11/6 | Problem set 3 due |
11/25 | Problem set 4 due |
12/04 | Lab Assignment 2 due |
12/11 | Problem set 5 due |
12/11 |
13 Institutional Support
13.1 Physical and Mental well-being
College is a marathon, not a sprint. Take care of your physical and mental health. You will reap more benefits if you are consistent than cramming an unreasonable amount of work into a short period of time. If you are struggling, do not wait: keep me and your academic dean on the same page so that we can help you achieve your best. Also, do not hesitate to seek out the services available to you such as the Bryn Mawr College counseling services.
13.2 Title IX
Info from the College website:
BMC strongly encourages all students to report any incidents of sexual misconduct. Bryn Mawr College is committed to providing an inclusive environment, free from sexual and gender-based discrimination. Title IX prohibits discrimination based on sex in any federally funded educational program or activity, and forms the basis for Bryn Mawr’s policies and resources regarding sex discrimination. The Bryn Mawr College Sexual Misconduct Policy prohibits Title IX sexual harassment, which includes sexual assault, dating violence, domestic violence, and stalking. Bryn Mawr’s Policy is more extensive than Title IX, and also covers other gender-based misconduct. BMC’s Policy is more extensive than Title IX, and also covers other gender-based misconduct.
Please be aware that all Bryn Mawr/Haverford employees (other than those designated as confidential resources such as counselors, clergy, and healthcare providers) must report information about such discrimination and harassment to the Bi-Co Tittle IX Coordinator.
13.3 Students with physical or learning differences
Info from the College website:
BMC is committed to providing equal access to students with a documented disability. Students needing academic accommodations for a disability must first register with Access Services. Students can call 610-526-7516 to make an appointment with the Access Services Director, Deb Alder, or email her at dalder[at]brynmawr.edu to begin this confidential process. Once registered, students should schedule an appointment with the professor as early in the semester as possible to share the verification form and make appropriate arrangements.
Please reach out as early as possible (ideally, even before classes start) so that we can make the necessary accommodations. Note that accommodations are not retroactive and require advance notice to implement.
Need help with math? The Bryn Mawr College Q Center supports students who are doing quantitative work in courses across the STEM and Social Science disciplines. The Q Center is a collaborative study space that provides a welcoming location for individual work, study groups, and collaboration with Q Mentors.
13.4 Fostering an Inclusive Learning Space
In an ideal world, it would be possible for scientific practice to be done in a perfectly objective way, free of biases and preconceptions. However, it is not so. Scientists are flawed and human. The history of science is also a history of who got the credit and is dominated by white, male, colonialist, and racist ideas. I will try to highlight less-known historical figures and provide a critical perspective on such matters whenever possible. I see the diversity of backgrounds and identities our students bring as a strength: age, culture, disability, ethnicity, gender, nationality, religion, sexuality, and socioeconomic status. I intend for this course to serve students from diverse backgrounds and perspectives. Your suggestions are encouraged and appreciated. Please let me know ways to improve the effectiveness of the course for you personally or for other students or student groups. You can do this in person during office hours, by email, or via the mid-semester anonymous survey.
14 Frequently asked questions
How should I contact the professor? If you have a general question, post it on Piazza.
One of your colleagues may know the answer and will respond before I can, or our TA will. Also, it is likely others may have/had a similar question. By sharing questions publicly, everyone benefits. Please check Piazza regularly. For private matters, please email me directly. I check my email at spaced intervals and will respond to emails within 24 hours Monday through Friday. If you do not hear from me within 24 hours (or after the weekend), email me again as your email may have been lost. Please plan ahead and do not save any time-sensitive questions for the last minute!
What if I have to miss class?
There are no points for attendance in lectures but I recommend you always attend when possible. Attendance in labs is mandatory. Please let the instructor know you won’t be making it to class before class starts. Life happens! Everyone is allowed 3 excused absences, no questions asked, no explanations needed, as long as the student informs the instructor in writing before class. All assignments for class must still be completed on time and with the coordination of relevant parties.
What if I cannot turn in an assignment in time?
Each student will have a total of 5 “grace days” they can use at any point to extend a deadline (no explanation required). If you are going to turn in an assignment late, send me an email at the latest the day beforethe deadline, specifying how many grace days (1-5) you’ll be using to extend the deadline. You don’t need to let me know why you’ll be late. The request will be automatically approved (as long as you have “grace days” left). Day-of requests will not be granted. If you are dealing with an emergency, please contact me explaining what happened.
What if I turn in an assignment late without (or very last minute) notice?
Your maximum score for a late assignment (problem sets, lab assignments) will drop by 10%, every 24h, starting from the deadline. In other words, if you turn in the essay 1 minute to 24h late, your maximum score will drop to 90%; if you turn it in 24h and 1 minute to 48h late, it will drop to 80%; and so on.
What if I am requesting an extension because of sickness?
See FAQs 2 and 3. Most people get sick at least once in a semester. If you have serious health issues that require more leniency, reach out to me and your dean so we can discuss.
What if I don’t hand in all the homework?
We will have plenty and the three lowest grades will be dropped in this category.
Can I use personal electronic devices in class?
Using them in the classroom setting can hinder instruction and learning, both for the student using the device and other students in the class. Therefore: no phone use in class. Only use your computers when it’s computer time (labs).
Can I use code from the internet in my assignments?
All work submitted must be your own. Nevertheless, searching the web for help with cryptic error messages is totally normal for any programmer. I highly recommend Stack Overflow, for example. Or simply searching “r + how to X” will usually get you somewhere useful. Just cite anything you use to help you solve a problem as described in ?@sec-plagiarism.
Can I use generative A.I. like ChatGPT?
Under no circumstance are you allowed to hand in code or prose/text generated by anyone (including A.I.) other than you. Certain uses are allowed under certain conditions. See ?@sec-plagiarism and ?@sec-LLMs.
What if I have accommodations?
Please see Section 13.3.
What if I have a conflict with the schedule due to religious holidays?
Check the schedule and if you foresee conflicts in the schedule due to religious observance, reach out as soon as possible so we can negotiate extensions.
What if I cannot afford the course materials?
If you have concerns about being able to afford course materials, please contact me. Also, see Section 2.