Question: Fit a Curve to Data

Hi,

I have some data (points of results -> a list of x - data and a list of corresponding y - data) and I would like to fit a curve to this data.  curves does not fit very well to the data points.

Can anybody give me a method to fit a curve to the data?

Tanks!

The data are:

 

 

xdata:=[1.131744108, 1.142949495, 1.154154883, 1.165360270, 1.176565657, 1.187771044, 1.198976431, 1.210181819, 1.221387206, 1.232592593, 1.243797980, 1.255003368, 1.266208755, 1.277414142, 1.288619529, 1.299824916, 1.311030304, 1.322235691, 1.333441078, 1.344646465, 1.355851852, 1.367057240, 1.378262627, 1.389468014, 1.400673401, 1.411878788, 1.423084176, 1.434289563, 1.445494950, 1.456700337, 1.467905725, 1.479111112, 1.490316499, 1.501521886, 1.512727273, 1.523932661, 1.535138048, 1.546343435, 1.557548822, 1.568754209, 1.579959597, 1.591164984, 1.602370371, 1.613575758, 1.624781145, 1.635986533, 1.647191920, 1.658397307, 1.669602694, 1.680808082, 1.692013469, 1.703218856, 1.714424243, 1.725629630, 1.736835018, 1.748040405, 1.759245792, 1.770451179, 1.781656566, 1.792861954, 1.804067341, 1.815272728, 1.826478115, 1.837683502, 1.848888890, 1.860094277, 1.871299664, 1.882505051, 1.893710438, 1.904915826, 1.916121213, 1.927326600, 1.938531987, 1.949737375, 1.960942762, 1.972148149, 1.983353536, 1.994558923, 2.005764311, 2.016969698, 2.028175085, 2.039380472, 2.050585859, 2.061791247, 2.072996634, 2.084202021, 2.095407408, 2.106612795, 2.117818183, 2.129023570, 2.140228957, 2.151434344, 2.162639732, 2.173845119, 2.185050506, 2.196255893, 2.207461280, 2.218666668, 2.229872055, 2.241077442, 2.252282829, 2.263488216, 2.274693604, 2.285898991, 2.297104378, 2.308309765, 2.319515152, 2.330720540, 2.341925927, 2.353131314, 2.364336701, 2.375542089, 2.386747476, 2.397952863, 2.409158250, 2.420363637, 2.431569025, 2.442774412, 2.453979799, 2.465185186, 2.476390573, 2.487595961, 2.498801348, 2.510006735, 2.521212122, 2.532417509, 2.543622897, 2.554828284, 2.566033671, 2.577239058, 2.588444446, 2.599649833, 2.610855220, 2.622060607, 2.633265994, 2.644471382, 2.655676769, 2.666882156, 2.678087543, 2.689292930, 2.700498318, 2.711703705, 2.722909092, 2.734114479, 2.745319866, 2.756525254, 2.767730641, 2.778936028, 2.790141415, 2.801346802, 2.812552190, 2.823757577, 2.834962964, 2.846168351, 2.857373739, 2.868579126, 2.879784513, 2.890989900, 2.902195287, 2.913400675, 2.924606062, 2.935811449, 2.947016836, 2.958222223, 2.969427611, 2.980632998, 2.991838385, 3.003043772, 3.014249159, 3.025454547, 3.036659934, 3.047865321, 3.059070708, 3.070276096, 3.081481483, 3.092686870, 3.103892257, 3.115097644, 3.126303032, 3.137508419, 3.148713806, 3.159919193, 3.171124580, 3.182329968, 3.193535355, 3.204740742, 3.215946129, 3.227151516, 3.238356904, 3.249562291, 3.260767678, 3.271973065, 3.283178453, 3.294383840, 3.305589227, 3.316794614, 3.328000001, 3.339205389, 3.350410776, 3.361616163, 3.372821550, 3.384026937, 3.395232325, 3.406437712, 3.417643099, 3.428848486, 3.440053873, 3.451259261, 3.462464648, 3.473670035, 3.484875422, 3.496080810, 3.507286197, 3.518491584, 3.529696971, 3.540902358, 3.552107746, 3.563313133, 3.574518520, 3.585723907, 3.596929294, 3.608134682, 3.619340069, 3.630545456, 3.641750843, 3.652956230, 3.664161618, 3.675367005, 3.686572392, 3.697777779, 3.708983167, 3.720188554, 3.731393941, 3.742599328, 3.753804715, 3.765010103, 3.776215490, 3.787420877, 3.798626264, 3.809831651, 3.821037039, 3.832242426, 3.843447813, 3.854653200, 3.865858587, 3.877063975, 3.888269362, 3.899474749, 3.910680136, 3.921885524, 3.933090911, 3.944296298, 3.955501685, 3.966707072, 3.977912460, 3.989117847, 4.000323234, 4.011528621, 4.022734008, 4.033939396, 4.045144783, 4.056350170, 4.067555557, 4.078760944, 4.089966332, 4.101171719, 4.112377106, 4.123582493, 4.134787880, 4.145993268, 4.157198655, 4.168404042, 4.179609429, 4.190814817, 4.202020204, 4.213225591, 4.224430978, 4.235636365, 4.246841753, 4.258047140, 4.269252527, 4.280457914, 4.291663301, 4.302868689, 4.314074076, 4.325279463, 4.336484850, 4.347690237, 4.358895625, 4.370101012, 4.381306399, 4.392511786, 4.403717174, 4.414922561, 4.426127948, 4.437333335, 4.448538722, 4.459744110, 4.470949497, 4.482154884, 4.493360271, 4.504565658, 4.515771046, 4.526976433, 4.538181820, 4.549387207, 4.560592594, 4.571797982, 4.583003369, 4.594208756, 4.605414143, 4.616619531, 4.627824918, 4.639030305, 4.650235692, 4.661441079, 4.672646467, 4.683851854, 4.695057241, 4.706262628, 4.717468015, 4.728673403, 4.739878790, 4.751084177, 4.762289564, 4.773494951, 4.784700339, 4.795905726, 4.807111113, 4.818316500, 4.829521888, 4.840727275, 4.851932662, 4.863138049, 4.874343436, 4.885548824, 4.896754211, 4.907959598, 4.919164985, 4.930370372, 4.941575760, 4.952781147, 4.963986534, 4.975191921, 4.986397308, 4.997602696, 5.008808083, 5.020013470, 5.031218857, 5.042424244, 5.053629632, 5.064835019, 5.076040406, 5.087245793, 5.098451181, 5.109656568, 5.120861955, 5.132067342, 5.143272729, 5.154478117, 5.165683504, 5.176888891, 5.188094278, 5.199299665, 5.210505053, 5.221710440, 5.232915827, 5.244121214, 5.255326601, 5.266531989, 5.277737376, 5.288942763, 5.300148150, 5.311353538, 5.322558925, 5.333764312, 5.344969699, 5.356175086, 5.367380474, 5.378585861, 5.389791248, 5.400996635, 5.412202022, 5.423407410, 5.434612797, 5.445818184, 5.457023571, 5.468228958, 5.479434346, 5.490639733, 5.501845120, 5.513050507, 5.524255895, 5.535461282, 5.546666669, 5.557872056, 5.569077443, 5.580282831, 5.591488218, 5.602693605, 5.613898992, 5.625104379, 5.636309767, 5.647515154, 5.658720541, 5.669925928, 5.681131315, 5.692336703, 5.703542090, 5.714747477, 5.725952864, 5.737158252, 5.748363639, 5.759569026, 5.770774413, 5.781979800, 5.793185188, 5.804390575, 5.815595962, 5.826801349, 5.838006736, 5.849212124, 5.860417511, 5.871622898, 5.882828285, 5.894033672, 5.905239060, 5.916444447, 5.927649834, 5.938855221, 5.950060609, 5.961265996, 5.972471383, 5.983676770, 5.994882157, 6.006087545, 6.017292932, 6.028498319, 6.039703706, 6.050909093, 6.062114481, 6.073319868, 6.084525255, 6.095730642, 6.106936029, 6.118141417, 6.129346804, 6.140552191, 6.151757578, 6.162962966, 6.174168353, 6.185373740, 6.196579127, 6.207784514, 6.218989902, 6.230195289, 6.241400676, 6.252606063, 6.263811450, 6.275016838, 6.286222225, 6.297427612, 6.308632999, 6.319838386, 6.331043774, 6.342249161, 6.353454548, 6.364659935, 6.375865322, 6.387070710, 6.398276097, 6.409481484, 6.420686871, 6.431892259, 6.443097646, 6.454303033, 6.465508420, 6.476713807, 6.487919195, 6.499124582, 6.510329969, 6.521535356, 6.532740743, 6.543946131, 6.555151518, 6.566356905, 6.577562292, 6.588767679, 6.599973067, 6.611178454, 6.622383841, 6.633589228, 6.644794616, 6.656000003, 6.667205390, 6.678410777, 6.689616164, 6.700821552, 6.712026939, 6.723232326, 6.734437713, 6.745643100, 6.756848488, 6.768053875, 6.779259262, 6.790464649, 6.801670036, 6.812875424, 6.824080811, 6.835286198, 6.846491585, 6.857696973, 6.868902360, 6.880107747, 6.891313134, 6.902518521, 6.913723909, 6.924929296, 6.936134683, 6.947340070, 6.958545457, 6.969750845, 6.980956232, 6.992161619, 7.003367006, 7.014572393, 7.025777781, 7.036983168, 7.048188555, 7.059393942, 7.070599330, 7.081804717, 7.093010104, 7.104215491, 7.115420878, 7.126626266, 7.137831653, 7.149037040, 7.160242427, 7.171447814, 7.182653202, 7.193858589, 7.205063976, 7.216269363, 7.227474750, 7.238680138, 7.249885525, 7.261090912, 7.272296299, 7.283501686, 7.294707074, 7.305912461, 7.317117848, 7.328323235, 7.339528623, 7.350734010, 7.361939397, 7.373144784, 7.384350171, 7.395555559, 7.406760946, 7.417966333, 7.429171720, 7.440377107, 7.451582495, 7.462787882, 7.473993269, 7.485198656, 7.496404043, 7.507609431, 7.518814818, 7.530020205, 7.541225592, 7.552430980, 7.563636367, 7.574841754, 7.586047141, 7.597252528, 7.608457916, 7.619663303, 7.630868690, 7.642074077, 7.653279464, 7.664484852, 7.675690239, 7.686895626, 7.698101013, 7.709306400, 7.720511788, 7.731717175, 7.742922562, 7.754127949, 7.765333337, 7.776538724, 7.787744111, 7.798949498, 7.810154885, 7.821360273, 7.832565660, 7.843771047, 7.854976434, 7.866181821, 7.877387209, 7.888592596, 7.899797983, 7.911003370, 7.922208757, 7.933414145, 7.944619532, 7.955824919, 7.967030306, 7.978235694, 7.989441081, 8.000646468, 8.011851855, 8.023057242, 8.034262630, 8.045468017, 8.056673404, 8.067878791, 8.079084178, 8.090289566, 8.101494953, 8.112700340, 8.123905727, 8.135111114, 8.146316502, 8.157521889, 8.168727276, 8.179932663, 8.191138051, 8.202343438, 8.213548825, 8.224754212, 8.235959599, 8.247164987, 8.258370374, 8.269575761, 8.280781148, 8.291986535, 8.303191923, 8.314397310, 8.325602697, 8.336808084, 8.348013471, 8.359218859, 8.370424246, 8.381629633, 8.392835020, 8.404040408, 8.415245795, 8.426451182, 8.437656569, 8.448861956, 8.460067344, 8.471272731, 8.482478118, 8.493683505, 8.504888892, 8.516094280, 8.527299667, 8.538505054, 8.549710441, 8.560915828, 8.572121216, 8.583326603, 8.594531990, 8.605737377, 8.616942764, 8.628148152, 8.639353539, 8.650558926, 8.661764313, 8.672969701, 8.684175088, 8.695380475, 8.706585862, 8.717791249, 8.728996637, 8.740202024, 8.751407411, 8.762612798, 8.773818185, 8.785023573, 8.796228960, 8.807434347, 8.818639734, 8.829845121, 8.841050509, 8.852255896, 8.863461283, 8.874666670, 8.885872058, 8.897077445, 8.908282832, 8.919488219, 8.930693606, 8.941898994, 8.953104381, 8.964309768]

ydata:=[24.39436387, 21.73276252, 20.33797056, 19.16856344, 18.45078452, 17.73146015, 17.15080253, 16.71683581, 16.37243285, 15.93774100, 15.57621164, 15.26412111, 14.98437362, 14.77015050, 14.57773616, 14.40088412, 14.15787900, 13.92049691, 13.73076570, 13.55751470, 13.39640822, 13.24451795, 13.09979357, 12.96837844, 12.86250033, 12.76294094, 12.66862566, 12.57871361, 12.49253735, 12.35921629, 12.22919691, 12.10405528, 11.98658412, 11.89573253, 11.80959312, 11.72744791, 11.64872021, 11.57294124, 11.49972586, 11.42875458, 11.35976014, 11.29251704, 11.22683370, 11.16254634, 11.09951374, 11.03761386, 10.98245340, 10.93779143, 10.89451622, 10.85250737, 10.81165842, 10.77187480, 10.73307231, 10.69334527, 10.63437652, 10.57700009, 10.52105356, 10.46639665, 10.41290769, 10.36048041, 10.30902183, 10.25844991, 10.20869212, 10.15968423, 10.11136881, 10.06369456, 10.01661555, 9.97851621, 9.94583837, 9.91392828, 9.88273418, 9.85220910, 9.82231024, 9.79299853, 9.76423836, 9.73599700, 9.70824446, 9.68095315, 9.65409764, 9.62765444, 9.60160187, 9.57591983, 9.55058964, 9.52559405, 9.50091690, 9.47654319, 9.45245894, 9.42865108, 9.40510733, 9.38181628, 9.35876719, 9.33594998, 9.31335521, 9.29097393, 9.26879779, 9.24681888, 9.22502974, 9.20342333, 9.18199305, 9.16073254, 9.13963592, 9.11869748, 9.09791188, 9.07727406, 9.05677922, 9.03642271, 9.01620022, 8.997383432, 8.984017193, 8.969027205, 8.949686847, 8.930642656, 8.911881765, 8.893392127, 8.875162441, 8.857182053, 8.839441001, 8.821929843, 8.804639708, 8.787562255, 8.770689533, 8.754014102, 8.737528904, 8.721227213, 8.705102724, 8.689149408, 8.673361576, 8.657733772, 8.642260913, 8.626938050, 8.611760537, 8.596723900, 8.581823983, 8.567056678, 8.552418176, 8.537904741, 8.523512921, 8.509239331, 8.495080756, 8.481034108, 8.467096446, 8.453264953, 8.439536941, 8.425909748, 8.412380938, 8.398948089, 8.385608921, 8.372361217, 8.359202843, 8.346131742, 8.333145978, 8.320243636, 8.307422894, 8.294681966, 8.282019212, 8.269432955, 8.256921581, 8.244483645, 8.232117632, 8.219822118, 8.207595739, 8.195437142, 8.183345089, 8.171318299, 8.159355566, 8.147455743, 8.135617708, 8.123840338, 8.112122590, 8.100463439, 8.088861894, 8.077316982, 8.065827756, 8.054393334, 8.043012777, 8.031685307, 8.020410012, 8.009186145, 7.998766029, 7.991874604, 7.985040490, 7.978262537, 7.971539701, 7.964870884, 7.958255057, 7.951691221, 7.945178417, 7.938715673, 7.932302067, 7.925936726, 7.919618758, 7.913347332, 7.907121610, 7.900940801, 7.894804105, 7.888710781, 7.882660083, 7.876651283, 7.870683682, 7.864756590, 7.858869338, 7.853021282, 7.847211787, 7.841440235, 7.835706017, 7.830008534, 7.824347231, 7.818721536, 7.813130898, 7.807574782, 7.802052674, 7.796564070, 7.791108456, 7.785685358, 7.780294292, 7.774934792, 7.769606394, 7.764308686, 7.759041214, 7.753803542, 7.748595278, 7.743415994, 7.738265314, 7.733142848, 7.728048195, 7.722980985, 7.717940885, 7.712927511, 7.707940510, 7.702979554, 7.698044298, 7.693134424, 7.688249604, 7.683389529, 7.678553869, 7.673742354, 7.668954667, 7.664190522, 7.659449621, 7.654731717, 7.650036502, 7.645363717, 7.640713105, 7.636084405, 7.631477376, 7.626891744, 7.622327284, 7.617783735, 7.613260873, 7.608758488, 7.604276311, 7.599814154, 7.595371778, 7.590948991, 7.586545562, 7.582161279, 7.577795937, 7.573449366, 7.569121362, 7.564811687, 7.560520210, 7.556246694, 7.551990995, 7.547752906, 7.543532265, 7.539328901, 7.535142628, 7.530973286, 7.526820702, 7.522684710, 7.518565162, 7.514461886, 7.510374759, 7.506303578, 7.502248221, 7.498208538, 7.494184390, 7.490175614, 7.486182074, 7.482203662, 7.478240188, 7.474291557, 7.470357638, 7.466438263, 7.462533316, 7.458642702, 7.454766278, 7.450903888, 7.447055465, 7.443220844, 7.438345149, 7.433385305, 7.428446314, 7.423528008, 7.418630162, 7.413752626, 7.408895182, 7.404057653, 7.399239875, 7.394441647, 7.389662804, 7.384903175, 7.380162590, 7.375440874, 7.370737863, 7.366053400, 7.361387348, 7.356739486, 7.352109721, 7.347497879, 7.342903813, 7.338327355, 7.333768392, 7.329226748, 7.324702298, 7.320194902, 7.315704420, 7.311230714, 7.306773668, 7.302333096, 7.297908927, 7.293501018, 7.289109232, 7.284733438, 7.280373523, 7.276029378, 7.271700863, 7.267387862, 7.263090244, 7.258807936, 7.254540808, 7.250288726, 7.246051576, 7.241829298, 7.237621746, 7.233428805, 7.229250373, 7.225086385, 7.220936685, 7.216801211, 7.212679844, 7.208572486, 7.204479040, 7.200399431, 7.196333531, 7.192281270, 7.188242533, 7.184217246, 7.180205313, 7.176206620, 7.172221128, 7.168248732, 7.164289308, 7.160342810, 7.156409164, 7.152488238, 7.148579963, 7.144684290, 7.140801116, 7.136930361, 7.133071961, 7.129225792, 7.125391838, 7.121569986, 7.117760161, 7.113962295, 7.110176326, 7.106402157, 7.102639732, 7.098888975, 7.095149792, 7.091422168, 7.087705984, 7.084001183, 7.080307702, 7.076625472, 7.072954439, 7.069294523, 7.065645650, 7.062007782, 7.058380841, 7.054764753, 7.051159447, 7.047564919, 7.043981032, 7.040407756, 7.036845053, 7.033292860, 7.029751067, 7.026219676, 7.022698585, 7.019187777, 7.015687162, 7.012196685, 7.008716332, 7.005245981, 7.001785622, 6.999076322, 6.997169206, 6.995269934, 6.993378464, 6.991494715, 6.989618639, 6.987750192, 6.985889294, 6.984035914, 6.982189964, 6.980351412, 6.978520195, 6.976696254, 6.974879547, 6.973070017, 6.971267613, 6.969472280, 6.967683970, 6.965902633, 6.964128206, 6.962360656, 6.960599923, 6.958845972, 6.957098738, 6.955358192, 6.953624268, 6.951896935, 6.950176140, 6.948461845, 6.946753982, 6.945052532, 6.943357454, 6.941668680, 6.939986182, 6.938309922, 6.936639846, 6.934975913, 6.933318097, 6.931666329, 6.930020607, 6.928380848, 6.926747047, 6.925119153, 6.923497110, 6.921880910, 6.920270497, 6.918665840, 6.917066881, 6.915473628, 6.913885988, 6.912303964, 6.910727515, 6.909156590, 6.907591173, 6.906031217, 6.904476682, 6.902927541, 6.901383775, 6.899845331, 6.898312167, 6.896784269, 6.895261604, 6.893744143, 6.892231838, 6.890724663, 6.889222586, 6.887725592, 6.886233634, 6.884746676, 6.883264692, 6.881787671, 6.880315558, 6.878848328, 6.877385965, 6.875928439, 6.874475709, 6.873027756, 6.871584545, 6.870146040, 6.868712243, 6.867283102, 6.865858604, 6.864438708, 6.863023394, 6.861612632, 6.860206404, 6.858804668, 6.857407423, 6.856014621, 6.854626249, 6.853242280, 6.851862692, 6.850487448, 6.849116532, 6.847749930, 6.846387589, 6.845029510, 6.843675668, 6.842326038, 6.840980575, 6.839639292, 6.838302143, 6.836969096, 6.835640153, 6.834315284, 6.832994464, 6.831677673, 6.830364892, 6.829056093, 6.827751242, 6.826450346, 6.825153370, 6.823860294, 6.822571096, 6.821285747, 6.820004243, 6.818726562, 6.817452671, 6.816182557, 6.814916206, 6.813653590, 6.812394696, 6.811139505, 6.809887986, 6.808640136, 6.807395927, 6.806155340, 6.804918348, 6.803684966, 6.802455131, 6.801228863, 6.800006123, 6.798786894, 6.797571177, 6.796358914, 6.795150136, 6.793944791, 6.792742878, 6.791544372, 6.790349258, 6.789157527, 6.787969150, 6.786784130, 6.785602425, 6.784424029, 6.783248938, 6.782077130, 6.780908572, 6.779743265, 6.778581188, 6.777422335, 6.776266667, 6.775114193, 6.773964883, 6.772818740, 6.771675731, 6.770535843, 6.769399067, 6.768265379, 6.767134785, 6.766007252, 6.764882770, 6.763761322, 6.762642890, 6.761527480, 6.760415065, 6.759305615, 6.758199151, 6.757095629, 6.755995056, 6.754897397, 6.753802664, 6.752710820, 6.751621870, 6.750535784, 6.749452575, 6.748372196, 6.747294663, 6.746219949, 6.745148030, 6.744078909, 6.743012589, 6.741949023, 6.740888230, 6.739830184, 6.738774855, 6.737722260, 6.736672369, 6.735625185, 6.734580678, 6.733538854, 6.732499689, 6.731463161, 6.730429295, 6.729398049, 6.728369408, 6.727343388, 6.726319950, 6.725299102, 6.724280824, 6.723265102, 6.722251939, 6.721241296, 6.720233204, 6.719227611, 6.718224531, 6.717223951, 6.716225848, 6.715230213, 6.714237050, 6.713246345, 6.712258080, 6.711272248, 6.710288841, 6.709307842, 6.708329249, 6.707353035, 6.706379216, 6.705407772, 6.704438694, 6.703471968, 6.702507576, 6.701545521, 6.700585792, 6.699628378, 6.698673260, 6.697720449, 6.696769926, 6.695821671, 6.694875690, 6.693931970, 6.692990500, 6.692051269, 6.691114263, 6.690179485, 6.689246933, 6.688316570, 6.687388393, 6.686462418, 6.685538633, 6.684616998, 6.683697532, 6.682780218, 6.681865057, 6.680952019, 6.680041110, 6.679132334, 6.678225652, 6.677321080, 6.676418608, 6.675518212, 6.674619910, 6.673723658, 6.672829480, 6.671937359, 6.671047280, 6.670159239, 6.669273224, 6.668389240, 6.667507263, 6.666627305, 6.665749336, 6.664873354, 6.663999379, 6.663127367, 6.662257326, 6.661389242, 6.660523104, 6.659658934, 6.658796690, 6.657936392, 6.657078007, 6.656221552, 6.655367001, 6.654514344, 6.653663603, 6.652814744, 6.651967764, 6.651122666, 6.650279422, 6.649438060, 6.648598544, 6.647760878, 6.646925049, 6.646091060, 6.645258905, 6.644428563, 6.643600033, 6.642773325, 6.641948404, 6.641125281, 6.640303946, 6.639484407, 6.638666635, 6.637850627, 6.637036378, 6.636223901, 6.635413165, 6.634604177, 6.633796922, 6.632991413, 6.632187618, 6.631385539]

Please Wait...