{ localUrl: '../page/bayes_frequency_diagram_diseasitis.html', arbitalUrl: 'https://arbital.com/p/bayes_frequency_diagram_diseasitis', rawJsonUrl: '../raw/55z.json', likeableId: '3039', likeableType: 'page', myLikeValue: '0', likeCount: '26', dislikeCount: '0', likeScore: '26', individualLikes: [ 'EdwinEvans', 'NateSoares', 'GlennField', 'PiotrOrszulak', 'HassanShamim', 'SzymonWilczyski', 'GiuseppeCazzetta', 'RobinsonRodrguez', 'RahmadDawood', 'NajuMancheril', 'AdamZerner', 'JohnMcConnell', 'CameronSmith', 'IkeK', '8kt', 'VictorNeves', 'NadeemMohsin', 'PaulCichonski', 'AltoClef', 'MarioPinto', 'ShantanuDutta', 'ViraatAryabumi', 'PierreBourgault', 'GregvandeKrol', 'GideonTorode', 'Harshag' ], pageId: 'bayes_frequency_diagram_diseasitis', edit: '23', editSummary: '', prevEdit: '20', currentEdit: '23', wasPublished: 'true', type: 'wiki', title: 'Frequency diagrams: A first look at Bayes', clickbait: 'The most straightforward visualization of Bayes' rule.', textLength: '4572', alias: 'bayes_frequency_diagram_diseasitis', externalUrl: '', sortChildrenBy: 'likes', hasVote: 'false', voteType: '', votesAnonymous: 'false', editCreatorId: 'EricRogstad', editCreatedAt: '2016-10-26 01:46:18', pageCreatorId: 'NateSoares', pageCreatedAt: '2016-07-06 22:14:24', seeDomainId: '0', editDomainId: 'AlexeiAndreev', submitToDomainId: '0', isAutosave: 'false', isSnapshot: 'false', isLiveEdit: 'true', isMinorEdit: 'false', indirectTeacher: 'false', todoCount: '0', isEditorComment: 'false', isApprovedComment: 'true', isResolved: 'false', snapshotText: '', anchorContext: '', anchorText: '', anchorOffset: '0', mergedInto: '', isDeleted: 'false', viewCount: '52582', text: 'Bayesian reasoning is about how to revise our beliefs in the light of evidence.\n\nWe'll start by considering one scenario in which the strength of the evidence has clear numbers attached.\n\n(Don't worry if you don't know how to solve the following problem. We'll see shortly how to solve it.)\n\nSuppose you are a nurse screening a set of students for a sickness called Diseasitis.%note: Literally "inflammation of the disease".%\n\n- You know, from past population studies, that around 20% of the students will have Diseasitis at this time of year.\n\nYou are testing for Diseasitis using a color-changing tongue depressor, which usually turns black if the student has Diseasitis.\n\n- Among patients with Diseasitis, 90% turn the tongue depressor black.\n- However, the tongue depressor is not perfect, and also turns black 30% of the time for healthy students.\n\nOne of your students comes into the office, takes the test, and turns the tongue depressor black. What is the probability that they have Diseasitis?\n\n(*If* you think you see how to do it, you can try to solve this problem before continuing. To quickly see if you got your answer right, you can expand the "Answer" button below; the derivation will be given shortly.)\n\n%hidden(Answer): The probability a student with a blackened tongue depressor has Diseasitis is 3/7, roughly 43%. %\n\nThis problem can be solved a hard way or a clever easy way. We'll walk through the hard way first.\n\nFirst, we imagine a population of 100 students, of whom 20 have Diseasitis and 80 don't.%%note:Multiple studies show that thinking about concrete numbers such as "20 out of 100 students" or "200 out of 1000 students" is more likely to produce correct spontaneous reasoning on these problems than thinking about percentages like "20% of students." E.g. "[Probabilistic reasoning in clinical medicine](https://faculty.washington.edu/jmiyamot/p548/eddydm%20prob%20reas%20i%20clin%20medicine.pdf)" by David M. Eddy (1982).%%\n\n![prior frequency](https://i.imgur.com/gvcoqQN.png)\n\n90% of sick students turn their tongue depressor black, and 30% of healthy students turn the tongue depressor black. So we see black tongue depressors on 90% * 20 = 18 sick students, and 30% * 80 = 24 healthy students.\n\n![posterior frequency](https://i.imgur.com/0XDbrYi.png)\n\nWhat's the probability that a student with a black tongue depressor has Diseasitis? From the diagram, there are 18 sick students with black tongue depressors. 18 + 24 = 42 students in total turned their tongue depressors black. Imagine reaching into a bag of all the students with black tongue depressors, and pulling out one of those students at random; what's the chance a student like that is sick?\n\n![conditional probability](http://i.imgur.com/W6avfHO.png?1)\n\nThe final answer is that a patient with a black tongue depressor has an 18/42 = 3/7 = 43% probability of being sick.\n\nMany medical students have at first found this answer counter-intuitive: The test correctly detects Diseasitis 90% of the time! If the test comes back positive, why is it still less than 50% likely that the patient has Diseasitis? Well, the test also incorrectly "detects" Diseasitis 30% of the time in a healthy patient, and we start out with lots more healthy patients than sick patients.\n\nThe test does provide *some* evidence in favor of of the patient being sick. The probability of a patient being sick goes from 20% before the test, to 43% after we see the tongue depressor turn black. But this isn't conclusive, and we need to perform further tests, maybe more expensive ones.\n\n*If* you feel like you understand this problem setup, consider trying to answer the following question before proceeding: What's the probability that a student who does *not* turn the tongue depressor black - a student with a negative test result - has Diseasitis? Again, we start out with 20% sick and 80% healthy students, 70% of healthy students will get a negative test result, and only 10% of sick students will get a negative test result.\n\n%%hidden(Answer):Imagine 20 sick students and 80 healthy students. 10% * 20 = 2 sick students have negative test results. 70% * 80 = 56 healthy students have negative test results. Among the 2+56=58 total students with negative test results, 2 students are sick students with negative test results. So 2/58 = 1/29 = 3.4% of students with negative test results have Diseasitis.%%\n\n%if-before([1x1]): Now let's turn to a faster, easier way to solve the same problem.%\n%!if-before([1x1]): For a more clever way to perform the same calculation, see [1x1].%', metaText: '', isTextLoaded: 'true', isSubscribedToDiscussion: 'false', isSubscribedToUser: 'false', isSubscribedAsMaintainer: 'false', discussionSubscriberCount: '2', maintainerCount: '1', userSubscriberCount: '0', lastVisit: '', hasDraft: 'false', votes: [], voteSummary: [ '0', '0', '0', '0', '0', '0', '0', '0', '0', '0' ], muVoteSummary: '0', voteScaling: '0', currentUserVote: '-2', voteCount: '0', lockedVoteType: '', maxEditEver: '0', redLinkCount: '0', lockedBy: '', lockedUntil: '', nextPageId: '', prevPageId: '', usedAsMastery: 'false', proposalEditNum: '27', permissions: { edit: { has: 'false', reason: 'You don't have domain permission to edit this page' }, proposeEdit: { has: 'true', reason: '' }, delete: { has: 'false', reason: 'You don't have domain permission to delete this page' }, comment: { has: 'false', reason: 'You can't comment in this domain because you are not a member' }, proposeComment: { has: 'true', reason: '' } }, summaries: { Summary: 'Bayesian reasoning is about how to revise our beliefs in the light of evidence.' }, creatorIds: [ 'EliezerYudkowsky', 'NateSoares', 'DavidSalamon', 'JohnMahony', 'EricRogstad', 'Akanksharawat', 'SachinKrishnan', 'AnthonyMercuri' ], childIds: [], parentIds: [ 'bayes_frequency_diagram' ], commentIds: [ '6r0', '893', '895', '8cp', '8cq', '8hl', '8kp', '8nc', '9bh' ], questionIds: [], tagIds: [ 'b_class_meta_tag' ], relatedIds: [], markIds: [], explanations: [], learnMore: [], requirements: [ { id: '5771', parentId: 'probability', childId: 'bayes_frequency_diagram_diseasitis', type: 'requirement', creatorId: 'AlexeiAndreev', createdAt: '2016-08-02 00:11:46', level: '2', isStrong: 'false', everPublished: 'true' } ], subjects: [ { id: '5150', parentId: 'bayes_frequency_diagram', childId: 'bayes_frequency_diagram_diseasitis', type: 'subject', creatorId: 'NateSoares', createdAt: '2016-07-10 22:03:49', level: '2', isStrong: 'true', everPublished: 'true' }, { id: '5179', parentId: 'bayes_frequency_diagram_diseasitis', childId: 'bayes_frequency_diagram_diseasitis', type: 'subject', creatorId: 'NateSoares', createdAt: '2016-07-10 23:32:36', level: '2', isStrong: 'true', everPublished: 'true' }, { id: '6511', parentId: 'diseasitis', childId: 'bayes_frequency_diagram_diseasitis', type: 'subject', creatorId: 'EliezerYudkowsky', createdAt: '2016-10-01 05:43:15', level: '2', isStrong: 'true', everPublished: 'true' } ], lenses: [], lensParentId: 'bayes_frequency_diagram', pathPages: [], learnMoreTaughtMap: { '22s': [ '1x1', '22s' ] }, learnMoreCoveredMap: {}, learnMoreRequiredMap: {}, editHistory: {}, domainSubmissions: {}, answers: [], answerCount: '0', commentCount: '1', newCommentCount: '0', linkedMarkCount: '0', changeLogs: [ { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '23224', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'AnthonyMercuri', edit: '27', type: 'newEditProposal', createdAt: '2019-10-27 13:36:45', auxPageId: '', oldSettingsValue: '', newSettingsValue: 'Addresses Vito Lomele's Nov 11, 2018 concern about ambiguity.' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '23063', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'SachinKrishnan', edit: '26', type: 'newEditProposal', createdAt: '2018-08-31 04:38:15', auxPageId: '', oldSettingsValue: '', newSettingsValue: 'removed extra 'of'' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '22985', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'Akanksharawat', edit: '24', type: 'newEditProposal', createdAt: '2018-03-12 10:12:41', auxPageId: '', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '20320', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'EricRogstad', edit: '23', type: 'newEdit', createdAt: '2016-10-26 01:46:18', auxPageId: '', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '3617', likeableType: 'changeLog', myLikeValue: '0', likeCount: '1', dislikeCount: '0', likeScore: '1', individualLikes: [], id: '20166', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'JohnMahony', edit: '20', type: 'newEdit', createdAt: '2016-10-18 00:58:05', auxPageId: '', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '19953', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'EliezerYudkowsky', edit: '19', type: 'newEdit', createdAt: '2016-10-08 18:56:00', auxPageId: '', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '19952', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'EliezerYudkowsky', edit: '18', type: 'newEdit', createdAt: '2016-10-08 18:54:40', auxPageId: '', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '19903', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'EliezerYudkowsky', edit: '17', type: 'newEdit', createdAt: '2016-10-07 22:47:27', auxPageId: '', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '19902', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'EliezerYudkowsky', edit: '16', type: 'newEdit', createdAt: '2016-10-07 22:46:55', auxPageId: '', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '19901', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'EliezerYudkowsky', edit: '15', type: 'newEdit', createdAt: '2016-10-07 22:45:36', auxPageId: '', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '19900', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'EliezerYudkowsky', edit: '14', type: 'newEdit', createdAt: '2016-10-07 22:44:50', auxPageId: '', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '19899', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'EliezerYudkowsky', edit: '13', type: 'newEdit', createdAt: '2016-10-07 22:44:22', auxPageId: '', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '19898', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'EliezerYudkowsky', edit: '12', type: 'newEdit', createdAt: '2016-10-07 22:43:48', auxPageId: '', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '19896', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'EliezerYudkowsky', edit: '10', type: 'newEdit', createdAt: '2016-10-07 22:43:09', auxPageId: '', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '19895', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'EliezerYudkowsky', edit: '9', type: 'newEdit', createdAt: '2016-10-07 22:42:42', auxPageId: '', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '19894', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'EliezerYudkowsky', edit: '8', type: 'newEdit', createdAt: '2016-10-07 22:41:10', auxPageId: '', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '19893', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'EliezerYudkowsky', edit: '7', type: 'newEdit', createdAt: '2016-10-07 22:40:34', auxPageId: '', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '19817', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'EliezerYudkowsky', edit: '0', type: 'newSubject', createdAt: '2016-10-01 05:43:16', auxPageId: 'diseasitis', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '19815', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'EliezerYudkowsky', edit: '6', type: 'newEdit', createdAt: '2016-10-01 05:41:22', auxPageId: '', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '18188', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'EricBruylant', edit: '0', type: 'newTag', createdAt: '2016-08-02 18:33:57', auxPageId: 'b_class_meta_tag', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '17986', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'AlexeiAndreev', edit: '0', type: 'deleteRequiredBy', createdAt: '2016-08-02 00:23:55', auxPageId: 'bayes_waterfall_diseasitis', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '17965', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'AlexeiAndreev', edit: '0', type: 'newRequirement', createdAt: '2016-08-02 00:11:46', auxPageId: 'probability', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '17443', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'DavidSalamon', edit: '5', type: 'newEdit', createdAt: '2016-07-24 07:17:49', auxPageId: '', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '16539', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'NateSoares', edit: '0', type: 'newTeacher', createdAt: '2016-07-10 23:32:36', auxPageId: 'bayes_frequency_diagram_diseasitis', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '16540', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'NateSoares', edit: '0', type: 'newSubject', createdAt: '2016-07-10 23:32:36', auxPageId: 'bayes_frequency_diagram_diseasitis', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '16476', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'NateSoares', edit: '4', type: 'newEdit', createdAt: '2016-07-10 22:03:59', auxPageId: '', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '16475', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'NateSoares', edit: '0', type: 'newSubject', createdAt: '2016-07-10 22:03:50', auxPageId: 'bayes_frequency_diagram', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '15820', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'NateSoares', edit: '0', type: 'newParent', createdAt: '2016-07-06 22:28:10', auxPageId: 'bayes_frequency_diagram', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '15814', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'NateSoares', edit: '3', type: 'newEdit', createdAt: '2016-07-06 22:15:15', auxPageId: '', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '15813', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'NateSoares', edit: '2', type: 'newEdit', createdAt: '2016-07-06 22:14:58', auxPageId: '', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '15812', pageId: 'bayes_frequency_diagram_diseasitis', userId: 'NateSoares', edit: '1', type: 'newEdit', createdAt: '2016-07-06 22:14:24', auxPageId: '', oldSettingsValue: '', newSettingsValue: '' } ], feedSubmissions: [], searchStrings: {}, hasChildren: 'false', hasParents: 'true', redAliases: {}, improvementTagIds: [], nonMetaTagIds: [], todos: [], slowDownMap: 'null', speedUpMap: 'null', arcPageIds: 'null', contentRequests: { fewerWords: { likeableId: '3557', likeableType: 'contentRequest', myLikeValue: '0', likeCount: '1', dislikeCount: '0', likeScore: '1', individualLikes: [], id: '100', pageId: 'bayes_frequency_diagram_diseasitis', requestType: 'fewerWords', createdAt: '2016-10-02 07:08:30' }, lessTechnical: { likeableId: '3705', likeableType: 'contentRequest', myLikeValue: '0', likeCount: '13', dislikeCount: '0', likeScore: '13', individualLikes: [], id: '153', pageId: 'bayes_frequency_diagram_diseasitis', requestType: 'lessTechnical', createdAt: '2016-11-12 02:31:46' }, moreTechnical: { likeableId: '3556', likeableType: 'contentRequest', myLikeValue: '0', likeCount: '6', dislikeCount: '0', likeScore: '6', individualLikes: [], id: '99', pageId: 'bayes_frequency_diagram_diseasitis', requestType: 'moreTechnical', createdAt: '2016-10-02 07:08:27' }, moreWords: { likeableId: '3547', likeableType: 'contentRequest', myLikeValue: '0', likeCount: '24', dislikeCount: '0', likeScore: '24', individualLikes: [], id: '96', pageId: 'bayes_frequency_diagram_diseasitis', requestType: 'moreWords', createdAt: '2016-09-26 19:16:24' } } }