• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

need math help for new program logic

 
Rancher
Posts: 163
5
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello!
I want to write a programm which check this symptoms to calculate the probability of corona- infection.
Symptom%
Fever87.9%
Dry cough67.7%
Fatigue38.1%
Sputum production33.4%
......
Diarrhoea03.7%
Haemoptysis00.9%


How it would be correct to calculate it?
Thank you in advance!
photo_2020-03-15_20-47-15.jpg
[Thumbnail for photo_2020-03-15_20-47-15.jpg]
 
Mike Savvy
Rancher
Posts: 163
5
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Would such calculation be correct? I think not because if I have only fever and nothing other it means directly 88% what is not looks like truth
corona.png
[Thumbnail for corona.png]
 
Sheriff
Posts: 28326
96
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is that supposed to mean "Probability of CV given Fever is 87.9%" and "Probability of CV given Fatigue is 38.1%"? Those are conditional probabilities, and there are rules for computing with those probabilities.

But you seem to be disputing the numbers themselves. Which is fine, "Garbage In, Garbage Out" as we say, but if you dispute them then there's no point calculating with them.
 
Marshal
Posts: 79965
396
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Mike Savvy wrote:Would such calculation be correct? I think not . . .

No. If 88% of people with Coronavirus have a fever, that doesn't mean that 88% of people with a fever have Coronavirus.
 
Bartender
Posts: 2911
150
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:... No. If 88% of people with Coronavirus have a fever, that doesn't mean that 88% of people with a fever have Coronavirus.

This falls under the fallacy: I love y therefore y loves me ;)

Also unrelated to the topic ... I'm kind of skeptical as how an excel sheet with a few binary fields can diagnose a disease. Personally, percentage is not a good metric to tell me if I have a disease or not.
 
Paul Clapham
Sheriff
Posts: 28326
96
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:If 88% of people with Coronavirus have a fever, that doesn't mean that 88% of people with a fever have Coronavirus.



Exactly. And there's no math which will tell you what is the right number instead of 88%.
 
Bartender
Posts: 5561
213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you also want to answer questions like: this person has Fever AND is also coughing, what chance he has to have Corona's disease?
 
Campbell Ritchie
Marshal
Posts: 79965
396
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paul Clapham wrote:. . . there's no math which will tell you what is the right number instead of 88%.

There might be such figures available, but if Coronavirus cases are multiplying, those percentages will change from day to day.
 
And will you succeed? Yes you will indeed! (98 and 3/4 % guaranteed) - Seuss. tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic