Case Study: DataFitting

Submitted: 19 Feb 2008

Operations Research Topics: NonlinearProgramming

Application Areas: Data Analysis


Problem Description

Also known as The Least Squares Problem

When modelling data, scientists often want to fit an analytical model to their experimental data. In this case an experiment has provided some $(x, y)$-coordinates that have a growth curve shape, i.e., initially $y$ increases quickly with $x$, thens tails off to some maximum value. The scientists in this study have suggested three possible functions to model this behaviour:

  1. $y = f(x) \equiv \displaystyle\frac{1}{a x^2 + b x + c}$
  2. $y = f(x) \equiv a\log(x - b) + c$
  3. $y = f(x) \equiv a\sqrt{x - b} + c$

Given one of the possible functions $f(x)$ and the data points $(x_i, y_i), i=1, \ldots, n$ they want to find $a$, $b$ and $c$ to minimize the squared distance between the data points and the estimates, i.e.,

 \begin{equation*} \min_{a, b, c} \sum_{i=1}^n \left(y_i - f(x_i) \right)^2 \end{equation*}

The scientists have specified the number of data points and their coordinates in an AMPL data file regression.dat.

The scientists want to know which of the suggested functions provides the best fit to the data.

Return to top

Student Tasks

  1. Write AMPL files regression.mod and that use regression.dat to solve The Data Fitting Problem. Write a management summary of your solution. Be sure to indicate which of the functions fits the data best.

    What to hand in Your new AMPL files regression.mod and Your management summary.

Return to top

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatdat regression.dat r1 manage 3.7 K 2008-03-26 - 00:35 MichaelOSullivan  
Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r10 - 2018-11-23 - TWikiAdminUser
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback