1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Linear Modeling in Python

Exercise

Reasons for Modeling: Interpolation

One common use of modeling is interpolation to determine a value "inside" or "in between" the measured data points. In this exercise, you will make a prediction for the value of the dependent variable distances for a given independent variable times that falls "in between" two measurements from a road trip, where the distances are those traveled for the given elapse times.

context figure

Instructions

100 XP
  • Inspect the predefined data arrays, times and distances, and the preloaded plot.
  • Based on your rough inspection, estimate the distance_traveled away from the starting position as of elapse_time = 2.5 hours.
  • Assign your answer to distance_traveled.