I would like to extend the activity by adding a set of slides that would repeat somewhat the idea presented earlier with the 36 spinners going at same time.
So, on slide 13, I would like to create 36 experiments. I don’t need to see the 72 spinners, this seems chaotic. So basically, I would like to create 36 number generators from 1 to 8. If the number is 1 to 3, it enters the result as MATCH in the table and if the number is 4 to 8, then it enters it as DO NOT MATCH in the table.
I think the idea is in the same ballpark, but I don’t know enough CL to be able to wrap my head around it. Basically, I want to run a simulator that will yield one of two choices with different probability for each. So, it could be like desmos running a number generator, if the number is 1,2 ,3 then it adds +1 in the appropriate column, if the number is different, it adds +1 in the other column. Repeat to 36 times. Does that make sense?
If you want randomization of only 2 choices, you could just make a list with your weighted probabilities and use that for your randomization. For example, between 0 and 1 with a 70% chance of a 1:
For a table in the graph, you can just title the second or later column “C” (or whatever you choose for your list name), and it will populate with the list.
If you want it in a table component, you’d need to define for each cell individually:
Daniel is on point with getting you started, but I wasn’t sure if you wanted any animations or visual displays in the graph component because that’s where the heavy lifting gets done anyway. I know you said that you didn’t need spinners, but colored points would be easy enough to make to represent a spinner’s result. I can put something together later today if you are interested in that sort of thing.
Here is a working sample of what I think you envisioned. There are 36 experiments of two spinners each. A running total of match/no match is shown in the table.
Hello again. Thank you for helping, it is very complex and I would never had gotten there. I was wondering if I could ask for two more “add on”. I can’t wrap my head around the code in the graph to accomplish these two things:
On slide 13, can we adjust the graph so that after the 36 spins, the number of times the student won is displayed ? (See slide 4 for how it was done with just one spinner)
On slide 14, can we adjust the code so that this table show the whole class results (see slide 5)?