R Tutorial: Using choice models to make decisions

Learn how multinomial logit models predict which products consumers will choose. A sports car designer uses the model to test concepts: a manual two-seater gets 17.7% predicted share, but switching to automatic transmission jumps it to 65.3%. The PredictMNL function in R makes these forecasts fast.
Chapters
The real power of a choice model.
Is that it allows us to make predictions about what people will choose when.
Presented with a new set of options. Market share is the percentage of people who choose a particular product from the.
Set that is available in the market. We can predict market shares for a set of products using the choice model.
For example, suppose you're designing a sports car and you know that you will have two major competitors. We can use our choice model to.
Make a prediction about how likely people would be to choose our car versus the competitors.
This output here shows the share predictions from our model which are in the.
First column labeled Share.
These shares are computed from the model.
Based on the product features which are.
Described in the other columns.
Suppose you were considering developing the two seater manual transmission car in the first row. That's the car I would choose.
However, you can see that the predicted.
Share for that car is only 17.7%. If you're planning to make a car like that, this is not great news. And based on what we saw before in the coefficients, you might want to think about lowering your price or switching to an automatic transmission.
And we could make these predictions with the model.
When we change the design of the first sports car, it gets 65.3% share.
That's a lot better.
These market share predictions are incredibly useful to product designers.
The product designer can use the model.
To understand how her design choices will affect share.
This share can be compared to the.
Costs of producing different products to figure out which design is most profitable. You may have used the predict function.
To make predictions from a linear regression model before.
There's a similar function for MLOGIT models.
Also called predict, but it has a.
Few features I don't like. So I wrote my own function for prediction from a multinomial logit model. It's called PredictMNL. The first input to PredictMNL is the mlojit model object that we get when we call mlojit.
The second input is a dataframe that.
Describes the new choice alternatives that you want to predict share for.
You can think of this products data.
Frame as describing the sports cars that are available in some hypothetical country somewhere.
In chapter three, we'll look at how this prediction function works internally and this.
Will give you a better understanding of how a multinomial logit model works.
But for right now, let's just use.
The function and get a feel for what it does.
Let's predict some shares for sports cars.
More from Richie

#359 My Best Friend is AI with Valerie Tiberius, Professor of Philosophy at University of Minnesota

How AI Agents Will Work While You Sleep | Ruslan Salakhutdinov, Professor at Carnegie Mellon

#358 How AI Agents Will Work While You Sleep | Ruslan Salakhutdinov, Professor at Carnegie Mellon







