Activity 5: Confidence Intervals

with the Observe Temperature Sensor

and Desmos Graphing Calculator

(— s, — C) Status: disconnected
What You Will Do: Getting Ready:
Video Thumbnail
Data Collection:

Analyzing Your Data:
  1. When you finish collecting data, click the Zoom to Data button.
  2. Make your sample list. Click on the line below the data table and type L = T[1...30] (three periods between 1 and 30). This makes a new list, L, that holds only the first 30 temperature readings. Desmos counts list items starting at 1.
  3. Sample size. On the next line, type n = length(L). Desmos should show n = 30. If it does not, you did not collect enough data; clear the graph and collect again.
  4. Sample mean. Type m = mean(L). This is \(\bar{x}\). Record it in your worksheet.
  5. Sample standard deviation. Type s = stdev(L). Record it in your worksheet. (Desmos's stdev is the sample standard deviation, which divides by n − 1.)
  6. Standard error. Type E = s/sqrt(n). Typing "sqrt" makes a square root symbol, and typing "/" makes a fraction. Use the arrow keys to move out of the fraction or square root.
  7. Margin of error. Type M = 1.96E. Desmos multiplies 1.96 by E.
  8. Lower and upper bounds. Type a = m - M and, on the next line, b = m + M. These are the ends of your 95% confidence interval. Complete the calculations in Part 2 of your worksheet by hand, then check that your answers match a and b.
  9. Draw the lines. In Desmos, an equation of the form y = (a number) draws a horizontal line. Type y = a and, on the next line, y = b. Two horizontal lines appear across your data. Optionally, type y = m to draw the sample mean between them.
  10. Style the lines. Click and hold the colored circle to the left of y = a to change its color and choose a dashed line. Do the same for y = b so both bounds match.
  11. Shade the confidence band. Type a <= y <= b. Typing "<=" makes the ≤ symbol. Desmos shades the region between the two lines. This shaded strip is your "confidence band."
  12. Mark where your sample ends. An equation of the form x = (a number) draws a vertical line. Type x = 14.75. Readings to the left of this line are your sample; readings to the right are new readings that were not used to build the interval.
  13. Hit or miss. Use the "+" zoom button and drag the graph so you can see the area just to the right of the vertical line clearly. Look at the next 10 readings (t = 15.0 s to 19.5 s). Count how many are inside the band and how many are outside, and record the counts in Part 3 of your worksheet.
  14. Check your count with Desmos. Type V = T[31...40] to make a list of the next 10 readings. Then type length(V[a < V < b]). Desmos keeps only the readings between a and b and counts them. Does it match your count?
  15. When finished, click Capture Graph to copy your graph and paste it into your Google Docs worksheet.
Going Further:
  1. Watch a disturbance live. If you want to keep your first data set, click Export Data now. Then click Clear Graph. Your Desmos expressions stay in the list and will update automatically from the new data.
  2. Let the sensor sit still, then click Start Collection. Do not touch the sensor for the first 15 seconds. When t reaches 15 s, the confidence band appears, built from the new first 30 readings.
  3. Now gently hold the tip of the sensor between your fingers. Watch where the new live points land compared with your confidence band. After about 30 more seconds, click Stop Collection, click Zoom to Data, and click Capture Graph. Paste the graph into your worksheet and use it to answer the Environmental Disturbance question.
  4. Explore sample size. Click Clear Graph, let the sensor settle, and collect at least 60 seconds of data without touching the sensor. Click on your first expression and change it to L = T[1...120]. Desmos should now show n = 120.
  5. Find the width of each interval by typing w = b - a. Record the width for n = 30 (change L back to T[1...30]) and for n = 120 in your worksheet. Compare the two widths with the standard error formula.
  6. Answer all of the questions in your Google Docs worksheet and follow your teacher's directions for turning in your worksheet.