|
Computation and Computers in
Geology
Matrix operations and fitting functions In the last set of exercises we saw that for a system of observations that were linearly related to their collection in space or time such as: y1 = m*x1 + b y2 = m*x2 + b … yn = m*xn + b. We could write a matrix equation: [Y] = [X][M] or, simply Y = XM and then solve for the model parameters (M; slope and intercept) with: [Xt*X]-1*Xt*Y =M. In the case above we have more observations than unknowns so the system is said to be over determined; this yields the least squares solution. It was also a good way to introduce Excel’s matrix capabilities. However, it turns out the Excel also has built in statistical functions including one for least squares, best-fit lines. Excel has a function, LINEST() which calculates the least squares, best-fit line and a set of associated statistics. LINEST() calculates the statistics for a line by using the "least squares" method to calculate a straight line that best fits your data, and returns an array that describes the line. Because this function returns an array of values, it must be entered as an array formula (CNTRL-SHIFT-ENTER). Excel has a couple pages of details on LINEST() in its’ help file – you should look at the help file when you are working with real data or if you have problems with my explanations. Example: To experiment with LINEST() we will first generate some noisy "data" from a linear equation with known model parameters:
=$A$1*A4+$A$2+RAND()*20-10 and copy it down to the end of the values in column A. This formula uses absolute references to incorporate the slope and intercept. The formula also uses Excel’s RAND function to add a little noise, distributed between –10 and 10, to the generated values.
Exercises: 1. Graph the noisy data from above (use markers without lines in a XY plot for the data) and plot the least squares line on the same graph. Read the help file in LINEST() and experiment with recovering the rest of the statistical information it will supply. 2. Adapt the equation so that RAND() is in a column of its own next to the x values. Now generate three parallel columns by(substituting RAND()*10-5; RAND()*20-10; RAND()*40-20 in the equation above. Compare the recovered model parameters (m, b) for each case. Make independent graphs of the three functions so that you can visually inspect the noise added to the data. The figure shows how scatter increases with the changes in RAND() - that's the start; you do the fits using LINEST() on your spreadsheet and show me what the extracted model parameters (slope and intercept) are for each case.
3. Background for problem #3: Radiometric dating relies on radioactive decay which is a statistical property. The probability that any radioactive parent atom will decay per second is called the decay rate. If the decay rate is l then in a time interval dt the probability that a given nucleus will decay isl dt. If there are P parent nuclei then Pl dt will decay in time dt. Thus the change in the number of parent nuclei in time dt is:
or, integrating both sides
which yields the common expressions for radioactive decay:
and
While the parent atoms decrease, the amount of daughter atom increases; D is the difference between P and P0:
Unfortunately there is usually some unknown initial amount of daughter isotope in the environment so that the measured amount of daughter isotope is the sum of that produced by decay with the initial concentration, D0:
We dismiss the need to know the initial amount of daughter product by using a third isotope to normalize the equations. For example 87Rubidium decays to 87Strontium; non-radiogenic 86Sr has about the same initial abundance as the 87Sr so we use that for normalization. Using 87Rb as P, and 87Sr for D in our last equation then dividing through by 86Sr gives:
This linear equation yields the isochron for the Rubidium-Strontium geochronologic system; l =0.14201E-10/year in this system. Thus we measure isotopic abundances, plot them in 87Sr/86Sr – 87Rb/86Sr space and the slope of the isochron yields the age of the rock; the intercept yields the initial ratio of 87Sr/86Sr. OK – Here’s problem #3: Plot the following data and use LINEST() to find the age of the rock and the initial 87Sr/86Sr ratio. You’ll have to use the slope and {exp(l t)-1} to solve for the age, t:
4. The Sm-Nd system
is much like the Rb-Sr system: However, for this system, the decay constant (l ) is 6.54*10-12. Given the following data determine the age and initial ratio:
Given its age, where do you
think this rock is from?
|
||||||||||||||||||||||||||||||
Layout and Design by Brian W. Collins, updates and current content by Aaron Deskins ©2005/2008