fit_lapse_logistic_independent#
- fit_lapse_logistic_independent(x, y, initial_params=None)[source]#
Fit a lapse logistic model with independent lapses for left and right choices.
- Parameters:
x (np.array) – Independent variable (e.g., stimulus intensity).
y (np.array) – Dependent variable (e.g., choice probabilities).
initial_params (list, optional) – Initial guess for the parameters [lapse_left, lapse_right, beta, x0].
- Returns:
Fitted parameters and the minimized negative log-likelihood.
- Return type:
tuple