In the formula:
https://analystprep.com/cfa-level-1-exam/equity/price-return-total-return-index/
ni - the number of units of constituent security held in the index portfolio
Is that just the total number of issued shares for security i? So you’re effectively calculating the market cap for the security? Is this number ever different to the total number of issued shares in the context of indices?