Skip to main content

mnl_probabilities

Function mnl_probabilities 

Source
pub fn mnl_probabilities(costs: &[f64], theta: f64) -> Vec<f64>
Expand description

Compute MNL choice probabilities for a set of costs.

Returns a vector of probabilities summing to 1.0.

ยงArguments

  • costs - generalized cost of each alternative
  • theta - scale parameter