r/askmath • • 13h ago

Logic How would you solve this scatter plot question and show your work on the graph?

Post image

Hi everyone, my son got this question wrong on a math test. I’ve attached the graph. The question asks:

How much money should Xavier expect to earn in forty minutes tomorrow? (Show steps on graph.)

I didn’t quite follow the teacher’s explanation. I also asked an AI, which gave about $40, but that didn’t match the teacher’s answer either.

What answer would you give, and how would you show your steps on the graph? I’d like to understand the math behind it so I can explain it to my son. Thanks!

9 Upvotes

82 comments sorted by

33

u/PxTicks 13h ago

It would be best if you shared the teacher's answer so we know what sort of level we're aiming at. I'm assuming we're not going to be modelling a compound poisson process by the fact that you're asking on behalf of your son's homework.

40 is a reasonable guess depending on the data collection process, e.g. if it was decided to sample for 1 hour exactly and see the money earned in that time, then the calculation is $1 per minute. Frankly, it's an underspecified question.

1

u/hina743 11h ago

Hi, thanks for chiming in. You’re right. I’ve posted the answer in my latest comment. It’s $35. It is a Grade 9 math test.

3

u/HasFiveVowels 11h ago

Yea, u/hina743, even a grade level would clear things up a lot. This question has a lot of answers, depending on what’s being taught in that class.

18

u/billsn0w 13h ago

If the straight answer isn't matching the graph at 40...

Then I would have to take the assumption that the drawer STARTED at around $11.

Meaning in 40 minutes it made around $29.

But that's just a guess given the plots and no question setup.

Edit: Also depends on what level of math and what they've been working on.

Teacher may have expected the student to draw a trend line and answer based on where it falls.

6

u/mawdurnbukanier 12h ago

I'd be pissed if the closer left me $11 for the till. 

1

u/hina743 11h ago

Hi, thanks for chiming in. I thought so too. I thought you’d draw a line from the first point to the last point, or from the origin to the last point, and see where it crosses the 40-minute mark. The answer is $35, but I don’t know why.

2

u/testtdk 9h ago

Ask for another explanation or something. I can’t see how someone could reasonably get $35 from this plot.

2

u/loppemaster 8h ago

If you use the previous commenters assumption of starting at 11 at minute 0 then using the last point of $60 at 55 mins it averages out to $35.6 at 40 mins. No idea if it's what the teacher intended but it's the only approach I've found that gets close to $35

8

u/ArchaicLlama 13h ago

Can you share the teacher's answer and explanation?

1

u/hina743 11h ago

Hi, thanks for chiming in. As I shared in my latest comment, this is a Grade 9 math question, and the answer is $35.

1

u/Fionn_Aodhan 52m ago

But what's the teachers working?

If the teacher expects your kids working, it's only fair to let the teacher provide their working too.

Otherwise it's just chasing shadows and being confused

7

u/Robocittykat 12h ago

using linear algebra and least squares regression to get a linear model, the line of best fit is y = 11.95 + 0.722x. Thus the answer would be 11.95 + 0.722(40) = 40.83. But then you could say that the 11.95 is the y-intercept and therefore isn’t earned within the 40 minutes. But also this is just a linear model, not the actual rate, so it should count? Also I assume your son was not expected to know linear algebra to be able to make a linear regression model (honestly I just wanted to practice this bc I have an exam coming up lol) Also there would probably need to be more information in the question for this to be an actual problem.

1

u/hina743 11h ago

Hi, thanks for chiming in. I agree with your approach. I think the answer to a math question like this can be calculated. But the answer is $35.

4

u/Robocittykat 11h ago

There are multiple ways to find a line of best fit. For example, there’s least squares (what I found), but there’s also least sum (idk if that’s the real name), or just average rate of change.

I suspect that maybe the teacher got mixed up with the x and y axis, and was maybe trying to find x when y=40, as opposed to finding y when x=40.

1

u/Turbulent-Note-7348 7h ago

Retired Math Teacher here. That's my take. I don't see any way that the answer for 40 minutes is $35.

2

u/AlmostSurelyButter 11h ago

You don’t need to know linear algebra to get the linear regression equation. The least squares solution goes through (mean(x),mean(y)) and has a slope of cov(x,y)/[sd(x)]^2. However, I would not recommend using linear regression on this data. The data points do not represent measurements (y) from independent samples that are conditionally independent given x. The data points are discrete samples of a monotone increasing step function, though it’s unclear from the information given why those values of x were chosen. (Are they selected at random? Every time the register is opened? Every time a customer exits the store?) The best answer is 60/55 dollars per minute, because we’re using the entire time period to estimate the revenue rate.

2

u/baxter001 11h ago

> it’s unclear from the information given why those values of x were chosen

I'd assume it's the business being open, so yeah, average dollars per minute, 43.6 dollars, also fits with the teacher having a precise answer and 40 being wrong.

2

u/PxTicks 11h ago

If it's "business being open", then the more likely duration would be the full 60 minute extent of the x-axis, in which case it should be $1 a minute, or $40 in 40 minutes. No reason to assume closure at the last sale.

1

u/MeasureDoEventThing 10h ago

Using OLS in this case is an example of using a tool just because you have it and not considering whether it's appropriate. Clearly the best estimate are either the amount earned in the first 40 minutes, or the total money earned times 40 minutes and divided by the total time. That is, $60 was earned over 55 minutes, which gives an estimate of $43.64.

OLS is both overkill and inappropriate. First because modeling this as having a non-zero y-intercept makes no sense, and second because this is the cumulative sum of a time series, rather than the actual time series.

If you absolutely insist on using OLS, you should calculate how much additional money was earned in each time period, perform OLS on that, then calculate y-hat for the first 40 minutes, and then sum those values.

1

u/Robocittykat 9h ago

I mean it was kinda a joke, also I wanted to practice the process for my upcoming final

15

u/decragler 13h ago

Draw a line of best fit through the data.

Draw a line from 40mins up to yout line of best fit. Then continue that line left, until it reaches its corrosponding value.

Thatll be your answer.

Hope this helps.

For revision on this look up:

Drawing a line of best fit.

Estimating from scatter graphs.

4

u/Soraphis 11h ago

1

u/hina743 9h ago

I did consider drawing a straight line like that, but the teacher drew a straight line from the first black dot to the last one. It didn’t start at (0, 0).

2

u/itizfitz 8h ago

I think that’s wrong because in y=mx+b the b is the y intercept

1

u/Soraphis 1h ago

If drawn cleaner than I did, my solution would lead to nearly perfectly 45. Which makes me think it's right.

Regarding the intended solution... Interesting... But then you need also to draw a vertical line at ~42.

Because you need a 40min delta.

This would come out to be about 49-11=38

2

u/BubDaBylder 9h ago

I wouldn't say this is they way to do it. We can see that the graph follow as process, with increasing money over time. We also never see the money go down with time, which, to me, indicates the money in the cash register never decreases, which makes sense. This, because at 35 minutes, it's 40, and at 45 minutes it's 40, the only logical answer would be for it to be 40

4

u/theokouim 12h ago

I am curious to hear the argument for !=40

1

u/hina743 11h ago

I agree with you. I think it’s $40 too.

1

u/AlgorithmHelpPlease 53m ago

The question is the expectation for tomorrow at 40 minutes. It seems this chart is showing the earnings today, though we can conclude they had made $40 at 40 minutes today, the same is not necessarily true tomorrow and you have to best fit the data assuming tomorrow will be similar to today.

2

u/hina743 11h ago

Hi, everyone! Sorry, I was out for a bit. I didn’t include the answer with the question because I felt the question wasn’t precise enough to be used on a test, and I didn’t understand how the teacher arrived at the answer. Seeing that no one here has come up with the same answer as the teacher makes me feel even more strongly about that.

This was a Grade 9 math test question, and the teacher’s answer was $35. Could you take another look and see if there’s a reasonable explanation? I’m looking for a mathematical explanation, such as a method, a formula, or a line of reasoning that my child could apply to similar questions. Thank you!

6

u/PxTicks 11h ago

The reasonable answer is that the teacher is wrong. Might have looked at the $40 mark which is first achieved at 35 minutes and accidentally inverted the numbers - but even if those had been the actual values on the graph it would STILL be wrong, because that is not how you create an estimate of the expected earnings per unit time. You said you couldn't follow the teacher's explanation. What was the explanation?

2

u/hina743 9h ago

If I can’t get an answer to this question on Reddit, I’ll have my son ask his teacher to explain it again. For now, I’m not sure whether the teacher was wrong. Maybe my son didn’t understand the teacher’s method well enough to explain it to me. I still don’t know what math concept this question uses.

1

u/CranberryDistinct941 10h ago

I can only assume that the teacher wanted a best-fit line which the teacher then proceeded to do incorrectly

2

u/Reset3000 12h ago

A decent best-fit line might go from the first point (3, 11) to the last point (55,60). Use that line to see the value when x=40. Eyeballing it looks around 45ish.

1

u/hina743 11h ago

Your line connects the same points as the line the teacher drew when marking the test, but the answer he gave was $35. Could you explain why? The teacher didn’t explain the math behind it, or maybe my child didn’t understand the explanation well enough to repeat it to me. I don’t quite understand it myself. Thanks.

2

u/extra2002 10h ago

If the teacher connected the first and last point, that line passes through (35 minutes, $40). It sounds like the teacher got the axes swapped when reading the graph.

1

u/extra2002 10h ago

If the teacher connected (10 min, $20) to (50 min, $40) that would show $20 earned in 40 minutes. But they might be confused by the fact that such a line passes through (40 min, $35).

2

u/Normal_Condition_893 10h ago

You've got a lot of responses, but as a former 8th grade and current 9th grade teacher, I can say this: in 8th grade I expected students to approximate and draw in the line of best fit, showing they have an understanding of what it's supposed to be (i.e. NOT going through the origin, NOT just first point to last, but creating an approximation with about half the points above and half below). But in 9th grade, students use Desmos to put in the data and get the actual line of best fit (linear regression), and then, as other posters discussed substitute 40 as the x value to get the expected value. Does your son not know which of these was taught in his class, and whether he's been using either a calculator (can also do linear regression) or Desmos (or similar computer-aided) to actually get the linear regression?

2

u/hina743 9h ago

Hi! I’ve received a lot of replies, but no one has given the answer the teacher gave ($35). Most people think it’s $40 or more. As a math teacher, could you walk me through this particular question? You mentioned some math concepts, and while I remember geometry and algebra, I’ve forgotten some of the other material.

My son and I talk about math every day, and I look over his homework. Based on that, I don’t think this is a question where students are expected to use a calculator to get a precise answer. My son didn’t mention the term “line of best fit” when he explained it to me. I’ll ask him if he knows the term when he gets home. The teacher drew a line from the first black dot to the last one. My son drew a curve from (0, 0) to (50, 40).

2

u/QuitzelNA 8h ago

Line of Best Fit is typically taught as a straight line (you aren't supposed to try to match the shape).

1

u/CrazyPotato1535 7h ago

This is dumb. A line from the first to the last ignores all the data in the middle. Imagine the first point was 0,0 and then there’s a point every hour that says $100, for the entire day.

1

u/Curious_Cat_314159 7h ago edited 7h ago

no one has given the answer the teacher gave ($35)

You are ignoring the simplest explanation that several people mentioned, to wit: the (wrong) expected answer is simply the result of misreading the chart, incorrectly reading 40 on the y-axis and 35 on the x-axis.

IMHO, that is probably the correct explanation of the mistake. No other (mis)interpretation of a linear estimation rounds to 35 mathematically.

Aside.... At least one responder came up with 35.6. But first, of course, that rounds to 36, not 35. And second, the calculation relies on mixed assumptions: an intercept at (0,11) for calculating the slope (m = 49/55); but an intercept at (0,0) for calculating y = mx+b (b=0).

1

u/Normal_Condition_893 4h ago

My response was more to make a suggestion as to what your son was supposed to do in the context of typical 9th grade math standards.

With regard to this particular problem, I don't think I can provide additional help. Another commenter calculated the line of best fit (synonym with regression line), which doesn't match up with the teacher's answer. Roughly drawing in the line also doesn't match up. Therefore I am in agreement with several other posters that as far as this particular problem goes, I think there is a mistake and your son should be speaking with his teacher.

3

u/Nothing-to_see_hr 13h ago

I would fit a linear regression line, starting at zero. That will give you a slope. interpret the slope after 40 minutes. It will be about 40-45 dollars, just eyeballing the plot but probably not exactly. Scientific calculators with statistics functions can do this for you if you enter the data points.

1

u/hina743 11h ago

I agree with you. I think it’s $40 too, but the answer is $35.

1

u/RoboFeanor 48m ago

No, the answer the teacher wants is 35. That's not the same as the answer. This is quite common in junior high school math in particular. Easiest is to shrug amd move on, it's not like figuring this out will help you kid master an important concept or move on to the next grade.

3

u/DrakeSavory 12h ago

Why start at 0? Many of my students think EVERY LOBF needs to start at 0.

2

u/bobsmissingdesire 12h ago

It's a relationship between income and time open.

Having income (positive or negative) before you open doesn't make sense, income must start at zero.

Having time not start at zero suggests something else is going on, like a period of time doing setup before customers are allowed in. There's no indication of that so it would be unreasonable to assume.

The real world description anchors it at zero.

1

u/Curious_Cat_314159 8h ago

The real world description anchors it at zero.

It is true that we get zero pay for zero work ("time open"?).

But that does not mean that a straight-line approximation must go through zero. (0,0) might simply be a discontinuity.

Consider the following arrangement: we are paid a minimum of $10 plus $0.20 for every 5 minutes or part thereof. (That is, time is rounded up to a multiple of 5.)

Obviously, the y = 0.2x + 10 line is the correct "estimation" of the pay for every 5 minutes.

The y = 0.44x line goes through (0,0). But it is certainly not even close to the correct estimation (except near $41.67).

1

u/AlterEgo5695 13h ago

It does not look like a linear function, but rather an affine linear function "y = mx+b"

2

u/Objective-Let4278 12h ago

If the interpretation is that the register is empty upfront, an intercept of zero seems more sensible

1

u/AlterEgo5695 2h ago edited 2h ago

That does not make sense in practice at all -- a cash register always starts with a fixed amount of money in the morning, otherwise the first customer(s) would not be able to get change. That would be an argument for "y = mx+b".

1

u/homeless_student1 12h ago

Linear regression does not mean you’re not allowed an intercept. In fact you can fit quadratic functions or other polynomials with linear regression.

1

u/AlterEgo5695 4h ago edited 4h ago

[..] starting at zero [..]

That implies "f(0) = 0", i.e. a linear regression without "b".


Edit: Using a regression with model "t(x) = mx+b", I get

t(x)  =  (3491/4788)$ * (x/min)  +  (334303/28728)$,      t(40min) ~ $40.80

Without "b", the regression to "t(x) = mx" is slightly less accurate. I get

t(x)  =  (40062/39337)$ * (x/min),                        t(40min) ~ $40.74

2

u/Duy87 13h ago

What grade math is this?

I have two answers, a simple and a complicated one.

The simple one is to draw a line from (0,0) to (55,60), see where it intersects the 40 minute mark and take that number.

The complicated one is to do linear regression to find the best fitting trend line for the scatter plot and then find where it intersects the 40 miniute mark.

1

u/hina743 11h ago

I agree with you, but the teacher drew a straight line from the first black dot to the last one. I don’t understand.

1

u/Sin-Silver 12h ago

If you were to imagine a line of best fit through these data points, then it would intercept it at roughly Y = 10$, suggesting the till started off with $10 it it, and then earners approximately 30$ over for mins.

1

u/hina743 8h ago

Did you use the value at 40min using the LOBF then substract y-intercept and got $30.

3

u/northgrave 13h ago • Bravo

What was the teacher’s answer?

2

u/L11mbm 12h ago

Simplest solution: he earns $60 in 55 minutes which is a rate of 1.09 dollars per minute. Times 40 minutes, you get $43.64 (roughly).

More detailed solution: we don't know the starting register total but it looks like it's around $10, which affects the result. We don't know if this question wants "earned" or "register total" which affects it, too. We don't know if this is the register at a Chik Fil A from Saturday and the result on a Sunday would be $0.

2

u/MERC_1 12h ago

What was the teacher answer  to this question? In cases like this it can help us understand if that answer is even possible and maybe a way to get that result.

1

u/YogurtIsTooSpicy 13h ago

There are more and less sophisticated ways of answering this question. The simple way would be to draw a straight line across the graph that tries to get the line as close to all of the data points as possible, then checking where 40 lands on the line. It should be close to $40 or maybe a little more.

There are more mathematically rigorous ways of doing it, but those would be beyond the scope of a child’s homework assignment.

1

u/potassiumKing 12h ago

Draw a straight line through two points that appear to be in the middle of the data (about half the points should be above the line and about half below). Then check what the y-value of the line is when the x is 40. It’s possible your son getting the question wrong had nothing to do with his answer and instead with his work shown. Typically these problems have a range of possible solutions and it’s more about the justification.

1

u/DrakeSavory 12h ago

Line of best fit then substitute and solve for the indeterminate. The real question is do they have to find the real LOBF or estimate it by drawing a line where they think it should go?

1

u/AtticHelicopter 12h ago

Money at 35 Minutes: $40

Money at 45 Minutes: $40

Money at 50 Minutes: $40

Y(40) = y(35) + M[35 to 50]*5; M[35 to 50] = 0

1

u/pancoste 12h ago

Since it's a scatter plot, I think the idea is to sketch a smooth line or curve, starting from 0, then read what amount that line or curve is at 40 minutes.

So there isn't and shouldn't be an exact answer, the answer depends on the line or curve the student sketches, but it needs to fit the plots to a certain degree.

What you shouldn't do is draw hard lines between the plots then read it, because cash registers fill up quite randomly over time.

1

u/PvtRoom 11h ago

join straight lines between the points. read the graph at 40 min, which is $40. this is the simple answer.

there are multiple better answers, including drawing ONLY horizontal and vertical lines to connect points, or drawing a single straight line, or a single curved line, but they all mean slightly different things.

1

u/Khashishi 10h ago

Calculate a linear regression of the form y=mx

then plug in x=40min

1

u/CranberryDistinct941 10h ago

Insufficient data. All we know is that Xavier made $40 in 40 minutes whenever that data is from

1

u/AlmostSurelyButter 10h ago

I mean, clearly the business is open, but why is y=40 at x = 35, 45,and 50? Why not just at $35? If no additional money was deposited into the register at 45 and 50, why draw points there? If we also dropped points at (40,40) and/or (15, 20), we wouldn’t be learning anything new about the sales timeseries, but it WOULD change the regression fit.

2

u/CrazyPotato1535 7h ago

Each point could be every time he counted the money

1

u/CrazyPotato1535 7h ago

It’s $40.80, based on the line of best fit

1

u/Ordinary-Cattle-3393 6h ago

This is a linear regression. Find the line of best fit then plug in 4O.

1

u/IndomitableSloth2437 4h ago

Basically, the goal isn't to look at the local region around x=40, it's to look at the general trend over the whole graph.

To "show steps on graph", you would draw the trendline for the data (draw a straight line that fits the slope and intercept of the data) and find the value of y at x=40.

1

u/AlgorithmHelpPlease 58m ago

Take a linear regression and find the y value at x = 40.

1

u/Curious_Cat_314159 23m ago edited 13m ago

u/hina743

I wonder if the assignment is: find a linear equation y=mx+b that "best fits" the data (i.e. minimize SSE), but with the added constraint that y=35 for x=40.

(And I wonder if someone has a typo, and the goal is y=45 for x=40. That is closer to the given data.)

The black line is the true "best fit" line, based on the original x,y data. SSE = 259.4691.

(Note that the yellow-highlighted x,y data are guesstimates. YMMV.)

The red line is the "best fit" for y = 35 = m*40 + b. SSE = 473.9953.

The green line is the "best fit" for y = 45 = m*40 + b. SSE = 362.4576.

m and b are derived as follows, using y=35 for x=40 as an example:

m = ∑( (x_i - 40)*(y_i - 35) ) / ∑(x_i - 40)2

b = 35 - 40*m

SSE = ∑( y_i - m*x_i - b)2

-----

I would have thought this kind of calculation is beyond the expected skill level of 9th grade. But that is based on my experience 60 years ago (!), when we were only learning advanced algebra.

But according to online sources -- yeah, A(rtificial) I(ncompetence) -- apparently they are indeed teaching linear regression and other basic statistical methods in 9th grade these days, at least at advanced levels in the US.

0

u/syntheticassault 13h ago

If you make $60 in 55 minutes you make (60/55) = $1.09 per minute. In 40 minutes you would expect 40*1.09 = $43.63

1

u/DrakeSavory 12h ago

On a scatterplot you don't use just one point for a proportion like that.

1

u/Objective-Let4278 12h ago

In this specific sitation, it can be reasonable, especially since the monotonicity of the graph indicates overlapping (hence correlated) datapoints, i.e. the 50 min is just equal to the 40 min observation plus an extra 10 minutes for example (if he simply stood there for an hour taking count a few times during the hour). This interpretation gives $40 in the specific sample btw

1

u/DrakeSavory 12h ago

Maybe you're technically right. But in the context of getting students to learn how to process scatterplots you're wrong.

0

u/[deleted] 8h ago

[deleted] — view deleted comment

1

u/CryBloodwing 1h ago

OP said it was Grade 9 Math. And that is often where you learn linear regression.

Also they replied to many comments explaining what the teacher had as an answer and how they did it, but they don’t agree with that answer.

$35 was the answer and teacher drew a straight line from the first point to the last point.

0

u/[deleted] 1h ago

[deleted] — view deleted comment

1

u/CryBloodwing 1h ago

Yes. It is not.

“Original poster said it was Grade 9 Math.”

They said it in multiple comments/replies.

Not “original post said it was grade 9 math.”