Closed IshaanW closed 5 years ago
Hi! Something is definitely going wrong. log probabilities should be negative, by definition. (log of a number between zero and one (non-inclusive), should be a negative real number.
These are the values I'm getting for profit_bar for each N.
I'm a little confused by what they mean - is the value calculated using equation (8) total profits for the N firms in a market or is it the market entry threshold. My numbers don't seem to follow the assumption below:
Is there an additional step to take like dividing by the number of firms in the market or finding marginal profits (i.e., subtracting pi_(n-1) from pi_n)?
Never mind, I figured out the fundamental flaw in my understanding of the paper!
I'm working on Q1 and am generating lots of NaN values for the log-probabilities because of near-zero and negative probabilities (see the log-probabilities array in the attached picture). I'm wondering if this indicates a problem with my earlier code or if I just have to deal with these values in a similar way to the -inf values generated by np.log