
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Learn to build and interpret linear and logistic regression models in python, from setup and data analysis to preprocessing, fitting, testing, and extracting business insights.
Install Python and the Anaconda distribution for data science, including Jupyter notebook and libraries, with a brief crash course and guidance for Mac or Windows and VS Code setup.
Celebrate reaching this milestone and joining the top 50% of learners. Maintain motivation to complete the course and use the Q&A, AI assistant, and certificate access.
Open Jupyter notebook using three methods: Anaconda Navigator, Anaconda Prompt, or Command Prompt, and navigate the default directory, change folders with cd, and understand ipynb notebooks in your browser.
Learn how to set up and navigate a Jupyter notebook in Anaconda, create and run Python code in cells, and switch between code, markdown, and raw formats using essential shortcuts.
Learn Python basics by performing arithmetic operations—addition, subtraction, multiplication, division, exponentiation, and modulus—while mastering operator precedence, variable assignment, and comparison operators.
Learn strings in Python basics, including quotes (single and double), variables, and print formatting. Discover string operations like length, replace, indexing, and slicing with positive and negative indices.
Explore Python data types with lists, tuples, and dictionaries, including creation, indexing, slicing, stepping, and nesting; compare mutable lists to immutable tuples and access dictionary values by keys.
Explore numpy, pandas, and seaborn basics, open a Jupyter notebook, create numpy arrays and matrices, inspect shapes and dtypes, and generate values with range, linspace, and random matrices in Python.
Explore the pandas library in Python to import csv data, inspect with head and describe, and index with iloc and loc for efficient data manipulation.
Visualize data with seaborn by plotting histograms and scatter plots, tweaking KDE visibility, and using pair plots on the iris dataset for sepal and petal measurements and species.
Identify the two main data types, qualitative (categorical) and quantitative, and their subtypes, nominal vs ordinal and discrete vs continuous, to determine appropriate analyses.
Explore the types of statistics, including descriptive and inferential statistics, and learn how measures of center and dispersion describe data, with graphs like bar charts and histograms.
Describe data with frequency distributions for qualitative and quantitative data, convert to bar charts and histograms, and interpret normal distribution, skewness, and symmetry.
Explore the four measures of center—mean, median, mode, and mid-range—and learn when to use population versus sample mean, compute medians, identify modes, and apply to qualitative data.
Explain measures of dispersion—range, standard deviation, and variance—and how outliers affect range; show how variance and standard deviation quantify spread from the mean.
Understand the business context to identify relevant variables and gather the data, then distinguish primary research from secondary research using examples like cart abandonment in online sales.
Identify data needs from research, request internal and external sources, and perform quality checks to prepare clean, well-defined data for analysis, using cart abandonment as an example.
explains assembling a property pricing dataset of 506 observations and 19 columns, defines price as the dependent variable, and outlines a data dictionary with a primary key to join sources.
Launch jupyter notebook via anaconda navigator, set your working directory, and import numpy, pandas, and seaborn to load a house price csv with headers, inspect with df.head and df.shape.
Explore univariate analysis of tabular data using descriptive statistics, mean, median, mode, range, quartiles, standard deviation, categorical counts, and the extended data dictionary (edd) to identify outliers and missing values.
Perform exploratory data analysis (EDD) on the dataset to inspect variables and missing values. Use scatterplots and seaborn joint plots to reveal price relationships and identify outliers and skewness.
Identify outliers using box plots, scatter plots, and histograms, and impute or cap them with percentile, sigma, or exponential smoothing methods to improve prediction accuracy.
Identify and treat outliers in Python using percentile-based capping for n_hot_rooms and rainfall, and transform crime rate with log or square root to improve linearity.
Learn how to handle missing values by imputing with zero, mean, median, or segment mean, and by using the most frequent category for categorical variables, guided by business context.
Impute missing values in Python by using df.info to identify gaps, then fill with the mean via fillna, updating the data frame.
explains seasonality in time-based data, shows how to remove it by applying a multiplication correction factor using monthly means, normalizing sales data for better model fit.
Explore bivariate analysis with scatterplots and correlation matrices to identify linear relationships and multicollinearity, then transform variables using log, exponential, or polynomial forms for improved linear regression.
Identify and remove non-informative variables, such as those with a single value or low fill rate, and use bivariate analysis to validate relevant relationships before regression modeling.
Convert categorical data into numeric indicators using dummy variables; regression requires numeric data and uses n minus one 0/1 dummies, where all zeros denote the baseline category.
Create dummy variables in Python to convert categorical airport and waterbody categories into numerical features, then drop redundant columns like airport_no and waterbody_none to illustrate full negative correlation.
Explore how correlation matrices reveal whether two variables move together, showing positive, negative, or near-zero relationships, and avoid multicollinearity by selecting variables with stronger links to the dependent variable.
Compute the correlation matrix with df dot corr to identify strong and weak relations, and remove redundant variables to avoid multicollinearity, such as removing park.
Explore linear regression as a simple supervised learning tool and its least squares method to fit a linear model, using house pricing data to quantify prediction accuracy and variable effects.
Explore simple linear regression with one predictor, estimate beta0 and beta1 via ordinary least squares, and minimize the residual sum of squares to predict Y.
learn to assess the accuracy of linear regression coefficients using standard errors, confidence intervals (including 95%), and hypothesis testing to determine if the number of rooms predicts house price.
Assess model accuracy by examining residual standard error and r-squared. Learn how adjusted r-squared accounts for predictors and how TSS and RSS relate to explained variance.
Learn simple linear regression in Python using statsmodels and sklearn, fit models with an intercept and slope, and interpret p-values, r-squared, and seaborn plots of the regression line.
Explore multiple linear regression with predictors, interpreting beta coefficients as the effect of each predictor on price while holding others fixed, and review model fit metrics like r-squared and p-values.
Explore how the f statistic assesses whether a regression model's predictors impact the response, adjusting for multiple variables, and interpret it with its p value before checking individual t values.
Build a multiple linear regression in Python with statsmodels and sklearn, creating X from all vars except price, adding a constant, and interpreting coefficients, p-values, and r-squared for key predictors.
Learn to split data into training and test sets, evaluate mean squared error, and compare training versus test error using validation set, leave-one-out, and k-fold cross-validation.
Explore the bias-variance tradeoff by comparing model flexibility, variance, and bias to minimize the test error, recognizing overfitting and irreducible error.
Split data into test and train sets with train_test_split, train a linear regression model, and evaluate performance on the test set using r2_score.
Explore three classification models—logistic regression, K nearest neighbours, and linear discriminant analysis—and predict sold within three months using a preprocessed dataset of 506 transactions.
Create a dataframe DF and load data with pd.read_csv, adjust Windows path slashes to forward slashes, and set header=0 for the first row.
Explore two regression questions: prediction and inferential, using house data to predict sale within three months and measure variable impact with classifiers.
Explore why linear regression fails for classification, including when the response has more than two levels, probability interpretation, and sensitivity to outliers; learn how logistic regression overcomes these issues.
Explore logistic regression for credit default, using the sigmoid function to map balance, income, and student to a 0–1 probability and estimate coefficients via maximum likelihood.
Learn to build a logistic regression model in python with sklearn and stats model, using price to predict sold, fitting with x and y, and examining coef and intercept.
Analyze a logistic regression with one predictor (price), interpret beta0 and beta1, compute probability of y=1, and assess significance using the p value to decide if price affects the response.
Extend logistic regression to multiple predictors using maximum likelihood to estimate betas and predict probabilities with a 0.5 decision boundary; for multi-class responses, consider linear discriminant analysis.
Learn to build a logistic regression model with multiple predictors in Python using sklearn and statsmodels. Prepare X and y, fit the model, interpret coefficients and intercept, and predict probabilities.
Explore how a confusion matrix evaluates model predictions by comparing true versus predicted values, highlighting type one error (false positive) and type two error (false negative) and threshold adjustments.
Learn to generate probability outputs with logistic regression via clf_lr.predict_proba, set and customize decision thresholds (0.5, 0.3), and evaluate predictions using confusion matrices to reveal true/false positives and negatives.
Assess classifier performance using confusion matrices, true/false positives and negatives, and metrics like precision, sensitivity, specificity, and ROC AUC.
Compute precision, recall, and ROC AUC scores for logistic regression and other models in Python using sklearn metrics, and compare AUC across models like LDA and KNN.
Split data into training and test sets to assess model accuracy on unseen data, using confusion matrices and test error, and explore validation, leave-one-out, and k-fold cross-validation.
Split the data into train and test sets with train_test_split, train a logistic regression model on the training set, and evaluate accuracy and the confusion matrix on the test set.
Celebrate finishing the course and earn your certificate of completion; if the certificate is greyed out, check missing lectures and mark them complete to unlock the download.
You're looking for a complete Linear Regression and Logistic Regression course that teaches you everything you need to create a Linear or Logistic Regression model in Python, right?
You've found the right Linear Regression course!
After completing this course you will be able to:
Identify the business problem which can be solved using linear and logistic regression technique of Machine Learning.
Create a linear regression and logistic regression model in Python and analyze its result.
Confidently model and solve regression and classification problems
A Verifiable Certificate of Completion is presented to all students who undertake this Machine learning basics course.
What is covered in this course?
This course teaches you all the steps of creating a Linear Regression model, which is the most popular Machine Learning model, to solve business problems.
Below are the course contents of this course on Linear Regression:
Section 1 - Basics of Statistics
This section is divided into five different lectures starting from types of data then types of statistics
then graphical representations to describe the data and then a lecture on measures of center like mean
median and mode and lastly measures of dispersion like range and standard deviation
Section 2 - Python basic
This section gets you started with Python.
This section will help you set up the python and Jupyter environment on your system and it'll teach
you how to perform some basic operations in Python. We will understand the importance of different libraries such as Numpy, Pandas & Seaborn.
Section 3 - Introduction to Machine Learning
In this section we will learn - What does Machine Learning mean. What are the meanings or different terms associated with machine learning? You will see some examples so that you understand what machine learning actually is. It also contains steps involved in building a machine learning model, not just linear models, any machine learning model.
Section 4 - Data Preprocessing
In this section you will learn what actions you need to take a step by step to get the data and then
prepare it for the analysis these steps are very important.
We start with understanding the importance of business knowledge then we will see how to do data exploration. We learn how to do uni-variate analysis and bi-variate analysis then we cover topics like outlier treatment, missing value imputation, variable transformation and correlation.
Section 5 - Regression Model
This section starts with simple linear regression and then covers multiple linear regression.
We have covered the basic theory behind each concept without getting too mathematical about it so that you
understand where the concept is coming from and how it is important. But even if you don't understand
it, it will be okay as long as you learn how to run and interpret the result as taught in the practical lectures.
We also look at how to quantify models accuracy, what is the meaning of F statistic, how categorical variables in the independent variables dataset are interpreted in the results, what are other variations to the ordinary least squared method and how do we finally interpret the result to find out the answer to a business problem.
By the end of this course, your confidence in creating a regression model in Python will soar. You'll have a thorough understanding of how to use regression modelling to create predictive models and solve business problems.
How this course will help you?
If you are a business manager or an executive, or a student who wants to learn and apply machine learning in Real world problems of business, this course will give you a solid base for that by teaching you the most popular techniques of machine learning, which is Linear Regression and Logistic Regregression
Why should you choose this course?
This course covers all the steps that one should take while solving a business problem through linear and logistic regression.
Most courses only focus on teaching how to run the analysis but we believe that what happens before and after running analysis is even more important i.e. before running analysis it is very important that you have the right data and do some pre-processing on it. And after running analysis, you should be able to judge how good your model is and interpret the results to actually be able to help your business.
What makes us qualified to teach you?
The course is taught by Abhishek and Pukhraj. As managers in Global Analytics Consulting firm, we have helped businesses solve their business problem using machine learning techniques and we have used our experience to include the practical aspects of data analysis in this course
We are also the creators of some of the most popular online courses - with over 150,000 enrollments and thousands of 5-star reviews like these ones:
This is very good, i love the fact the all explanation given can be understood by a layman - Joshua
Thank you Author for this wonderful course. You are the best and this course is worth any price. - Daisy
Our Promise
Teaching our students is our job and we are committed to it. If you have any questions about the course content, practice sheet or anything related to any topic, you can always post a question in the course or send us a direct message.
Download Practice files, take Quizzes, and complete Assignments
With each lecture, there are class notes attached for you to follow along. You can also take quizzes to check your understanding of concepts. Each section contains a practice assignment for you to practically implement your learning.
Go ahead and click the enroll button, and I'll see you in lesson 1!
Cheers
Start-Tech Academy
------------
Below is a list of popular FAQs of students who want to start their Machine learning journey-
What is Machine Learning?
Machine Learning is a field of computer science which gives the computer the ability to learn without being explicitly programmed. It is a branch of artificial intelligence based on the idea that systems can learn from data, identify patterns and make decisions with minimal human intervention.
What is the Linear regression technique of Machine learning?
Linear Regression is a simple machine learning model for regression problems, i.e., when the target variable is a real value.
Linear regression is a linear model, e.g. a model that assumes a linear relationship between the input variables (x) and the single output variable (y). More specifically, that y can be calculated from a linear combination of the input variables (x).
When there is a single input variable (x), the method is referred to as simple linear regression.
When there are multiple input variables, the method is known as multiple linear regression.
Why learn Linear regression technique of Machine learning?
There are four reasons to learn Linear regression technique of Machine learning:
1. Linear Regression is the most popular machine learning technique
2. Linear Regression has fairly good prediction accuracy
3. Linear Regression is simple to implement and easy to interpret
4. It gives you a firm base to start learning other advanced techniques of Machine Learning
How much time does it take to learn Linear regression technique of machine learning?
Linear Regression is easy but no one can determine the learning time it takes. It totally depends on you. The method we adopted to help you learn Linear regression starts from the basics and takes you to advanced level within hours. You can follow the same, but remember you can learn nothing without practicing it. Practice is the only way to remember whatever you have learnt. Therefore, we have also provided you with another data set to work on as a separate project of Linear regression.
What are the steps I should follow to be able to build a Machine Learning model?
You can divide your learning process into 4 parts:
Statistics and Probability - Implementing Machine learning techniques require basic knowledge of Statistics and probability concepts. Second section of the course covers this part.
Understanding of Machine learning - Fourth section helps you understand the terms and concepts associated with Machine learning and gives you the steps to be followed to build a machine learning model
Programming Experience - A significant part of machine learning is programming. Python and R clearly stand out to be the leaders in the recent days. Third section will help you set up the Python environment and teach you some basic operations. In later sections there is a video on how to implement each concept taught in theory lecture in Python
Understanding of Linear and Logistic Regression modelling - Having a good knowledge of Linear and Logistic Regression gives you a solid understanding of how machine learning works. Even though Linear regression is the simplest technique of Machine learning, it is still the most popular one with fairly good prediction ability. Fifth and sixth section cover Linear regression topic end-to-end and with each theory lecture comes a corresponding practical lecture where we actually run each query with you.
Why use Python for data Machine Learning?
Understanding Python is one of the valuable skills needed for a career in Machine Learning.
Though it hasn’t always been, Python is the programming language of choice for data science. Here’s a brief history:
In 2016, it overtook R on Kaggle, the premier platform for data science competitions.
In 2017, it overtook R on KDNuggets’s annual poll of data scientists’ most used tools.
In 2018, 66% of data scientists reported using Python daily, making it the number one tool for analytics professionals.
Machine Learning experts expect this trend to continue with increasing development in the Python ecosystem. And while your journey to learn Python programming may be just beginning, it’s nice to know that employment opportunities are abundant (and growing) as well.