Certainly! Below are the Desmos equations along with slider definitions to simulate the difficulty for review patterns based on your provided formulas. This setup allows you to adjust parameters using sliders and observe how the difficulty and stability evolve with different review grades.
Step 1: Define Sliders
First, create sliders for all the parameters (w4, w5, w6, w7, w17, w18) and for the review grade G. These sliders allow you to interactively adjust the parameters and observe their effects.
-
Create Sliders for Parameters:
w4: Initial difficulty when first rated "Again"
w5: Parameter for initial difficulty formula
w6: Damping coefficient
w7: Mean-reversion weight
w17: Stability parameter
w18: Stability offset
Example Slider Settings:
w4: Range [1, 10], initial value 5
w5: Range [0.1, 3], initial value 1
w6: Range [0.1, 5], initial value 1
w7: Range [0, 1], initial value 0.5
w17: Range [0.1, 3], initial value 1
w18: Range [-2, 2], initial value 0
-
Create Slider for Review Grade:
G: Review grade, typically an integer from 1 to 5 (e.g., 1 = Again, 5 = Easy)
Example Slider Settings:
G: Range [1, 5], step 1, initial value 3
Step 2: Define Functions and Variables
Now, input the following equations into Desmos. These equations represent the calculations for initial difficulty, stability after review, damping, difficulty updates, and mean reversion.
-
Initial Difficulty After First Rating:
[
D_0(G) = w4 - e^{w5 (G - 1)} + 1
]
Desmos Input:
D0(G)=w4−exp(w5(G−1))+1
-
Stability After Same-Day Review:
[
S' = S \cdot e^{w17 (G - 3 + w18)}
]
Desmos Input:
S_prime(S,G)=S⋅exp(w17⋅(G
-
Linear Damping for New Difficulty After Review:
[
\Delta D(G) = -w6 \cdot (G - 3)
]
Desmos Input:
ΔD(G)=−w6⋅(G−3)
-
Update New Difficulty After Review:
[
D' = D + 10 \cdot \Delta D(G) - 9 \cdot D
]
Simplifying:
[
D' = -8D + 10 \cdot \Delta D(G)
]
Desmos Input:
D_prime=D+10⋅ΔD(G)−9⋅
-
Mean Reversion Towards Target Difficulty:
For FSRS 5, the target is ( D_0(4) ).
[
D'' = w7 \cdot D0(4) + (1 - w7) \cdot D'
]
Desmos Input:
D_double_prime=w7⋅D0(4
-
Optional: Recursive Definitions for Iterative Simulation
If you wish to simulate multiple review sessions iteratively, you can use recursive definitions with sequences. Here's an example for the first few iterations:
-
Initial Conditions:
[
D_1 = D0(G)
]
[
S_1 = \text{Initial Stability (e.g., } S = 1 \text{)}
]
-
Subsequent Reviews:
[
D_{n+1} = w7 \cdot D0(4) + (1 - w7) \cdot (D_n + 10 \cdot \Delta D(G) - 9 \cdot D_n)
]
[
S_{n+1} = S_n \cdot \exp(w17 \cdot (G - 3 + w18))
]
Desmos Input Using Sequences:
Step 3: Visualize the Results
To visualize how difficulty (D) and stability (S) change with each review, you can create graphs or tables.
-
Graphing Difficulty Over Iterations:
Use a table to list values of D[n] and plot them against the iteration number n.
-
Graphing Stability Over Iterations:
Similarly, plot S[n] against n to see how stability evolves.
-
Interactive Exploration:
Adjust the sliders (w4, w5, w6, w7, w17, w18, G) to see real-time changes in the difficulty and stability metrics.
Example Setup in Desmos
Here's how the equations might look within Desmos:
[image: Desmos Setup Example] open
(Replace the image link with an actual screenshot of your Desmos setup if needed.)
Tips for Using the Simulation
-
Start Simple: Begin with default slider values and observe how changes in one parameter affect the outcomes.
-
Understand Parameters:
- Increasing
w4 makes the initial difficulty higher when first rated "Again."
w5 controls how quickly the initial difficulty decreases with better grades.
w6 affects how strongly the difficulty is damped based on the review grade.
w7 dictates the influence of mean reversion towards the target difficulty D0(4).
w17 and w18 influence the stability after a review.
-
Iterative Reviews: Use the recursive definitions to simulate multiple reviews and understand long-term behavior.
-
Explore Scenarios: Try different grades (G) to see how they impact difficulty and stability over time.
By setting up these equations and sliders in Desmos, you can effectively simulate and analyze the difficulty patterns in your review system. Feel free to adjust the slider ranges and initial values to better fit your specific use case or to explore various scenarios.