army1987 comments on Less Wrong Polls in Comments - Less Wrong
You are viewing a comment permalink. View the original post to see all comments and the full post content.
You are viewing a comment permalink. View the original post to see all comments and the full post content.
Comments (302)
A function to automatically compute the averages should be implemented.
awk is made for this, but it took me a few minutes to whip this up in java. I figured if numeric polls are used in the future, this can be used as a code-base. The indentation isn't coming through, but any IDE will fix that for you.
This doesn't work on arbitrary numeric entry polls, but for those, you can gather the statistics as you go along, putting it in the GATHER loop
EDITED to fix serious bug.
usage: paste this into PollStat.java, compile it. then run
So far, the winners are endoself and army1987. I wasn't far off.
~~~~~~~~~
Not really -- if you check out the wiki page this type of poll is meant for discrete options, not for numbers or probabilities. For probabilities the "poll:probability" type should be used, which does automatically compute averages and medians.