Machine Learning: Python Simple Linear Regression | Predict future sales | Predictive Analytics

preview_player
Показать описание
In this video we will predict a company's sales using simple linear regression. We use training dataset that has Marketing Budget and corresponding Sales and train a linear regression model using sklearn linear regression. Using this regression model we use the predict method from the linear regression object to make actual forecast.

Click on a green button to clone or download the entire repository and then go to relevant folder to get access to that specific file.

#MachineLearning #LinearRegression #scikitlearn

Topics covered in this Machine Learning Video:
0:00 Simple linear regression Overview
1:21 Linear equation
3:41 Import sklearn library & libraries
4:23 Import data in dataframe
4:49 heatmap
5:24 Scatter plot
6:16 Create Linear Regression object
6:38 Predict a single value
9:37 Forecast the sales for future quarters
Рекомендации по теме
Комментарии
Автор

You made it crystal clear! Thank you Sir.

gulmiraleman
Автор

amazing video, can you just let me know in the last graph, what are the x and y axis? Y should be the actual sales but the X axis? Is it the marketing budget or a time frame?

fori
Автор

Great Video! Quick question, how come you don't do a split of the data and test it? Do you have a video covering 2 or more independent variables to predict the y-variable?

ShiftKoncepts
Автор

For this part "plt.scatter(df['Marketing Budget (X) in Thousands'], df['Actual Sales(Y) in Millions'], color='red')" does it matter which order they go in?

ShiftKoncepts
Автор

Hello again. Can I turn this into a tensorflowlite model?

arvguerrero
Автор

Hello can you please help me I got "Unexpected expection formatting exception. Falling back to standard expcrtion" error thank you 💫

blackmirror
Автор

Hello. How can I integrate this to my android application using kotlin? Thank you!

arvguerrero
Автор

In this part "plt.plot(df['Marketing Budget (X) in Thousands'], y_predict, 'r')" what is the 'r' for?

ShiftKoncepts