Adelisse F. answered 06/29/19
Math and Science Teacher
All of these questions can be answered using the formula of a linear equation:
y = mx + b, where m = (y2 - y1) / (x2 - x1)
So let's begin.
First, we make a table of the dates versus stock prices, and then identify our 3 pieces of line:
___x___ ___y___
Jan 1 $10
} Line A = yA
Jan 31 $12
______________________________
Feb 1 $12
} Line B = yB
Feb 28 $ 9
________________________________
Mar 1 $ 9
} Line C = yC
Mar 31 $15
________________________________
At this point, it's important to rename the x-values from the date to the number of days from Jan 1 in order to make our calculations. Let's set Jan 1 to day 0:
___x___ ___y___
0 10
} Line A = yA
30 12
______________________________
31 12
} Line B = yB
58 9
______________________________
59 9
} Line C = yC
90 15
______________________________
Now let's calculate our 3 line pieces:
Line A : y = mx + b using the points (0,10) and (30,12)
mA = (12 - 10) / (30 - 0) = 1/15
=> yA = (1/15) x + b
We find b by substituting one of the 2 points into the equation yA. Let's use (0,10):
10 = (1/15)(0) + b
10 = b
So, yA = (1/15) x + 10
Line B : y = mx + b using the points (31,12) and (58,9)
mB = (9 - 12) / (58 - 31) = - 3/27 = - 1/9
=> yB = (-1/9) x + b
We find b by substituting one of the 2 points into the equation yB. Let's use (31,12):
12 = (-1/9)(31) + b
12 = (-31/9) + b
12 + (31/9) = (-31/9) + (31/9) + b
(139/9) = b
So, yB = (-1/9) x + (139/9)
Line C : y = mx + b using the points (59,9) and (90,15)
mC = (15 - 9) / (90 - 59) = 6/31
=> yC = (6/31) x + b
We find b by substituting one of the 2 points into the equation yB. Let's use (90,15):
15 = (6/31)(90) + b
15 - (540/31) = (540/31) - (540/31) + b
- 75/31 = b
So, yC = (6/31) x - (75/31)
Now you graph the 3 line pieces, which I don't know how to do here. Stock prices go on the y-axis and the number of days from Jan 1 go on the x-axis. Just plot the 6 points and connect them, and you'll find 3 disconnected lines in the shape of a zig zag (or EKG).
Each disconnected line represents the price change in each month between Jan 1 and Mar 31.
Line A := the price change in stock during Jan
Line B := the price change in stock during Feb
Line C := the price change in stock during Mar
The overall line, we'll call it YD, begins at the first point (0,10) and ends at the last point (90, 15). This line represents the change in stock price over all 3 months as one continuous line.
To find Line D, we do the same work as we did above for the 3 line pieces:
mD = (15 - 10) / (90 - 0) = 5/90 = 1/18
=> yD = (1/18) x + b
Find b by substituting the point (0,10) into the equation right above:
10 = (1/18)(0) + b
10 = b
So, yD = (1/18) x + 10
Now let's answer your questions:
(1) ... is the price change from $10 to $15 a straight line?
No, not when we go from month to month. Then it's a zigzag line.
(2) But what would be a simplified solution for a first naive view of the situation?
A linear solution? I'm not sure what your teacher means.
(3) Would a simple function hold up?
Yes, a linear function? Again, not sure what the teacher means.
(4) What is the simplest function to represent this situation?
That would be Line D.
(5) Does your naïve initial and simplified model allow you to predict the behavior of the stock in the next month?
The simplified model, Line D, can help you to predict future changes in stock price, but remember, it would an estimate, not fact.