The probability distribution has an unknown value k. The sum of all probabilities must equal 1.
P(X=0)+P(X=1)+P(X=2)+P(X=3)+P(X=4)+P(X=5)+P(X=6)+P(X=7)=1
0+k+2k+2k+3k+k2+2k2+7k2+k=1
Combining like terms:
10k2+9k=1
10k2+9k−1=0
Using the quadratic formula where a=10, b=9, c=−1:
k=2(10)−9±81−4(10)(−1)
k=20−9±81+40
k=20−9±121
k=20−9±11
This gives k=202=101 or k=20−20=−1
Since probability cannot be negative, k=101.
The notation 4<X<7 means X is strictly between 4 and 7, so X can only be 5 or 6.
P(4<X<7)=P(X=5)+P(X=6)
P(4<X<7)=k2+2k2
P(4<X<7)=3k2
P(4<X<7)=3×(101)2
P(4<X<7)=3×1001
P(4<X<7)=1003