Function Repository Resource:

CurveFitReport

Source Notebook

Display information related to fitting of a set of data

Contributed by: Wolfram|Alpha Math Team

ResourceFunction["CurveFitReport"][data,x,type]

performs a numeric fit of the specified type to data with respect to the user-specified variable x and returns a report of the results.

Details and Options

ResourceFunction["CurveFitReport"] returns a Panel expression.
type can be "Linear", "Quadratic", "Cubic", "Quartic", "Quintic", "Logit", "Probit", "Exponential", "Log", "Power" or {"Polynomial",power} for a given integer power.

Examples

Basic Examples (3) 

Display information about a power fit on a given set of data:

In[1]:=
ResourceFunction[
 "CurveFitReport", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"][{{1, 2}, {3, 4}, {5, 6}}, x,  "Power"]
Out[1]=

Display information about a second-degree polynomial fit to a given set of data:

In[2]:=
ResourceFunction[
 "CurveFitReport", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"][{{1, 2}, {3, 6}, {5, 9}, {7, 11}}, x,  {"Polynomial", 2}]
Out[2]=

Display information about an exponential fit to a given set of data:

In[3]:=
ResourceFunction[
 "CurveFitReport", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"][{{1, 2}, {3, 6}, {5, 9}, {7, 11}}, x, "Exponential"]
Out[3]=

Properties and Relations (1) 

The information displayed by CurveFitReport can be accessed directly using the resource function CurveFitOverview:

In[4]:=
ResourceFunction[
  "CurveFitOverview"][{{1, 2}, {3, 6}, {5, 9}, {7, 11}}, x, "Exponential"]
Out[4]=

Possible Issues (1) 

CurveFitReport returns unevaluated if the specified data is not compatible with the given type:

In[5]:=
ResourceFunction[
 "CurveFitReport", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"][{{1, .2}, {3, .4}, {5, 5}}, x,  "Logit"]
Out[5]=

Publisher

Wolfram|Alpha Math Team

Version History

  • 2.0.0 – 23 March 2023
  • 1.0.0 – 10 April 2020

Related Resources

License Information