17 Measurements
Researchers often want to know whether the value of one variable depends on another. To determine this, they conduct measurements. During these measurements, one variable is changed (independent variable), while another variable is measured (dependent variable).
These measurements produce a series of data points that can be plotted on a chart. The shape of the chart often provides an initial indication of whether a relationship exists between the variables—and if so, what kind: linear, exponential, logarithmic, etc.
A relationship between variables is represented by a mathematical function and described by an equation. If the relationship is linear, the chart will display a straight line.
When plotting measurement results, there usually isn’t a single line that fits all data points perfectly. Using statistical methods, applications like Excel can determine the best-fitting line, known as a regression line. The method used to calculate this line is called the least-squares method. The underlying statistical techniques are beyond the scope of this chapter. If you’re interested in learning more, consult additional literature.
17.1 Linear Relationship
If there is a linear relationship between two variables
: the dependent variable : the independent variable : the slope (a constant) : the intercept (a constant)
Example 17.1
The graph of
With measurement results, you can use Excel to
- plot the data points.
- draw a trendline (best-fitting line).
- display the trendline equation.
- calculate the slope and intercept using Excel functions.
17.2 Linear Trendline
This section explains how to add a linear trendline.
At a timber factory, large numbers of similar items are produced, primarily differing in size and weight. To investigate whether production time depends on item weight, several measurements are taken. A linear relationship is assumed.
Task 17.1 File: Prodtime_Weight.xlsx
Open the file.
Select the range A2:B11, which contains the measurements.
Go to Insert tab> Recommended Charts (Charts group) > Scatter > OK.
Add a linear trendline.
You can add a trendline in the following ways:
- Click the data points in the chart, right-click, and choose Add Trendline.
- Select the chart area, click the button
next to it, and choose Trendline > Linear.
Select the trendline and Right-click > Format Trendline.
In the Format Trendline pane, check Display equation on chart.
Make the following adjustments (see the example in Figure 17.3):
- Add a chart title and axis titles.
- Adjust the axes scales.
- Remove decimal places from axis labels.
- Set the trendline color to solid red.
- Move the equation to a visible location.
From the trendline equation, you can determine the relationship between the variables:
Worksheet functions
You can use Excel’s statistical functions SLOPE
and INTERCEPT
to find the slope and y-intercept of the trendline.
In an empty cell, insert the
SLOPE
function with the following arguments:- Known_ys: B2:B11
- Known_xs: A2:A11
In another cell, use the
INTERCEPT
function with the same ranges.
The slope is 2.95503212 and the intercept is 41.99036403, which correspond to the trendline equation.
17.3 Exercises
Exercise 17.1 Height and Weight (meas001)
File: Meas001.xlsx
The height and weight of several schoolchildren are shown below.
Assume a linear relationship and determine the equation where weight is a function of height.
Weight = 1.65*Height - 153.3
Exercise 17.2 Study Time and Exam Grade (meas002)
File: Meas002.xlsx
The study time and exam scores of several students are shown below.
Assume a linear relationship and determine the equation where score is a function of study time.
Mark = 0.2038*Study time + 3.3637
Exercise 17.3 Shrinkage and Temperature (meas003)
File: Meas003.xlsx
A synthetic fiber manufacturer investigates whether fiber shrinkage relates to the washing temperature. Eight experiments are conducted at different temperatures. Shrinkage is expressed as a percentage of the original length.
Assume a linear relationship and determine the equation where shrinkage percentage is a function of temperature.
Predict the shrinkage at a temperature of 65oC.
Shrinkage = 0.0796*Temp - 3.546
At 65°C, the predicted shrinkage is 1.6%.
Exercise 17.4 Resistance and Temperature (meas004)
File: Meas004.xlsx
The resistance of a metal block is influenced by temperature. The figure below shows resistance at various temperatures.
Assume a linear relationship and determine the equation where resistance is a function of temperature.
Predict the resistance at a temperature of 400oC.
Resistance = 0.0786*Temp + 21.214
At 400oC, the predicted resistance is 52.6 Ohms.