国外python题很简单 线性回归模型

要英语好一点 要求我发你 十几分钟就能做好

Create a Linear Regression model in Python

  1. Using the data below for bill and tips
  2. Use the 2 stubbed out python files as a starting point
  3. Manually build out a Linear Regression model in Excel (2 points) (这个两分的我自己做掉)
  4. Show calculation for EACH step in the excel
  5. Basically you are manually creating a model that calculates every step individually
  6. Use the Python starting scripts provided below (3 points)
  7. hw9.py (this is specific to what we are using it for - bills and tips)
  8. This is complete, except you need to change
  9. the value for line 8 and
  10. the name of your module
  11. marc_module.py (this is generic and does not mention bills or tips because we can using it for ANYTHING)
  12. Rename this file to match your name(Yixuan) or ID(yh3791)
  13. Create functions for each of the excel calculations and place between line 12 to 15
  14. Hint: You will need other global variables outside of the functions to help with the other steps (place these variables after line 5)
  15. Call each function from the above step in logical order, in calculate()
  16. Change predict to return a prediction for what ever value passed in
  17. DELIVERABLE
  18. 2 python files
  19. screenshot of the execution of hw9.py
    DATASET
    X​Y
    bill​tip
  20. 38​10.35
  21. 56​35.19
  22. 48​22.77
  23. 16​16.56
  24. 93​28.98
  25. 57​10.35

要求发来吧,我可以做。