Finding the Curve with Least Squares Approximation: 15 hrs

Click For Summary

Homework Help Overview

The problem involves fitting a curve to a set of data points using the least squares approximation method. The specific form of the curve is given as Y ≈ ae^{-bx}, and the original poster seeks to predict a value after 15 hours based on this model.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • The original poster attempts to rewrite the equation for easier manipulation and seeks guidance on performing a least squares approximation. Some participants question the correctness of the equation rewrite and suggest taking logarithms of both sides. Others inquire about resources or methodologies for understanding least squares approximation better.

Discussion Status

The discussion is ongoing, with participants providing feedback on the original poster's approach and suggesting that further reading may be beneficial. There is no explicit consensus on the method, but some guidance has been offered regarding the logarithmic transformation of the equation.

Contextual Notes

The original poster notes a lack of examples in their lecture materials, which may be contributing to their confusion about the least squares approximation process.

twoski
Messages
177
Reaction score
2

Homework Statement



Given this data:

hours / value
-----------
2 | 1.6
4 | 1.5
6 | 1.45
8 | 1.42
10 | 1.38
12 | 1.36

fit a curve of the form Y ≈ ae^{-bx}

What value can you predict after 15 hours?

The Attempt at a Solution



So i can rewrite the equation as Y ≈ log(a)-bx by taking the logarithm of the original equation.

How do i go about doing a least squares approximation of this? Our lecture notes have no examples that actually show how we are supposed to compute these coefficients.
 
Physics news on Phys.org
Your equation rewrite is wrong:

If y = a e^(-bx) then you must take logarithms of BOTH sides to obtain:

LN(y) = LN(a) - b*x

You can use least squares for linear equations to fit the data.
 
Are there any suggested readings for actually figuring out how to compute a least squares approximation? I've read a handful of different notes and I'm still stumped. It would be nice if there was just a nice step by step methodology to this.
 
twoski said:
Are there any suggested readings for actually figuring out how to compute a least squares approximation? I've read a handful of different notes and I'm still stumped. It would be nice if there was just a nice step by step methodology to this.

Google is your friend. There are hundreds of explanatory articles, ranging from very elementary to very advanced.
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
1
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K