How to do Linear Regression in Python| From importing dataset to printing model summary| OLS method

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ก.พ. 2025
  • Simple Linear Regression in Python using Jupyter Notebook -
    In this Video we will predict the salary of graduating students using simple linear regression model . We use training data that contains the salary of 50 graduating students and their corresponding percentage marks in grade 10 (dummy data)
    Steps covered:
    Importing dataset
    Investigating data
    Identifying the features(X) and outcome (Y) variable
    Splitting the dataset into training and test sets
    Predicting Y (Salary)
    Fit the model using both OLS() method and LinearRegression method
    Measuring Model Accuracy
    Scatter Plot
    Print model summary
    #MachineLearning #PythonMachineLearning #MachineLearningTutorial #Python #PythonTutorial #PythonTraining #LinearRegression #Jupyternotebook #PythonJupyter

ความคิดเห็น • 22

  • @davidmusuya5538
    @davidmusuya5538 5 หลายเดือนก่อน

    You are a perfect teacher , you made me understand python well

  • @PillsLifestyleReviews
    @PillsLifestyleReviews ปีที่แล้ว

    It was difficult to find a video like this. Thank you Megha!

  • @ketakipatil967
    @ketakipatil967 4 ปีที่แล้ว +3

    Awesome! Just what I was looking for!

  • @sreeranjan
    @sreeranjan ปีที่แล้ว

    Wow Excellent Explanation 😍😍

  • @sumantadas9098
    @sumantadas9098 2 ปีที่แล้ว

    Great work. Keep uploading videos on python.

  • @khusbukhatun6817
    @khusbukhatun6817 ปีที่แล้ว

    Thank you ma'am. This is really helpful 😊

  • @kunalshendre2692
    @kunalshendre2692 4 ปีที่แล้ว +2

    Thanks mam very helpful video

  • @sam-mv6vj
    @sam-mv6vj 3 ปีที่แล้ว

    Please continue your work this is very helpful

  • @askpioneer
    @askpioneer 2 ปีที่แล้ว +2

    great and simple language video. one correction or suggestion, kindly share ipynb file , which helps to do further research. also if model is predicting low or unacceptable , what should we do ? if you can answer it will be complete experience. like to change algorithm or something else ?

  • @masonlee8573
    @masonlee8573 3 ปีที่แล้ว

    Thank you ! Was a great review for me

  • @jongcheulkim7284
    @jongcheulkim7284 3 ปีที่แล้ว

    Thank you so much. This is very helpful.

  • @tharunraju5650
    @tharunraju5650 10 หลายเดือนก่อน

    guys, for the last piece of code, what does she put to calculate the difference, ive typed it in until pred_y

  • @princessnwaru
    @princessnwaru 2 ปีที่แล้ว

    Thank you so much

  • @swatisingh4041
    @swatisingh4041 3 ปีที่แล้ว

    Please make some videos on Random Forest and Neural network algorithms.

  • @wide_bedroom
    @wide_bedroom 9 หลายเดือนก่อน

    madam pls do videos on ml using python .

  • @MehtabAfzal-i3t
    @MehtabAfzal-i3t 10 หลายเดือนก่อน

    From where to get dataset

  • @emerging_entrepreneur742
    @emerging_entrepreneur742 8 หลายเดือนก่อน

    Where is the dataset link ?

  • @saurabharbal4474
    @saurabharbal4474 2 ปีที่แล้ว

    please provide the dataset link

  • @Slantz00
    @Slantz00 3 ปีที่แล้ว +1

    Madam Can you please make videos on all machine learning concepts too

    • @MeghaNarang
      @MeghaNarang  3 ปีที่แล้ว +2

      sure, i try to upload videos on Tableau and Python ML whenever I can. Lately, it became slow due to my schedule but will try to upload a new video soon.

    • @saurabharbal4474
      @saurabharbal4474 2 ปีที่แล้ว

      @@MeghaNarang please provide the dataset link

  • @sahelidas1497
    @sahelidas1497 3 ปีที่แล้ว

    Could you please share the dataset?