If there's a number series as so: 11.5, 6.7, 3.2, and 5.11
How does one convert these numbers into probabilities so that the sum of the resultant probabilities is 1?
Thank you.
What if the number series also includes negative numbers: -1.2, -100.34, 3.67, and 2.1 ?
Yes, they are weights associated with 4 possible classes for an instance.
ok. Here's my solution. Feel free to suggest improvements if any.
1) shift the range of numbers to be between 1 to any n(I choose 100) by method.
2) use the solution listed in answers.
The reason for choosing the lower bound as 1 in step 1) is to not loose the min value after applying the range conversion formula.
Solved Example:
Say there 2 instances that can take on 2 possible class values with weights as shown below.
Instance1: -11.0 -2.0
Instance2: 4.0 52.0
old_max = 52.0, old_min = -11.0, new_max = 100, and new_min = 1
After applying step1), the weights are now in range 1 to 100.
Instance1: 1 15.1
Instance2: 24.5 100
On applying step2), the following probabilities are obtained.
Instance1: 0.0708 0.937
Instance2: 0.19 0.803