Computational Exercise: Simulated learning using Rescorla-Wagner Model
∆Vi = αiβk(λ-ΣVi)
Vt+1 = Vt + ∆Vi
Where ∆Vi= change in associative strength of the CS i; αi= saliency of the CS i; βk = learning rate for the USk; λ = strength of the US; ΣVi = sum of associative strength of all the CSs present on a given trial.
General instruction
Use Microsoft Excel or any other spreadsheet program to do the computation (Or you can write a simple program to do the simulation using any programming language including Python. In any case, plot your simulation results in a graph)
Submit through Blackboard according to the instructions posted on the same board. Your submission should include at least one graph showing the main simulation result and your interpretation of the result (for example, was the result what you expected? Was the result surprising? Why/why not?)
All the graphs must be labeled properly and show all the scales.
For all problems, use initial value of V = 0; learning rate β = 0.1 when the US is present or β = 0.05 otherwise ; US strength λ = 1 when the US is present unless otherwise specified or λ = 0 when the US is NOT present. .
Problem 1: Conditioned inhibition (1 points)
- Two alternating trial types: trial 1: CS1+; trial 2: CS1/CS2-; 100 trials total
- Plot both CS1 and CS2 in the same graph
- Saliency: CS1:0.7; CS2: 0.7
Problem 2: Overexpectation (2 points)
- Stage 1. group 1: CS1+, group 2: CS1+, 100 trials
- Stage 2. group 1: CS2+, group 2: CS2 +, 100 trials
- Stage 3. group 1: CS1/CS2+, group 2: Sit, 100 trials
- Stage 4. group 1: CS1/CS2-, group 2: CS1/CS2-, 10 trials
- Plot stage 1~4. Plot both individual and combined CSs for stage 3~4.
- Saliency: CS1: 0.7 CS2: 0.7
Problem 3: Second-order conditioning (1 points)
- CS1+, 100 trials
- CS1/CS2-, 25 trials
- CS2-, 10 trials
- Saliency: CS1=CS2: 0.7
Problem 4: Sensory preconditioning (2 points)
- Stage 1: CS1/CS2-, 100 trials
- Stage 2: CS2+, 100 trials
- Stage 3: CS1-, 10 trials
- Saliency: CS1: 0.7 CS2: 0.3
Problem 5: Supernormal conditioning (2 points)
- Stage 1. group 1: Two alternating trial types: trial 1: CS1+; trial 2: CS1/CS2-, group 2: Sit control, 200 trials total
- Stage 2. group 1: CS1/CS2+, group 2: CS1/CS2+
- Stage 3. CS1-, 10 trials for both groups
- Stage 4. CS2-, 10 trials for both groups
- Saliency: CS1=CS2: 0.7
Problem 6: Excitatory conditioning without the US (2 points)
- Stage 1. group 1: Two alternating trial types: trial 1: CS1+; trial 2: CS1/CS2-, group 2: Sit control, 200 trials total
- Stage 2. group 1: CS1/CS2-, group 2: CS1/CS2-
- Stage 3. CS1-, 10 trials for both groups
- Stage 4. CS2-, 10 trials for both groups
- Saliency: CS1=CS2: 0.7
Optional question (3 points):
Simulate a conditioning case where the US is presented sometimes in the absence and sometimes in the presence of the CS, by assuming the context as a CS using the R-W model. You can use your own parameters within the range specified by the R-W model. Using several different sets will give you a nice set of data to plot in a graph. You can also try different sets of p(US/no CS) and p(US/CS). What did you find from the simulation?
Sample Solution