Theoretical Models¶
kriterion.models
¶
Model
¶
Model(data: ROCData)
Bases: ABC
Source code in src/kriterion/models.py
compute_expected
abstractmethod
¶
Expected cumulative proportions under the current parameter values.
All subclasses must implement this method.
| PARAMETER | DESCRIPTION |
|---|---|
smooth
|
If True, evaluate over a dense criterion grid for plotting rather than at the observed rating boundaries, by default False.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
tuple[ndarray, ndarray]
|
|
Source code in src/kriterion/models.py
roc
¶
Smooth ROC curve for plotting.
Evaluates the model over a dense criterion grid rather than the observed rating boundaries.
| RETURNS | DESCRIPTION |
|---|---|
tuple[ndarray, ndarray]
|
|
Source code in src/kriterion/models.py
ContinuousModel
¶
ContinuousModel(data: ROCData)
Bases: Model
Base class for models with continuous criterion parameters.
Extends Model with a set of free criterion locations \(c_k\).
| ATTRIBUTE | DESCRIPTION |
|---|---|
criteria |
Criterion locations \(c_k\), one per rating boundary, initialised to a uniform grid over \([-1.5, 1.5]\).
TYPE:
|
Source code in src/kriterion/models.py
compute_expected
abstractmethod
¶
Expected cumulative proportions under the current parameter values.
All subclasses must implement this method.
| PARAMETER | DESCRIPTION |
|---|---|
smooth
|
If True, evaluate over a dense criterion grid for plotting rather than at the observed rating boundaries, by default False.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
tuple[ndarray, ndarray]
|
|
Source code in src/kriterion/models.py
roc
¶
Smooth ROC curve for plotting.
Evaluates the model over a dense criterion grid rather than the observed rating boundaries.
| RETURNS | DESCRIPTION |
|---|---|
tuple[ndarray, ndarray]
|
|
Source code in src/kriterion/models.py
HighThreshold
¶
HighThreshold(data: ROCData)
Bases: Model
High-threshold detection model.
Signal responses are modelled as a mix of true detection with probability \(R\) and guessing with probability \((1-R)G\):
| ATTRIBUTE | DESCRIPTION |
|---|---|
R |
Detection probability, \(0 \leq R \leq 1\).
TYPE:
|
Source code in src/kriterion/models.py
roc
¶
Smooth ROC curve for plotting.
Evaluates the model over a dense criterion grid rather than the observed rating boundaries.
| RETURNS | DESCRIPTION |
|---|---|
tuple[ndarray, ndarray]
|
|
Source code in src/kriterion/models.py
SignalDetection
¶
SignalDetection(data: ROCData)
Bases: ContinuousModel
Equal-variance signal detection model1.
Signal and noise are modelled as Gaussian distributions with equal variance, separated by sensitivity \(d'\):
where \(\Phi\) is the standard normal CDF and \(c_k\) are the criterion locations.
| ATTRIBUTE | DESCRIPTION |
|---|---|
d |
Sensitivity \(d'\).
TYPE:
|
criteria |
Criterion locations \(c_k\), one per rating boundary.
TYPE:
|
Source code in src/kriterion/models.py
roc
¶
Smooth ROC curve for plotting.
Evaluates the model over a dense criterion grid rather than the observed rating boundaries.
| RETURNS | DESCRIPTION |
|---|---|
tuple[ndarray, ndarray]
|
|
Source code in src/kriterion/models.py
UnequalSignalDetection
¶
UnequalSignalDetection(data: ROCData)
Bases: ContinuousModel
Unequal-variance signal detection model.
Extends the equal-variance model by allowing the signal distribution to have standard deviation \(\sigma_s \neq 1\):
where \(\Phi\) is the standard normal CDF and \(c_k\) are the criterion locations.
| ATTRIBUTE | DESCRIPTION |
|---|---|
d |
Sensitivity \(d'\).
TYPE:
|
signal_sd |
Standard deviation \(\sigma_s\) of the signal distribution.
TYPE:
|
criteria |
Criterion locations \(c_k\), one per rating boundary.
TYPE:
|
Source code in src/kriterion/models.py
roc
¶
Smooth ROC curve for plotting.
Evaluates the model over a dense criterion grid rather than the observed rating boundaries.
| RETURNS | DESCRIPTION |
|---|---|
tuple[ndarray, ndarray]
|
|
Source code in src/kriterion/models.py
DualProcess
¶
DualProcess(data: ROCData)
Bases: ContinuousModel
Dual-process signal detection model1.
Combines continuous Gaussian discrimination with a high-threshold recollection component of probability \(R\):
where \(\Phi\) is the standard normal CDF and \(c_k\) are the criterion locations .
| ATTRIBUTE | DESCRIPTION |
|---|---|
d |
Continuous sensitivity \(d'\).
TYPE:
|
R |
Recollection probability, \(0 \leq R \leq 1\).
TYPE:
|
criteria |
Criterion locations \(c_k\), one per rating boundary.
TYPE:
|
Source code in src/kriterion/models.py
roc
¶
Smooth ROC curve for plotting.
Evaluates the model over a dense criterion grid rather than the observed rating boundaries.
| RETURNS | DESCRIPTION |
|---|---|
tuple[ndarray, ndarray]
|
|