BayesianSamplerModel.BSM — TypeBSM{T<:Real} <: AbstractBSMA model object for the Bayesian sampler.
Parameters
θs::AbstractArray{T,N}: an array of true subjective probabilities. The array can be of any size and dimension.β::T: parameter for symmetrical beta priorn::Int: number of samples for marginal and conditional eventsn′::Int: number of samples for conjunctions and disjunctions where n′ ≤ n
Constructors
BSM(Θs, β, n, n′)
BSM(; Θs, β, n, n′)Example
using BayesianSamplerModel
Θs = [.25 .15; .3 .3]
model = BSM(; Θs, β=1.0, n=20, n′=10)
p_a = compute_marginal(model, sum(Θs[1,:]))
p_ab = compute_joint(model, Θs[1])
p_agb = compute_conditional(model, sum(Θs[1]) / sum(Θs[:,1]))References
Zhu, J. Q., Sanborn, A. N., & Chater, N. (2020). The Bayesian sampler: Generic Bayesian inference causes incoherence in human probability judgments. Psychological Review, 127(5), 719.
BayesianSamplerModel.compute_conditional — Methodcompute_conditional(m::AbstractBSM, θ)Compute the mean conditional posterior probability judgment for the Bayesian Sampler Model.
Arguments
m::AbstractBSM: an object for the Bayesian Sampler Modelθ: the true subjective probability
BayesianSamplerModel.compute_joint — Methodcompute_joint(m::AbstractBSM, θ)Compute the mean marginal posterior probability judgment for the Bayesian Sampler Model.
Arguments
m::AbstractBSM: an object for the Bayesian Sampler Modelθ: the true subjective probability
BayesianSamplerModel.compute_marginal — Methodcompute_marginal(m::AbstractBSM, θ)Compute the mean marginal posterior probability judgment for the Bayesian Sampler Model.
Arguments
m::AbstractBSM: an object for the Bayesian Sampler Modelθ: the true subjective probability