A practical introduction to Bayesian learning, uncertainty and computational accounts of behaviour.
Start with what an agent observes, what it expects and what changes after an outcome. The mathematics becomes useful when each quantity answers a clear question.
UPDATING A BELIEF
What changes when evidence arrives?
A prior describes uncertainty before an observation. A likelihood describes how probable that observation would be under different parameter values. Their combination determines a posterior.
For a concrete example, suppose binary outcomes are independent and share an unknown, constant success probability θ. A Beta prior is described by positive parameters α and β. After s successes and f failures, the posterior is another Beta distribution.
Illustrative example: a uniform Beta(1, 1) prior and eight successes with two failures give Beta(9, 3), with posterior mean 0.75. These counts are an educational example, not participant data.
The explorer lets you change these assumptions and counts. It does not infer a psychological diagnosis or the probability that a theory is true.
In a Gaussian model, precision is 1 divided by variance. A narrowly distributed signal has high precision; a broadly distributed signal has low precision. When Gaussian information sources are combined, their relative precision determines their influence.
In cognitive modelling, this provides a language for specifying the assumed reliability of a signal. “High social precision” is therefore a parameterised assumption within a model, not a direct reading of a person’s psychological state.
Distinguishing the mathematical quantity from its psychological interpretation prevents a descriptive metaphor from being treated as a measurement.
A DIFFERENCE BETWEEN EXPECTATION AND OUTCOME
Prediction errors and learning rules
A prediction error is the difference between an observed outcome and the model’s prediction. A simple learning rule changes the expected value in proportion to this error.
That rule assumes a particular functional form. A researcher can ask whether the update is asymmetric for positive and negative errors, whether it saturates, or whether its sensitivity changes with uncertainty.
Those alternatives must be compared fairly. A flexible rule may fit noise, and a parameter called “learning rate” may compensate for a misspecified choice model. The name alone does not establish the mechanism.
INDIVIDUALS AND SHARED STRUCTURE
Why use a hierarchical model?
Estimating each participant separately can leave substantial uncertainty when observations are limited. A hierarchical population model relates individual parameters to a shared distribution. Estimates can then be partially pooled rather than being completely separate or forced to be identical.
Illustrative population modelθᵢ ∼ Normal(μ, τ²)
This equation is a generic example, not the specification of the full KanCog model. Here μ describes a population centre and τ describes variation between individuals. Pooling depends on assumptions about which participants can meaningfully share information.
A different kind of hierarchy occurs within a cognitive model: lower levels may represent immediate signals while higher levels represent context or uncertainty. Statistical pooling across people and hierarchical processing within an agent should not be conflated.
LEARNING THE SHAPE OF A RELATIONSHIP
What is a KAN?
A Kolmogorov–Arnold network represents a mapping through combinations of learned one-dimensional functions. In a spline-based KAN, a connection can carry a fitted curve rather than only a scalar weight.
That can make the shape of a nonlinear relationship easier to inspect. In behavioural research, a KAN-inspired function could be used inside an explicit learning process, rather than only as a predictor mapping inputs directly to an outcome.
The important distinction is between a flexible representation and an identified explanation. Different functions may yield similar predictions over the observed range. A simple symbolic approximation may be useful, but it is not automatically the true rule used by a person.
An observed score is not the latent state itself. A state-space model distinguishes a process that evolves over time from a measurement model that relates that process to observations. An apparent short-lived fluctuation may therefore reflect process variation, measurement noise or both.
Likewise, a relationship between people need not describe change within one person. A longitudinal analysis should state whether its target is a population difference, an individual trajectory or a future observation.
Scoring conventions also matter. A raw sum, a rescaled total and a category label are different representations. Bounds, missing responses, item coding and the intended interpretation should be specified before fitting a model.
Generate explicitly synthetic observations from a known model and examine whether estimation recovers the relevant quantities. This checks performance under the specified generator.
Can different mechanisms be distinguished?
If alternative parameter settings generate nearly identical observations, the proposed interpretation may not be identifiable from that task.
Does the model predict held-out observations?
Keep future observations or whole participants out of fitting, depending on the intended prediction. Repeated observations from one person are not independent participants.
Does it fail in an informative way?
Check systematic mismatches, uncertainty and sensitivity to assumptions. A negative result can show that the model or study design needs revision.
Questions worth keeping open
Does a good fit mean the explanation is correct?
No. Distinct mechanisms can produce similar observations. Predictive checks, comparisons, task design and independent evidence help assess an explanation.
Does a population estimate describe one person?
Not automatically. Individual estimates depend on their observations, the pooling assumptions and the uncertainty remaining after estimation.
Is a simulation evidence about patients?
A simulation is evidence about the consequences of specified assumptions. An empirical claim about people requires observations from an appropriate study.
Can these tools guide treatment?
The material on this site is intended for research and learning. No diagnostic or treatment capability has been validated or offered here.