How to Run a Regression in Python

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.พ. 2025
  • Just getting started with using Python for econometrics or data science?
    We walk through the process from importing the necessary Python packages, gathering example data from the Federal Reserve, to estimating a simple ordinary least squares regression to viewing the output table.
    Getting Started with Python:
    • A First Look at Using ...
    Federal Reserve Economic Database:
    fred.stlouisfe...

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

  • @Hotdog-ro8of
    @Hotdog-ro8of ปีที่แล้ว

    I just started using python and was struggling on this and this video cleared everything up!

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

    thank you for your works, we will be watching till you stop.

  • @user-hu7ov6fi9y
    @user-hu7ov6fi9y 3 ปีที่แล้ว +1

    Mike, Thanks a lot for sharing your knowledge with us. Your contribution to econometrics and data science is much appreciated. Keep going!

  • @empowercode
    @empowercode 4 ปีที่แล้ว +9

    Hey! I just found your channel and subscribed, love what you're doing! Particularly, I like how clear and detailed your explanations are as well as the depth of knowledge you have surrounding the topic! Since I run a tech education channel as well, I love to see fellow Content Creators sharing, educating, and inspiring a large global audience. I wish you the best of luck on your TH-cam Journey and can't wait to watch your next upload. Cheers, happy holidays, and keep up the great work :)

    • @mikejonaseconometrics1886
      @mikejonaseconometrics1886  4 ปีที่แล้ว +1

      Thank you very much for the kind words! I just checked out your channel, and really like your walk-through of scraping news articles - I'll recommend it to my students, for sure. Happy holidays to you, as well!

    • @empowercode
      @empowercode 4 ปีที่แล้ว

      @@mikejonaseconometrics1886 Wow, thank you so much! I really appreciate it :)

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

    Always a great video! Thank you so much!!!!

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

    Great as usual. Thank you a lot.

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

    thank you, this is extremely helpful.

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

    Great job waiting for more

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

    Great tutorial! Thanks alot!

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

    Thank you ever so much sir!

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

    It was great lecture for me, thanks!

  • @aditya-dixit
    @aditya-dixit 4 ปีที่แล้ว +2

    Amazing Video and great to know how python can be used for statistical analysis!

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

    Thank you, you are the best

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

    Thank you, Mike, for your effort! Would you please consider creating a playlist for Python programming as you did for R and STATA?

    • @mikejonaseconometrics1886
      @mikejonaseconometrics1886  4 ปีที่แล้ว +1

      You are very welcome, glad it was helpful. I am working on adding more Python videos, hopefully soon. Thank you!

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

    Great video! Once I create my regression model, how do I add inputs and predict the output?

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

    Do we need to restart the kernel after installing the pandas?

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

    How would I do this for bitcoin ?

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

    How would I describe the data set with an if statement? FOr example at 4:31 where Mike does ~~ fed_data1.describe() ~~ os there a way to include an if statement, such as for another data set with earnings schooling and male, describe if male =1?

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

    Great video. I am curious if you can import more than 5 years of data from FRED. I am working on a project that requires at least 15 years of data. Thanks.

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

    Very informative video. May I ask how to perform a Variance Inflation Factor in Python?

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

    I got stuck on the very first line :/
    I get a traceback error: pip install is a syntax error.

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

    Nice

  • @mumar92
    @mumar92 4 ปีที่แล้ว

    Is there a computational advantage of using Python over R or Stata?

    • @peteradam942
      @peteradam942 4 ปีที่แล้ว +1

      Python is more parsimonious than R

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

      This is a great question. For most things, they are all comparable. Python is better at dealing with large data sets, and at web scraping. R is best for data visualization, and is the standard language of data scientists. Stata is the most user-friendly, has the best documentation, now is easier to integrate with python, and is the most common among academic economists.