| {{ 'ml-lesson-number-slides' | message : article.intro.bblockCount }} |
| {{ 'ml-lesson-number-exercises' | message : article.intro.exerciseCount }} |
| {{ 'ml-lesson-time-estimation' | message }} |
Here are a few recommended readings before getting started with this lesson.
Here are a few practice exercises before getting started with this lesson.
Dominika is curious about the amount of time she spends going to and from school. One day, she decides to measure the time it takes her to get to school on foot and compare it to the amount of time it takes her to arrive home by bus. She drew the following graph for her trip to school.
In order to understand the relationship between two quantities and make predictions about their behavior, it is important to be able to compare and quantify how one changes with respect to the other. These ideas define the concept of rate of change.
The rate of change ROC is a ratio used to compare how a variable changes in relation to another variable. It is determined by dividing the change in the output variable y by the change in the input variable x. For any ordered pairs (x1,y1) and (x2,y2), the rate of change is calculated using the following formula.
The Greek letter Δ (Delta) is commonly used to represent a difference. This leads to an alternative way of writing the formula for ROC.
Rate of Change=ΔxΔy
The units of a rate of change are the ratio of output units to the input units, meaning that they are derived units. Interpreting the rate of change depends on the context.
Output Units | Input Units | Rate of Change Units | Possible Interpretation |
---|---|---|---|
meters | seconds | secondmeters | Car speed over a certain period of time |
bacteria | hours | hourbacteria | Growth rate of bacteria in an experiment |
U.S. dollars | hours | hourU.S. dollars | Worker's hourly wage |
As mentioned above, the rate of change is a quantity that compares the change in the output variable to the input variable. These are also known as the dependent and independent variables, respectively.
Diego is taking the bus back to his hometown. During the trip, he sees that there are signs by the side of the road that indicate the distance from the city.
He keeps track of some of the signs and notes the time taken to reach them. He puts the information together using a table of values.
Time (minutes) | Distance (kilometers) |
---|---|
0 | 0 |
10 | 15 |
20 | 30 |
30 | 45 |
40 | 60 |
50 | 75 |
60 | 90 |
Substitute (10,15) & (20,30)
Rate of Change =t2−t1d2−d1 | ||
---|---|---|
Times | Substitute | Evaluate |
10-20 min | 20 min−10 min30 km−15 km | 1.5minkm |
0-60 min | 60 min−0 min90 km−0 km | 1.5minkm |
Substitute (0,0) & (2,50)
Rate of Change =x2−x1y2−y1 | ||
---|---|---|
Points | Substitute | Evaluate |
(0,0),(2,50) | 2−050−0 | 25 |
(2,50),(4,100) | 4−2100−50 | 25 |
Linear Equation: y=2x+3 | ||
---|---|---|
x | Substitute | Point |
x=1 | yy=50(1)+30=80
|
(1,80) |
x=3 | yy=50(3)+30=180
|
(3,180) |
x=4 | yy=50(4)+30=230
|
(4,230) |
x=7 | yy=50(7)+30=380
|
(7,380) |
Now that the points are known, all that is left to do is to repeat the same procedure as in Part B. The following table summarizes the results for the pair of points of interest.
Rate of Change =x2−x1y2−y1 | ||
---|---|---|
Points | Substitute | Evaluate |
(1,80),(3,180) | 3−1180−80 | 50 |
(4,230),(7,380) | 7−4380−230 | 50 |
(1,80),(7,380) | 7−1380−80 | 50 |
It is interesting to note that the rate of change is the same between all the pairs of points used. This occurred in Parts A and B as well.
The following applet shows different representations for the data of two variables. Practice finding the rate of change between the indicated values. If the answer is not an integer number, round it to two decimal places.
y1=mx1+b, y2=mx2+b
Consider a set of data points for which the rate of change between every pair of consecutive points is a constant value m. Consider two consecutive points (x1,y1) and (x2,y2).
Rate of Change | Rewrite |
---|---|
x2−x1y2−y1=m | y2−y1=m(x2−x1) |
Note that since the rate of change between every pair of consecutive points is constant, they all can be rewritten in a similar way.
Rate of Change | Rewrite |
---|---|
x2−x1y2−y1=m | y2−y1=m(x2−x1) |
x3−x2y3−y2=m | y3−y2=m(x3−x2) |
⋮ | ⋮ |
xn−xn−1yn−yn−1=m | yn−yn−1=m(xn−xn−1) |
y3−y2=m(x3−x2), y2−y1=m(x2−x1)
y4−y3=m(x4−x3), y3−y1=m(x3−x1)
Diego's brother is very interested in crypotcurrencies and is telling Diego about how their values changed in the first weeks of the last year. One of them is of special interest to him because its graph is a straight line. He tried to print some information to show Diego, but his printer broke before it could print the complete tables of values for the cryptocurrencies.
Diego's brother wants to identify the table in which the values have a linear relationship. For each table, the left column represents the week number and the right column represents the value of the cryptocurrency in dollars. Which of the three tables best describes a linear relation?Linear relations grow by equal differences over equal intervals.
Since the relation represented in Table A increases by equal differences in equal intervals, the data can be modeled with a linear relation. Now, the same procedure will be applied to other tables.
Since the differences between consecutive y-values are not constant for equal intervals, Table B and Table C do not satisfy the condition. As such, they do not represent linear relations.
The following table shows the relationship between two variables, x and y. Look at the data carefully and determine whether the relationship between x and y can be described by linear equation.
In a previous example, it was shown how substituting a specific x-value into a linear equation in two variables determined an associated y-value. The set of all the points obtained in this way represent a line in the coordinate plane. This idea is depicted below by showing some points for a particular linear equation.
This type of relation in which an input is assigned only one specific output is known as a function. To each input, typically represented by the independent variable x, the function assigns an output represented as f(x). In the example above y depends on x. This can be denoted explicitly by using function notation.A linear function is a function with a constant rate of change. A linear function can be represented by a linear equation in two variables. Graphically, a linear function is a nonvertical line.
Using that line, the rate of change can be determined by finding the horizontal change Δx and the vertical change Δy between any two points on the line. Any function whose graph is not a straight line cannot be linear.When working with linear functions, there are two points of special interest. These are the points where the line crosses the axes, known as intercepts.
The x-intercept of a line is the x-coordinate of the point where the line crosses the x-axis. The y-intercept of a line is the y-coordinate of the point where the line crosses the y-axis. The y-intercept of an equation is also known as its initial value.
When talking about functions, the x-intercepts are the zeros of the function. Sometimes, only one coordinate of these points is referenced. For example, if the x-intercept lies at (a,0), it can be said that the x-intercept is at x=a. The same is true for the y-intercept. A relation can have several intercepts. A function can have multiple x-intercepts, but it can only have one y-intercept.Diego wants to make sure he has enough data available on his smartphone to stream a series while taking a trip with his family. He visits a local branch of his service provider and updates to the Unlimited Plan,
which costs an initial service fee and a special price per gigabyte of data used. The graph represents the costs of the service plan.
Therefore, the y-intercept is 4. Since this is the cost of the service when 0 gigabytes of data are used, x=0, it can be concluded that $4 is the initial service fee.
The following applet alternates between a graph and a linear equation, both of which represent linear functions. Identify the indicated intercept of the given function and write the answer as a single number.
Time (seconds) | Distance (meters) |
---|---|
0 | 0 |
3 | 18 |
6 | 72 |
9 | 162 |
12 | 288 |
15 | 450 |
18 | 648 |
21 | 882 |
Substitute (18,648) & (21,882)
Substitute (0,0) & (28,1176)
Substitute (24,1152) & (28,1176)
The following applet shows different representations for the data of two variables. Practice finding the average rate of change between the indicated values. If the answer is not an integer number, round it to two decimal places.
It is important to mention that the graphs of some functions can be comprised of straight lines with different slopes. The average rate of change is used for these functions as well, since the graph is not a single straight line and the rate of change is not constant.
With this information in mind, consider again the challenge presented at the beginning of this lesson.Dominika is curious about the amount of time she spends going to and from school. One day, she decides to measure the time it takes her to get to school on foot and compare it to the amount of time it takes her to arrive home by bus. She drew the following graph for her trip to school.
Average Speed: 100 meters per minute
Substitute (0,0) & (10,1200)
After this time, she got on the bus and arrived back home at t=12 minutes. Recall that the distance between her home and her school is 1200 meters.
Now that the graph is complete, the average speed for the return trip will be calculated. This time, the interval of interest is t1=0 to t2=12 minutes. From the graph, the corresponding distances at times t1 and t2 can be found as follows.Substitute (0,0) & (12,1200)
Substitute (9,0) & (12,1200)
In this lesson, the concepts of x- and y-intercepts, as well as linear functions, were introduced. However, it is important to note that the concept of a function is more general and that there are also nonlinear functions.
Other main ideas of the lesson were the rate of change and the average rate of change. These basic concepts lead to the definition of instantaneous rate of change. Unlike the average rate of change, which is an approximation for an interval, the instantaneous rate of change gives the exact value of the rate of change at a specific point.
The definition of an instantaneous rate of change has many different applications in real-life situations. It is used to calculate the thrust of rockets, the exact velocity of projectiles, electrical current in circuits, and to design optimization processes for software to run faster or maximize the profits of a business, among other things.