For integers 0 to 100, I am trying to write a series of constraints that define a bell curve shape centered around 50 and mass =0.5.
Informally, I used my own logic to come up with a set of constraints to make this happen:
- Suppose I have variables p0, p1, p2, p3 ....p100.
- I know that p0+ p1+p2+p3+....+p100 = 1
- I know that p50 = 0.5
- I know that (p49 = p51) > (p48 = p52) > (p47 = p53), etc.
- I know that any given p0, p1,p2,p3..p100 must be between 0 and 1.
- And pi - pj = pj - pk where i >j >k and i-j = 1 and j-k = 1
My Problem: I am trying to solve for the values of p1 to p100.
I think that some form of Linear/Integer Programming can be used to solve this problem, but I am not sure how to begin.
I wrote the all the constraints in mathematical form:
$$ \text{Constraint 1:}\ \quad \sum_{i=0}^{100} p_i = 1 $$
$$\text{Constraint 2:}\ \quad p_{50} = 0.5$$
$$\text{Constraint 3:}\quad p_{50-i} = p_{50+i} > p_{50-2i} = p_{50+2i}\ \quad\forall i \in \{0, 1, 2, \ldots, 25\}]$$
$$ \text{Constraint 4:}\quad \quad 0 < p_i \leq 0.5 \quad \forall i \in \{0, 1, 2, \ldots, 49,51, \ldots, 100\} $$
$$ \text{Constraint 5:}\quad p_i - p_j = p_j - p_k \quad \forall i, j, k\ \quad \text{when:} \quad i >j > k \quad \text{and} \quad i-j = 1 \quad \text{and} \quad j-k=1 $$
But from here, I am not sure how to set up a system of equations to solve these relationships. I also do not know if I have correctly defined the constraints for this problem.
Can someone please show me how to do this correctly?
Thanks!
- updated version of question : Calculating the Probabilities of a 100-Sided "Weighted" Dice