-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support discrete types #21
Comments
adding discrete types would be helpful, thus allowing for a bimodal distribution. Thanks for all the work you have put into this. |
Thanks. This seems like a popular request. It's high up on my to-do list -- I'll update this thread when I get around to it. |
Do you have any updates on this? I'm interested in testing a simulation with a two-point distribution for the taste distribution, but I'm unsure how to modify the code accordingly. Any guidance or updates would be much appreciated. |
No updates yet. The challenge is that implementing this in a flexible way would require a lot of additions. For example:
I'm not sure if the above is the best way of doing this, but it's one thought. If you're interested in implementing something like this, the place to start is |
As Jeff describes, the general case (unknown types, unknown weights) finite mixture is pretty hard to implement. For a specific case with two types, you could imagine a demographic variable called is "business_travelers" that is {0,1}. If you happened to know the fraction of that type estimation would be straightforward with the existing PyBLP implementation. If you had any micro moments that were useful in pinning down either the fraction of types or the coefficients corresponding to each type that would certainly make life easier. |
Thank you for your answers. Indeed, I was looking to estimate the case when the consumer can be only of two types (A and B). At the beginning, I will not use demographic data, and I will simulate the market data, so I am free to define the consumer's distribution (I think). I have a question relating to the introduced parameter, tau. I thought that tau would represent the fraction of the two-point distribution, like sigma represents the variability of consumers' tastes. But you mention that tau would act as pi and rho, so I am no longer sure about that. Thank you again for your time. |
Right, I mentioned that tau will act a lot like pi and rho, in the sense that it's a nonlinear parameter (like pi, and sigma too), and doesn't just show up in utility (like rho). It won't act the same as them -- that's just a pointer for where to look in the code to see what you'd have to modify to add something like tau. |
Like in the original Berry, Carnall, and Spiller (1996). This would require optimization over the integration weights (i.e., type shares).
The text was updated successfully, but these errors were encountered: