944,004 Members | Top Members by Rank

Ad:
Sep 30th, 2009
1

Bug in poll

Expand Post »
Attachment taken from here.

47.83%
34.78%
47.83%
21.74%
8.70%
21.74%
13.04%
4.35%
0%
34.78%
---------- +
234.31 %

Which is more then 100%

The problem is that the percentage is calculated from the total voters and the votes. In this example there are 23 voters, and for example 11 votes for C++, which is indeed 47.83. But it's fails to take into account that 1 voter can make more then 1 vote.
Attached Thumbnails
Click image for larger version

Name:	d.JPG
Views:	35
Size:	32.8 KB
ID:	11866  
Last edited by Nick Evan; Sep 30th, 2009 at 11:47 am.
Similar Threads
Moderator
Featured Poster
Reputation Points: 4142
Solved Threads: 394
Industrious Poster
Nick Evan is offline Offline
4,132 posts
since Oct 2006
Oct 3rd, 2009
0

Re: Bug in poll

This is the correct way to tally votes when someone can vote more than once. Regardless of whether someone votes more than once, 47% of all those polled use Java. 47% of all those polled use C++. Obviously that means that there are some people who use Java AND C++. But when polls allow for more than one answer, the nature of statistics don't require it to equal 100% because it's not as if you're breaking a pie into fractions and everyone belongs just in one of those pieces.
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
Oct 3rd, 2009
0

Re: Bug in poll

Click to Expand / Collapse  Quote originally posted by cscgal ...
the nature of statistics don't require it to equal 100%
That's a weird statement. Because the '%' symbol means percent. As in "per cent" Which is Latin for "x per 100".


The total in this poll is 234.31 per 100....
Last edited by Nick Evan; Oct 3rd, 2009 at 11:32 pm.
Moderator
Featured Poster
Reputation Points: 4142
Solved Threads: 394
Industrious Poster
Nick Evan is offline Offline
4,132 posts
since Oct 2006
Oct 3rd, 2009
3

Re: Bug in poll

Let me try to explain it a different way. Let's say that a bunch of people are given a survey and have to choose whether they eat apples, bananas, or pears.

Tommy likes apples and bananas.
Susie likes apples.
Johnny likes pears and bananas.

Two of the three people who voted like apples. Two-thirds of the people who voted like apples. 66% like apples.

Two of the three people who voted like bananas. Two-thirds of the people who voted like bananas. 66% like bananas.

One of the three people who voted like pears. One-third of the people who voted like pears. 33% like pears.

Now let's say someone comes along and asks how popular apples are. You can say that of the people you surveyed, 66% of them eat apples. And now someone else comes along and asks how popular banans are. You can say that of the people you surveyed, 66% of them eat bananas.

But 66% + 66% + 33% > 100%
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
Oct 4th, 2009
-1

Re: Bug in poll

Nice explanation Dani.
Reputation Points: 357
Solved Threads: 52
Practically a Posting Shark
kaninelupus is offline Offline
844 posts
since Jul 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in DaniWeb Community Feedback Forum Timeline: PM screen rendered messy with FF
Next Thread in DaniWeb Community Feedback Forum Timeline: New Rep





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC