The following is a demonstration of the use of excell as a tool in statistics. We start by measuring the distance from each fret to the bridge of a guitar.
Fret number Distance to the bridge
The scatter plot using the fret numbers as the explanatory variable and,
the distancet to the bridge as the response variable looks like this.
The graph appears to be the graph of an exponential function. To test this hypothesis check the ratio
of consecutive distatnce measurement. The ratio in nearly constant so we can procede to find a predictor
equation for the data. This predictor is called a regression equation.
To begin take the natural log of response the variables.
Now look at the scatter plot of this transformed data. Click here.
This graph appear linear so we construct a least squares regression line. The equation for the LSLR
b is the slope of the LSLR. b = r (the correlation coefficient) times the ratio of the standard deviations of fret data and distance data. So to find the slope b, we need to compute r. To see the formula for r click here.
n = the number of data points, x sub i is each fret value, x bar is the mean of the frets, s sub x is the standard deviation of the fret values, y sub i is each value of the natural log of distance from each fret to the bridge, y bar is the mean of the natural log of the distances, and s sub y is the standard deviation of the natural logs of the distances.
r = -.9999
b = -.0575
a = 4.16
The predictor equation is ln y = 4.16 - .0575x for the LSLR. This is for the tranformed data. To get the predictor equation for the original data, use each side of the equation as an exponent and e as the base. Computation.
The overlayed graph are below.