Skip to main content

Linear Regression Models

  • Chapter
  • First Online:
An Introduction to Statistics with Python

Part of the book series: Statistics and Computing ((SCO))

Abstract

After an introduction to Pearson’s, Spearman’s, and Kendall’s correlation coefficients, this chapter describes how to implement and solve linear regression models in Python. The resulting model parameters are discussed, as well as the assumptions of the models and interpretations of the model results. Since bootstrapping can be helpful in the evaluation of some models, the final section in this chapter shows a Python implementation of a bootstrapping example.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    https://github.com/thomas-haslwanter/statsintro_python/tree/master/ISP/Code_Quantlets/11_Line arModels/bivariate.

  2. 2.

    This section has been taken from Wikipedia https://en.wikipedia.org/wiki/Linear_regression, last accessed 21 Oct 2015.

  3. 3.

    https://github.com/thomas-haslwanter/statsintro_python/tree/master/ISP/Code_Quantlets/11_Line arModels/fitLine.

  4. 4.

    https://github.com/thomas-haslwanter/statsintro_python/tree/master/ISP/Code_Quantlets/11_Line arModels/modelImplementations.

  5. 5.

    The following is based on the blog of Connor Johnson (http://connor-johnson.com/2014/02/18/linear-regression-with-python/), with permission from the author.

  6. 6.

    https://github.com/thomas-haslwanter/statsintro_python/tree/master/ISP/Code_Quantlets/11_Line arModels/anscombe.

  7. 7.

    This section and the next chapter are based on Wikipedia https://en.wikipedia.org/wiki/Linear_regression, last accessed 21 Oct 2015.

  8. 8.

    https://github.com/thomas-haslwanter/statsintro_python/tree/master/ISP/Code_Quantlets/11_Line arModels/simpleModels.

  9. 9.

    https://github.com/thomas-haslwanter/statsintro_python/tree/master/ISP/Code_Quantlets/11_Line arModels/bootstrapDemo.

References

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Springer International Publishing Switzerland

About this chapter

Cite this chapter

Haslwanter, T. (2016). Linear Regression Models. In: An Introduction to Statistics with Python. Statistics and Computing. Springer, Cham. https://doi.org/10.1007/978-3-319-28316-6_11

Download citation

Publish with us

Policies and ethics