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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
- 2.
This section has been taken from Wikipedia https://en.wikipedia.org/wiki/Linear_regression, last accessed 21 Oct 2015.
- 3.
- 4.
- 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.
- 7.
This section and the next chapter are based on Wikipedia https://en.wikipedia.org/wiki/Linear_regression, last accessed 21 Oct 2015.
- 8.
- 9.
References
Duda, R. O., Hart, P. E., & Stork, D. G. (2004). Pattern classification (2nd ed.). Hoboken: Wiley-Interscience.
Kaplan, D. (2009). Statistical modeling: A fresh approach. St Paul: Macalester College.
Nuzzo, R. (2014). Scientific method: Statistical errors. Nature, 506(7487):150–152. doi:10.1038/506150a. http://www.nature.com/news/scientific-method-statistical-errors-1.14700
Wilkinson, G. N., & Rogers, C. E. (1973). Symbolic description of factorial models for analysis of variance. Applied Statistics, 22:, 392–399.
Author information
Authors and Affiliations
Rights 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
DOI: https://doi.org/10.1007/978-3-319-28316-6_11
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-28315-9
Online ISBN: 978-3-319-28316-6
eBook Packages: Mathematics and StatisticsMathematics and Statistics (R0)