Teacher summary shows slides as incorrect

I have an odd issue here. The activity is showing the first problem (slide 2) as correct but no others. When in “editing” mode, all slides show as correct. Thanks!

Activity

It looks like in your correct sink you have x1 = x1 instead of x1 = x2. But that would make it be correct when students have the right y value regardless of the x value.

I’m not sure what you mean by “showing as correct” though. What are you expecting and what are you seeing?

Thanks for replying Daniel and catching the x1=x1.

What I’m seeing on the teacher summary page is that students got slide 2 correct but slides 3-8 incorrect (with correct answers). When I edit the activity and use the “preview” function, they all function correctly and show the check mark.

I have attached images to help clarify. Thanks again.

I’ll look again later. One guess I have is that you may need to use the hasResponse sink in the graph, setting it to true when the input button has been clicked.

Ok, as far as I can tell, it’s a problem connected to using the regression function like that. I’m not sure why it’s doing it though or how to fix it. Maybe someone else can weigh in on this?

My suggestion is to just calculate the point of intersection algebraically. I redid slide 3 (problem 2) as an example - does that work for your purposes? [Copy of] Solving Systems using the Substitution Method • Activity Builder by Desmos Classroom

Can’t speak to why that inconsistency is happening - interesting though and i’d be curious as to why.

But I’d forgo all of the regression and infact all of the solving, and instead do the following:

  • Generate your solution point first, then create equations around that point. Makes for highly re-usable code, easily defined solution bounds, and “nice” answers every time.

  • Don’t validate by solving either, just check that the point you generate in advance as the solution satisfies both equations. This has the advantage of working equally well for nonlinear equations

This approach means you can create randomly generated questions that simply work every time in a wide variety of problems. Hope it helps!

Thanks @Daniel_Wekselgreene and @Mike_Gleeson. Both solutions will work and I’ll use those ideas.

I’m still curious on the original too. Maybe it’s a bug?

I think it was a bug. I noticed when testing if you went to the individual student view, the component showed correct even though the screen did not. Did you edit the original or make a new copy?

I made a copy and edited to add the graphs for students to check their own correctness rather than a checkmark.

Gonna bring this back up. I made a different activity that uses a value via regression. While making the activity and on the preview screens, it shows the correctness properly. When viewing the teacher summary page, however, it still shows all work as incorrect.

I know that I can do this in another way, but I would love to know why the teacher summary can’t properly show correctness when pulling a value from regression. I feel that it must be a bug and would be great to fix. Maybe someone can move this to the “Bug Reports” section?

LINK TO ACTIVITY

I think I’ve identified a fix. The graph’s regression doesn’t seem to calculate for the dashboard when it is dependent on CL unless you’re viewing the screen.

Possible solutions:

  1. Hard code f(x) and a directly into the graph instead of using the CL, which I tested and appears to still work on the dashboard, but I understand doesn’t help to use as a template.
  2. Use an alternate form of validation that doesn’t use regression:
    check = simpleFunction(g.script.f).evaluateAt(this.numericValue) = g.script.a
    or within a tolerance (where a here could also be a second function instead of a value)
    check = simpleFunction(`\abs(${g.script.f}-(${g.script.a}))`).evaluateAt(this.numericValue) <= 0.01
1 Like

The alternate form of validation is the simple adjustment I used. It would be nice to know why the regression information cannot be accessed via the dashboard for future reference though. @JayChow Can you elaborate on this? Thanks!