Fitting Statistical Models to Data with Python
Keep adding new skills with 10,000+ programs for $239 (usually $399). Save now.
Fitting Statistical Models to Data with Python
This course is part of Statistics with Python Specialization
36,880 already enrolled
Included with
Learn more
Ask Coursera
718 reviews
Recommended experience
718 reviews
Recommended experience
What you'll learn
Deepen your understanding of statistical inference techniques by mastering the art of fitting statistical models to data.
Connect research questions with data analysis methods, emphasizing objectives, relationships between variables, and making predictions.
Explore various statistical modeling techniques like linear regression, logistic regression, and Bayesian inference using real data sets.
Work through hands-on case studies in Python with libraries like Statsmodels, Pandas, and Seaborn in the Jupyter Notebook environment.
Skills you'll gain
Tools you'll learn
Details to know
7 assignments
See how employees at top companies are mastering in-demand skills
Build your subject-matter expertise
- Learn new concepts from industry experts
- Gain a foundational understanding of a subject or tool
- Develop job-relevant skills with hands-on projects
- Earn a shareable career certificate
There are 4 modules in this course
In this course, we will expand our exploration of statistical inference techniques by focusing on the science and art of fitting statistical models to data. We will build on the concepts presented in the Statistical Inference course (Course 2) to emphasize the importance of connecting research questions to our data analysis methods. We will also focus on various modeling objectives, including making inference about relationships between variables and generating predictions for future observations.
This course will introduce and explore various statistical modeling techniques, including linear regression, logistic regression, generalized linear models, hierarchical and mixed effects (or multilevel) models, and Bayesian inference techniques. All techniques will be illustrated using a variety of real data sets, and the course will emphasize different modeling approaches for different types of data sets, depending on the study design underlying the data (referring back to Course 1, Understanding and Visualizing Data with Python). During these lab-based sessions, learners will work through tutorials focusing on specific case studies to help solidify the weekβs statistical concepts, which will include further deep dives into Python libraries including Statsmodels, Pandas, and Seaborn. This course utilizes the Jupyter Notebook environment within Coursera.
We begin this third course of the Statistics with Python specialization with an overview of what is meant by βfitting statistical models to data.β In this first week, we will introduce key model fitting concepts, including the distinction between dependent and independent variables, how to account for study designs when fitting models, assessing the quality of model fit, exploring how different types of variables are handled in statistical modeling, and clearly defining the objectives of fitting models.
What's included
8 videos6 readings1 assignment2 ungraded labs
8 videosβ’Total 73 minutes
- Welcome to the Course!β’4 minutes
- Fitting Statistical Models to Data with Python Guidelinesβ’6 minutes
- What Do We Mean by Fitting Models to Data?β’18 minutes
- Types of Variables in Statistical Modelingβ’14 minutes
- Different Study Designs Generate Different Types of Data: Implications for Modelingβ’10 minutes
- Objectives of Model Fitting: Inference vs. Predictionβ’11 minutes
- Plotting Predictions and Prediction Uncertaintyβ’8 minutes
- Python Statistics Landscapeβ’3 minutes
6 readingsβ’Total 48 minutes
- Course Syllabusβ’10 minutes
- Meet the Course Team!β’10 minutes
- Help Us Learn More About You!β’10 minutes
- About Our Datasetsβ’2 minutes
- Mixed effects models: Is it time to go Bayesian by default?β’15 minutes
- Python Statistics Landscapeβ’1 minute
1 assignmentβ’Total 15 minutes
- Week 1 Assessmentβ’15 minutes
2 ungraded labsβ’Total 45 minutes
- Python Librariesβ’15 minutes
- Getting Started with Modeling in Pythonβ’30 minutes
In this second week, weβll introduce you to the basics of two types of regression: linear regression and logistic regression. Youβll get the chance to think about how to fit models, how to assess how well those models fit, and to consider how to interpret those models in the context of the data. Youβll also learn how to implement those models within Python.
What's included
5 videos4 readings3 assignments3 ungraded labs
5 videosβ’Total 68 minutes
- Linear Regression Introductionβ’11 minutes
- Linear Regression Inferenceβ’15 minutes
- Interview: Causation vs Correlationβ’19 minutes
- Logistic Regression Introductionβ’16 minutes
- Logistic Regression Inferenceβ’7 minutes
4 readingsβ’Total 85 minutes
- Linear Regression Models: Notation, Parameters, Estimation Methodsβ’30 minutes
- Try It Out: Continuous Data Scatterplot Appβ’15 minutes
- Importance of Data Visualization: The Datasaurus Dozenβ’10 minutes
- Logistic Regression Models: Notation, Parameters, Estimation Methodsβ’30 minutes
3 assignmentsβ’Total 55 minutes
- Linear Regression Quizβ’20 minutes
- Logistic Regression Quizβ’15 minutes
- Week 2 Python Assessmentβ’20 minutes
3 ungraded labsβ’Total 60 minutes
- NHANES Case Study: Linear and Logistic Regressionβ’30 minutes
- Practice notebook for regression analysis with NHANESβ’30 minutes
- Week 2 Python Assessment Notebookβ’0 minutes
In the third week of this course, we will be building upon the modeling concepts discussed in Week 2. Multilevel and marginal models will be our main topic of discussion, as these models enable researchers to account for dependencies in variables of interest introduced by study designs. Weβll be covering why and when we fit these alternative models, likelihood ratio tests, as well as fixed effects and their interpretations.
What's included
7 videos3 readings2 assignments4 ungraded labs
7 videosβ’Total 111 minutes
- What are Multilevel Models and Why Do We Fit Them?β’17 minutes
- Multilevel Linear Regression Modelsβ’21 minutes
- Multilevel Logistic Regression modelsβ’15 minutes
- Practice with Multilevel Modeling: The Cal Poly Appβ’13 minutes
- What are Marginal Models and Why Do We Fit Them?β’14 minutes
- Marginal Linear Regression Modelsβ’20 minutes
- Marginal Logistic Regressionβ’11 minutes
3 readingsβ’Total 30 minutes
- Visualizing Multilevel Modelsβ’10 minutes
- Likelihood Ratio Tests for Fixed Effects and Variance Componentsβ’10 minutes
- Link to the Cal Poly Appβ’10 minutes
2 assignmentsβ’Total 35 minutes
- Name That Modelβ’15 minutes
- Week 3 Python Assessmentβ’20 minutes
4 ungraded labsβ’Total 90 minutes
- Fitting Multilevel and Marginal Models to Autism Data in Pythonβ’30 minutes
- NHANES Case Study: Marginal and Multilevel Regressionβ’30 minutes
- Practice: Marginal and Multilevel Regressionβ’30 minutes
- Week 3 Python Assessmentβ’0 minutes
In this final week, we introduce special topics that extend the curriculum from previous weeks and courses further. We will cover a broad range of topics such as various types of dependent variables, exploring sampling methods and whether or not to use survey weights when fitting models, and in-depth case studies utilizing Bayesian techniques to derive insights from data. Youβll also have the opportunity to apply Bayesian techniques in Python.
What's included
6 videos4 readings1 assignment1 discussion prompt1 ungraded lab
6 videosβ’Total 90 minutes
- Should We Use Survey Weights When Fitting Models?β’14 minutes
- Introduction to Bayesianβ’5 minutes
- Bayesian Approaches to Statistics and Modelingβ’16 minutes
- Bayesian Approaches Case Study: Part Iβ’13 minutes
- Bayesian Approaches Case Study: Part IIβ’19 minutes
- Bayesian Approaches Case Study - Part IIIβ’24 minutes
4 readingsβ’Total 60 minutes
- Other Types of Dependent Variablesβ’20 minutes
- Optional: A Visual Introduction to Machine Learningβ’20 minutes
- Course Feedbackβ’10 minutes
- Keep Learning with Michigan Onlineβ’10 minutes
1 assignmentβ’Total 20 minutes
- Week 4 Python Assessment β’20 minutes
1 discussion promptβ’Total 10 minutes
- Your Turn: Other Types of Dependent Variablesβ’10 minutes
1 ungraded lab
- Bayesian in Pythonβ’0 minutes
Earn a career certificate
Add this credential to your LinkedIn profile, resume, or CV. Share it on social media and in your performance review.
Instructors
Offered by
Explore more from Probability and Statistics
- Status: Free TrialU
University of Michigan
Course
- Status: Free TrialU
University of Michigan
Course
- Status: Free TrialE
Edureka
Course
- Status: Free Trial
Course
Why people choose Coursera for their career
Learner reviews
- 5 stars
66.57%
- 4 stars
19.35%
- 3 stars
7.93%
- 2 stars
3.48%
- 1 star
2.64%
Showing 3 of 718
Reviewed on Sep 6, 2020
I think the notebook walkthroughs, while useful, could use some extra reinforcement in the statistical concepts
Reviewed on Jun 19, 2020
The course was wonderful however, sometimes I felt that a little bit more details could be provided when python code was being explained for week 2.
Reviewed on Jan 23, 2021
Week 3 starts to get unreasonably difficult and hard to understand. Apart from that, the course is still worthwhile to take.
Frequently asked questions
To access the course materials, assignments and to earn a Certificate, you will need to purchase the Certificate experience when you enroll in a course. You can try a Free Trial instead, or apply for Financial Aid. The course may offer 'Full Course, No Certificate' instead. This option lets you see all course materials, submit required assessments, and get a final grade. This also means that you will not be able to purchase a Certificate experience.
When you enroll in the course, you get access to all of the courses in the Specialization, and you earn a certificate when you complete the work. Your electronic Certificate will be added to your Accomplishments page - from there, you can print your Certificate or add it to your LinkedIn profile.
Yes. In select learning programs, you can apply for financial aid or a scholarship if you canβt afford the enrollment fee. If fin aid or scholarship is available for your learning program selection, youβll find a link to apply on the description page.
More questions
Financial aid available,
