Equation/mathematical model to a fitted line

  • Context: Undergrad 
  • Thread starter Thread starter microbiek
  • Start date Start date
  • Tags Tags
    Line Model
Click For Summary

Discussion Overview

The discussion revolves around how to derive mathematical models for fitted lines based on data, particularly focusing on various types of curves such as linear, sinusoidal, and exponential. Participants explore methods for fitting these curves and the implications of different mathematical approaches.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant seeks guidance on how to create equations for fitted lines from data, mentioning the need for a model that can represent different types of curves.
  • Another participant suggests that the process may involve basic algebra or precalculus techniques, recommending textbooks for further study.
  • A question is raised about whether a model can accommodate data that transitions from linear to exponential trends.
  • Concerns are expressed about oversimplifying the data trends with basic fitting techniques, especially for complex curves.
  • Non-linear regression is proposed as a method to fit data to a specific curve form, with a brief explanation of how it works involving minimizing residuals.
  • Participants discuss the use of software like MATLAB and R for performing non-linear regression, noting the importance of selecting an appropriate guess function for fitting.
  • There is acknowledgment that the mathematics involved in fitting curves can be complex and may be better suited for computational tools rather than manual calculations.

Areas of Agreement / Disagreement

Participants express a range of views on the best methods for fitting curves to data, with some advocating for non-linear regression while others highlight the challenges and complexities involved. No consensus is reached on a single approach or method.

Contextual Notes

Participants mention limitations in their understanding of statistical methods and the potential difficulty of fitting complex curves. There is also a recognition that the choice of software and guess functions can significantly impact the fitting process.

Who May Find This Useful

This discussion may be useful for individuals interested in data analysis, particularly those looking to model relationships in data using mathematical equations and regression techniques.

microbiek
Messages
12
Reaction score
0
Hi I hope someone can either help me directly and give me an overview of what needs to be done and also direct me to a textbook or some source which will allow me to learn this in depth.

Basically If I have data and I graph it, I fit a line to it (it can be curved) how then do I determine an equation to represent that line and allow me to extrapolate.

For example if the line is sinusoidal or straight and then beginning to curve etc how can I make a mathematical model to represent these different types of curves.

Thanks very much,

R
 
Mathematics news on Phys.org
Sounds like precalculus, or maybe even algebra two. You can take points from the line and decipher its equation using various formulas.. Hmm try rea's problem solvers "algebra and trig" it's a pretty good book. Or any precalculus/college algebra book.. We used Larson but I never liked the textbook layout much.
 
Last edited:
But would that be able to make a model for data which starts of linear and then turns exponential? if so great!
 
I think you'd do a best fit line for the data.
 
If you have the data, and you know the general form of the curve you want to fit, then you can use non-linear regression to find the exact form of the function which best fits your data.

I just had a quick look at the wikipedia page and it's fairly awful, and my knowledge of stats books isn't great / I don't know what level you're used to reading. Do you have a particular computer software package that you have the data in? eg. if it's in MATLAB, their documentation gives a very concise explanation of it.

In short... non-linear regression is the word you want to be searching for.

You give a guess function f(x,[parameters]) and the data [(x1,y1), ... (xn,yn)] and it will find the parameters that minimises the sum of the residuals squared, [y1 - f(x1)]^2 + ... + [yn - f(xn)]^2. Sometimes it takes a while and if the function is tricky then it might not work.
 
Yeah, whichever line fits the data best with the smallest SSE.

Ahah yeah definitely not algebra 2. Finite mathematics, discrete math or a calc book might help you. I cannot!

The bottom example is two different lines but I get the joist of what you're saying. Maybe post the question in the statistic fourm?
 
Last edited:
I was going to use 'R' to put the data in (exporting from excel). Ok that's helpful so non linear regression! I was just worried that it wasn't going to be a simple curve and so I knew I'd need some other way to make a formula. I still havnt finished collecting my data so I have plently of time to read up on it. I kind of want to know how to do it by hand so il peruse amazon.

I did engineering in college and so I am no mathematician!

Cheers!
 
R should be fine. If you buy a book, check it's got a chapter on nonlinear regression, but what you mainly need to do is pick the right guess function. The maths of fitting it to the data is pretty hard work, and best left to a computer!
 

Similar threads

  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
Replies
1
Views
2K
  • · Replies 21 ·
Replies
21
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 22 ·
Replies
22
Views
4K