
## Appendix A Implementation Algorithm

The model above described has been implemented with Matlab R2007a. For sakes of space, the codes and the temporal series employed for the model fitting are available by directly contacting the authors.

## References

[1] Abelson, R.P., Psychological status of the script concept, American Psychologist, 36, 715-729 (1981).

[2] Schank, R.C. and Abelson, R.P., Scripts, plans, goals and understanding.

Lawrence Erlbaum Associates Inc., Hillsdale, N.J. (1977).

[3] Piaget, J., Piaget's theory. In Carmichael's manual of child psychology, Vol. 1.

J. Mussen (Ed.), New York: Basic Books (1970).

[4] Schank, R.C. Conceptual dependency: a theory of natural language understanding, Cognitive Psychology, 3, 552-631 (1972).

[5] Wason, P.C., Reasoning. In New horizons in psychology. Foss, B. M. (Ed.),
Penguin, Harmondsworth (1966).

[6] Jhonson-Laird, P.N., Models of deduction. In Reasoning: representation and process in childreen and adults. Falmagne, R.J. (Ed.), Lawrence Erlbaum Associates Inc., Hillsdale, N.J. (1975).

[7] Jhonson-Laird, P.N., Mental models. Cambridge University Press, Cambridge
(1983).

[8] Jhonson-Laird, P.N. and Byrne, R.M.J., Deduction. Lawrence Erlbaum Associates Ltd., London (1990).

[9] McCulloch, W. and Pitts, W., A logical calculus of the ideas immanent in nervous activity, Bulletin of Mathematical Biophysics, 7, 115-133 (1943).

[10] Tversky, A. and Kahneman, D., Judgment under Uncertainty: **Heuristics and**
Biases, Science, New Series, 185, 4157, 1124-1131 (1974).

[11] Bechara, A., Damasio, A. R., Damasio, H., and Anderson, S. W., Insensitivity to future consequences following damage to human prefrontal cortex, ,
Cognition, 50, 7-15 (1994).

[12] Bechara A., Damasio H., Tranel D., and Damasio A.R., Deciding advantageously before knowing the advantageous strategy, Science, 275, 1293-1295
(1997).

[13] Bechara, A., Damasio, H., Tranel, D., and Damasio, A.R., The Iowa Gambling Task and the somatic marker hypothesis: some questions and answers, Trends in Cognitive Sciences, 9, 4, 159-162 (2005).

[14] http://www.breezetree.com/downloads/flow-chart-symbols.pdf