I want to find a fit function for the following data. Can someone suggest the best-fit function for the following data? The upper part of the data set is difficult.
data = {{0.0270538, 0.92}, {0.0854374, 0.93}, {0.124226, 0.94}, {0.14931,
0.95}, {0.16527, 0.96}, {0.175575, 0.97}, {0.182765,
0.98}, {0.188613, 0.99}, {0.194274, 1.}, {0.200419,
1.01}, {0.207346, 1.02}, {0.215083, 1.03}, {0.223469,
1.04}, {0.232232, 1.05}, {0.241039, 1.06}, {0.249549,
1.07}, {0.257445, 1.08}, {0.264458, 1.09}, {0.270386,
1.1}, {0.275104, 1.11}, {0.278564, 1.12}, {0.280794,
1.13}, {0.281891, 1.14}, {0.282012, 1.15}, {0.281358,
1.16}, {0.280166, 1.17}, {0.27869, 1.18}, {0.27719,
1.19}, {0.275915, 1.2}, {0.275095, 1.21}, {0.274926,
1.22}, {0.275567, 1.23}, {0.277128, 1.24}, {0.279669,
1.25}, {0.283197, 1.26}, {0.287672, 1.27}, {0.293, 1.28}, {0.299049,
1.29}, {0.305648, 1.3}, {0.3126, 1.31}, {0.319689,
1.32}, {0.326692, 1.33}, {0.333388, 1.34}, {0.339569,
1.35}, {0.345052, 1.36}, {0.349685, 1.37}, {0.353355,
1.38}, {0.355998, 1.39}, {0.357599, 1.4}, {0.358195,
1.41}, {0.357876, 1.42}, {0.356783, 1.43}, {0.3551,
1.44}, {0.353051, 1.45}, {0.350887, 1.46}, {0.348878,
1.47}, {0.347298, 1.48}, {0.346412, 1.49}, {0.346466,
1.5}, {0.347666, 1.51}, {0.350175, 1.52}, {0.35409,
1.53}, {0.359445, 1.54}, {0.366196, 1.55}, {0.374222,
1.56}, {0.383326, 1.57}, {0.39324, 1.58}, {0.403638,
1.59}, {0.414145, 1.6}, {0.424364, 1.61}, {0.43389,
1.62}, {0.442339, 1.63}, {0.449372, 1.64}, {0.454715,
1.65}, {0.458178, 1.66}, {0.459661, 1.67}, {0.459142,
1.68}, {0.456655, 1.69}, {0.452226, 1.7}, {0.44578,
1.71}, {0.436996, 1.72}, {0.425101, 1.73}, {0.408591,
1.74}, {0.384856, 1.75}, {0.349698, 1.76}};
invData = Reverse[data, 2]
) so that you get a single-valued function. Secondly, you should explain what do you want to achieve by fitting a function. Do you want to interpolate data? Do you want to extrapolate data? Where does this data come from? Do you know of any (physical, economical ...) model that could describe the data? $\endgroup$data[[All,1]]
fromdata[[All,2]]
as you don't have a function with a single value for every value ofdata[[All,1]]
. Mathematica's regression functions expect the predictor variables (called independent variables in ancient times) to come first and the response variable (called the dependent variable in those ancient times) to be last. In any event, you should be explicit about which variable is which. $\endgroup$