Case Study: DataFitting

Submitted: 19 Feb 2008

Operations Research Topics: NonlinearProgramming

Application Areas: Data Analysis

Contents

Problem Description

THE DATA FITTING PROBLEM

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 ??? LINK data file =regression.dat=.

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

Return to top

Problem Formulation

The formulation...

Return to top

Computational Model

The computational model...

Return to top

Results

The results...

Return to top

Conclusions

In conclusion...

Return to top

Student Tasks

  1. Write AMPL files regression.mod and regression.run 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 regression.run. Your management summary.

Return to top

Topic attachments
I Attachment History Action Size Date Who Comment
Texttxt regression.dat.txt r1 manage 2.8 K 2008-02-19 - 11:49 LaurenJackson  
Edit | Attach | Watch | Print version | History: r10 | r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r3 - 2008-02-19 - LaurenJackson
 
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback