Analysis 4: Difference between revisions

From Advanced Labs Wiki
Jump to navigation Jump to search
(Created page with 'In this tutorial you will work through an example linear fit. The example is the trajectory experiment described in the previous tutorials. In this model we had altitude data <ma…')
 
No edit summary
Line 6: Line 6:




Here is a file with the altitude data: media:Altitudes.txt;
Here is a file with the altitude data: [[media:Altitudes.txt]];




  Code (change suffix to .py) media:Linear_model.txt; Output media:Data_linear.png media:Data with model linear.png
  Code (change suffix to .py) media:Linear_model.txt; Output media:Data_linear.png media:Data with model linear.png

Revision as of 00:27, 11 February 2012

In this tutorial you will work through an example linear fit. The example is the trajectory experiment described in the previous tutorials. In this model we had altitude data <math>d_i</math> taken at times <math>t_i</math> that was modeled with a quadratic formula:

<math> d_i = a t_i^2 + b t_i + c </math>.

The following example is carried out using the python programming language. A great collection of python tools are downloadable for free (since you are students) here: [1]


Here is a file with the altitude data: media:Altitudes.txt;


Code (change suffix to .py) media:Linear_model.txt; Output media:Data_linear.png media:Data with model linear.png