Message Boards Message Boards

0
|
5969 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Polynomial fit to data with multiple inputs (3) ?

Posted 5 years ago

I am new to mathematica. I have 3 inputs and 1 output.I want to find a relation between input and output values. I want to find the 'N' th degree of polynomial which would approimately fit my dataset. I also tried Neural Networks but want to do Polynomial Curve Fitting or Regression.

I want to predict what degree of polynomial would fit to my data as the relation is Non-Linear(i.e. F(A)+F(B)+F(C) =Output) The values are actual weights in KG.

Kindly suggest me a method to find the 'n' degree polynomial which would approximate my data and build a relation between input and output using Mathematica 12.

{{"A", "B", "C", "Output"}, {57.0088, 76.2105, 46.4823, 
  46.8503}, {56.2162, 75.5021, 44.8855, 47.1508}, {57.189, 74.434, 
  44.8579, 48.4662}, {57.551, 75.3068, 46.6976, 45.9044}, {55.9446, 
  75.4585, 47.2454, 46.3321}, {58.7154, 76.9871, 47.2429, 
  50.8479}, {59.7091, 79.1212, 48.5647, 50.7675}, {59.5948, 78.0647, 
  47.5596, 48.7605}, {59.9859, 77.9062, 50.9319, 48.0986}, {60.5902, 
  78.1553, 54.5241, 51.1845}, {59.6509, 77.6456, 53.0787, 
  52.9824}, {62.7154, 74.9587, 53.5889, 52.242}, {62.8849, 81.0653, 
  55.2839, 50.2263}, {63.2489, 78.4848, 54.355, 51.0166}, {64.6259, 
  78.9331, 54.9457, 53.4716}, {65.4176, 79.1202, 55.1678, 
  53.1001}, {64.962, 77.6563, 54.3707, 53.6528}, {63.8401, 79.6976, 
  51.0827, 54.067}, {64.4447, 82.2205, 52.9363, 55.5474}, {64.7958, 
  82.149, 55.1345, 57.0765}}

data

POSTED BY: AxAy K
2 Replies

It would help if you post the code you have tried, in copy-and-pastable form. From the description, it is not really clear what is wanted.

POSTED BY: Daniel Lichtblau

I would start with find FindFit or NonlinearModel. Those are roughly the same in terms of algorithm, coming to the same results. But NonlinearModel makes an object that carries measure of goodness of fit, the function, the parameters, variance, co-variance numbers, and other such numbers. I've been fairly happy with those functions. Then you can change the degree of the polynomial as you see fit and see how changing the polynomial degree changes the goodness of fit values.

POSTED BY: Isaac Sarver
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract