PHYS 220 — Lab #6 [Solution]

In this lab you will again work as individuals, but discussions are OK. The assignment is due at the beginning of lecture on Monday, 30 Mar. In this lab you'll explore the properties of curve-fitting algorithms. You'll need to submit your codes, plots and answers to the questions, below.


  1. For this problem, you'll need the data set lab6_1.mat. These represent velocity (m/s) data from an acoustic ranging device as a function of time (s). Use the normal equations method to determine the best fit line for the model equation v = vo + at.

  2. For this problem, you'll need the data set lab6_2.mat. These data represent the signal voltage (V) across a circuit element as a function of time (s). Use the normal equations method to determine the best fit curve for the model equation s = Asin(t) + Bsin(2t) + Csin(3t).

  3. See plots below and code for details.

  4. For this problem, you'll need the data set lab6_3.mat and my code expFit.m. In a lab you have a sample of 116Xe gas. You have a device to determine the amount of that particular isotope present and let it run for a few seconds prior to t = 0 (all t data are in s; N are in # of 116Xe atoms). 116Xe gas naturally decays and you're trying to determine the half-life.

  5. See plots below and code for details. Note that in the bottom panel we assume that the technician did set up the apparatus correctly (i.e., K = 0). Under this assumption, we find a very similar looking fit, but a much improved value for λ ≈ 56.1 s (only ∼0.2% large). If we delve into the statistics and look at the coefficient of determination (or "goodness" of fit), we find that it is R² &asymp 0.998 for both cases! This is an extremely good fit for both assumptions. It is difficult here to determine whether or not the technician is competent or not. [In this case the data were generated (see details in the code) with K = 4×1021, so a bias was in the original data. Still the assumption of whether or not it was there is essentially lost in the noise – I used the proper value for λ when generating the data.]