
Start coding a one-dimensional linear regression in Python, import numpy and matplotlib, load data from csv, compute a and b, and visualize the regression line.
Interpret how each unit change in a predictor, holding others constant, affects sales in a multiple regression; example uses capital investment and marketing spend in thousands of dollars.
Explore checking linearity and multicollinearity by examining relationships among independent variables, such as miles traveled and deliveries, and assess gas price to avoid redundancy in regression.
Analyze single-variable regressions of travel time on miles traveled, deliveries, and gas price, compare model performance using r-squared, standard error, and p-values to identify significant predictors.
Learn how to use dummy variables to encode categorical data in regression, including one fewer dummy, with examples like exemplary high schools and regional categories.
Understand overfitting in regression by comparing linear, quadratic, and higher-order polynomials, and learn how quadratic models balance fit and generalization for new data in Python.
Explore decision trees and regression trees to predict continuous targets using root and leaf nodes. Learn how splits use impurity, notably Gini impurity, to build accurate predictions.
Artificial Intelligence has become prevalent recently. People across different disciplines are trying to apply AI to make their tasks a lot easier. For example, economists are using AI to predict future market prices to make a profit, doctors use AI to classify whether a tumor is malignant or benign, meteorologists use AI to predict the weather, HR recruiters use AI to check the resume of applicants to verify if the applicant meets the minimum criteria for the job, etcetera. The impetus behind such ubiquitous use of AI is machine learning algorithms. For anyone who wants to learn ML algorithms but hasn’t gotten their feet wet yet, you are at the right place. The rudimental algorithm that every Machine Learning enthusiast starts with is a linear regression algorithm. Therefore, we shall do the same as it provides a base for us to build on and learn other ML algorithms.
Before knowing what is linear regression, let us get ourselves accustomed to regression. Regression is a method of modeling a target value based on independent predictors. This method is mostly used for forecasting and finding out the cause and effect relationship between variables. Regression techniques mostly differ based on the number of independent variables and the type of relationship between the independent and dependent variables.
Want to learn more about regression? Don't hesitate and join us to begin the journey of learning!