Suppose we have a random variables with values from 1 to 1000 and we have to assign exponential increasing values to them (1 has low probability and 1000 has highest but increase in probabilities is exponential). How can i write equation for this.
Second how can i randomly pick any one of the a random variables with chances that highest probability random variable is most likely to be returned.
Let me rephrase the problem, It is same as in https://stackoverflow.com/questions/10942318/random-numbers-based-on-a-probability only difference i explain here
considering S is random number generated to map to the numbers following exponential growth rate (exponential probability increase) for n=1 S=1 or 2 for n=2 S=3 or 4 or 5 or 6 (S=2pow(n) ) and so. How i can solve now with arithmetic series formula ( i think it is must ) as shown in link above for exponential distribution to get n .
For some $0 \le \alpha \le 1$, You can assign a probability of $\alpha$ to 1000, $\alpha^2$ to 999, ..., $\alpha^{1000}$ to 1. To make this a legitimate probability distribution (a probability mass function, strictly speaking), the probabilities must add up to 1. This implies:
$\sum_{n=1}^{1000} \alpha^n = \frac{\alpha(1-\alpha^{1000})}{1-\alpha} = 1$. You can solve numerically in a program like MATLAB or Python to calculate the value of $\alpha$ which satisfied this equation. Since the summation converges to $\frac{1}{1-\alpha}$, your answer will be very close to $\alpha = 0.5$.