I'm writing a software algorithm at the moment which compares survey answers.
Questions have $5$ possible answers, and a respondent could choose between 1 and 5 answers.
What I'd like to do, for each respondent, for each question, is calculate how strongly they feel about their answer.
I propose to do this by counting the number of answers they selected.
For example, suppose the question was:
Which of these colours do you like?
And the possible answers were:
a) Blue b) Red c) Green d) Orange e) Purple
Then someone who answers only b), feels more strongly about their answer than someone who selected all 5.
What I'm having trouble with, is how to account for the different numbers of possible answers. If a question has a yes or no answer, and the respondent only chooses one answer, we want to consider this as being less significant than if they only choose one answer on a question with more possible options.
So the more options to choose from, the higher the importance of each answer selected.
So far, I've come up with this:
$$i = \text{max} - (\frac{g}{n} * \text{max})$$
Where:
$i$ (importance)
max (maximum importance %) $= 100$
$p$ (possible answers)
$g$ (given answers)
Can anybody suggest how I could approach this problem differently or improve the formula?
Thanks!