אי דיוק באחוזים בסקרים!

סיכום מבוסס בינה מלאכותית

gassim reports an issue with poll percentage calculations in their forum. They observed that with five options and only three votes, the percentages displayed were ‘34%’, ‘33%’, ‘33%’, 0, 0, which seems incorrect. NateDhaliwal explains that this happens because 100% cannot be evenly divided by 3, resulting in two 33% and one 34%. gassim acknowledges the explanation but expresses concern about the implications for competition polls where a winner needs to be determined.

Hi there!

We ran a poll in our forum for members to vote on the meetup topic, and I noticed that the percentage isn’t calculated correctly.

There are five options, and only three voted, but the percentages appear as ‘34%’, ‘33%’, ‘33%’, 0,0. Why does one option have 34% when it has just one voter like the other two options?

Here’s a screenshot:

image

I don’t know if we can reproduce this as it needs to be limited to one voter per option, but here’s the code:

[poll type="regular" results="always" public="true" name="lmis-poll-1" chartType="bar" dynamic="true"]
# **Which LMIS topic are you most interested in?**

* The batch/expiry Management Feature that will be Integrated in the RTS (Real Time Stock) app (Demo from Comoros implementation)
* Reviewing the newly published WHO NTD guidance and DHIS2 LMIS demo instances
* Workflow Integration with a central eLMIS
* Preview of the temperature monitoring integration, linked to the Cold Chain Equipment tool
* I will reply with my suggestion
[/poll]
Which LMIS topic are you most interested in?
  • The batch/expiry Management Feature that will be Integrated in the RTS (Real Time Stock) app (Demo from Comoros implementation)
  • Reviewing the newly published WHO NTD guidance and DHIS2 LMIS demo instances
  • Workflow Integration with a central eLMIS
  • Preview of the temperature monitoring integration, linked to the Cold Chain Equipment tool
  • I will reply with my suggestion
0 voters

I think the most likely reason this could be happening is that 100% cannot be divided by 3, and will give 33.333333333…%. So it has 2 33%s (66% altogether), and 34% as the last one.

Also yes, it is here on Meta too.

2 לייקים

תודה! כן, אני מבין את זה, אבל מה אם זו הייתה הצבעת תחרות ומישהו היה צריך להיות מנצח (או תיקו), אבל כאן במקום תיקו, מישהו היה נבחר באופן אקראי כמנצח.

לייק 1