Best Linear regression method help?
5 views (last 30 days)
Show older comments
I'm trying to model a plane with the data I received.
When calculating acceleration, it is calculated with many components. 
For now, I have each component is a function of speed,
. I found the equations for each component by using a linear polyfit on speed and the component. There is still some spread to the data as expected.
. I found the equations for each component by using a linear polyfit on speed and the component. There is still some spread to the data as expected.I have other variables like weight, fuel amount and others that might improve my equation, but I am unsure if it will.
I’m not sure the best method to find the best equation that will fit.
I was thinking using polyfitn from file exchange, have it compute and graph each component as a function of speed and another variable, calculate the
and see which one will work.
.
.But there is over 50 components and like 5 variables, making over 250 equations to look at, so I’m wondering if there’s a better way to do it?
Also I don’t’ have any tool boxes. I can use a trial of any toolbox, but would prefer not to. I am also mainly looking for linear equation over quadatic or higher order ones.
1 Comment
John D'Errico
on 22 Mar 2019
If each variable enters in linearly, then 5 variables produces a model with only 6 unknown coefficients. polyfitn will have no trouble in the estimation, nor will you.
However, if you will allow higher order terms in the multi-nomial model, and fully general multi-way interactions, then you get a LOT of terms. And many of those terms are not very important in the model. So people use techniques to reduce a model, tossing away terms that seem to have no significance. There are additional problems however. Is your data sufficient to estimate all of those terms? In fact, it is easy to pose data and a model where you simply cannot form estimates of some of those coefficients, regardless of how much you want to do so. This gets into large fields of study such as design of experiments.
The model you seem to be initially posing looks to be a simple linear one, with no interaction terms at all. But even there, I cannot know if your data is sufficient to estimate the parameters you want to use. You are also asking questions that seem like you might want to use some stepwise regression tools, yet you lack the stats toolbox.
I would recommend that you first do a little reading about regression analysis, but of course a text like Draper and Smith (of moderate size long ago when I learned the topic) has ballooned over many editions. So you might well want to speak to someone with expertise in statistics and modeling. (Sorry, but it sounds like you are trying to do something that will require expertise, yet you have absolutely no expertise in the matter, nor do you have any tools that would prove to be of value in this.)
Answers (0)
See Also
Categories
Find more on Linear and Nonlinear Regression in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!