Skip to main content

Twelve Ways to Fit a Straight Line

  • Chapter
  • First Online:
Bayesian Compendium
  • 1343 Accesses

Abstract

Fitting a straight line through data can be done in many ways that may seem different at first, but after closer inspection prove to be based on the same mathematics. In this chapter, we shall fit a line to data in twelve different ways and compare the resulting parameter estimates. So our goal is to estimate the intercept and the slope of the line.

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 69.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 89.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 119.99
Price excludes VAT (USA)
  • Durable hardcover 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

Author information

Authors and Affiliations

Authors

Exercises

Exercises

1. Prior uncertainty. Reduce the prior variances, which we specified as being \(10^4\) in Eq. (8.6), to more realistic values such as \(10^2\). Does that increase or decrease the posterior estimates for \(\beta \)? Why?

2. Kalman Filtering (KF) without intercept uncertainty. In our application of KF, we specified a very large prior uncertainty for \(\beta \). Repeat the KF exactly as before, but with \(\Sigma _{\beta }[1,1]\) set to zero. How does that change the posterior distribution for \(\beta \)? What kind of linear regression have you just done? Why is the posterior uncertainty for the slope-parameter lower than before?

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

van Oijen, M. (2020). Twelve Ways to Fit a Straight Line. In: Bayesian Compendium . Springer, Cham. https://doi.org/10.1007/978-3-030-55897-0_8

Download citation

Publish with us

Policies and ethics