{"id":35137,"date":"2022-02-22T12:38:43","date_gmt":"2022-02-22T12:38:43","guid":{"rendered":"https:\/\/assignmenttutors.net\/blog\/answer-the-questions-computer-science-homework-help\/"},"modified":"2022-02-22T12:38:43","modified_gmt":"2022-02-22T12:38:43","slug":"answer-the-questions-computer-science-homework-help","status":"publish","type":"post","link":"https:\/\/assignmenttutors.net\/blog\/answer-the-questions-computer-science-homework-help\/","title":{"rendered":"Answer the questions | Computer Science homework help"},"content":{"rendered":"<div>\n<p>\u00a0\u00a0<\/p>\n<p><strong>Instructions<\/strong><\/p>\n<p>You must make your own calculations and you must show your calculations in the answer document. Insufficient calculation steps will result in reduced points earned.<\/p>\n<p>\u00a0\u00a0<\/p>\n<p><u>Imbalanced Classifiers<\/u><\/p>\n<p>1. Begin by writing the formula for each calculation, then show your steps to arrive at your answer.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" height=\"132\" src=\"\" width=\"319\"\/><\/p>\n<p>a. Calculate Accuracy<\/p>\n<p>b. Precision<\/p>\n<p>c. Recall<\/p>\n<p>d. F- Measure<\/p>\n<p>\u00a0\u00a0<\/p>\n<p>2. Begin by writing the formula for each calculation, then show your steps to arrive at your answer.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" height=\"132\" src=\"\" width=\"329\"\/><\/p>\n<p>a. Calculate Accuracy<\/p>\n<p>b. Precision<\/p>\n<p>c. Recall<\/p>\n<p>d. F- Measure<\/p>\n<p>\u00a0\u00a0<\/p>\n<p><u>Bayes Theorem<\/u><\/p>\n<p>3. (a) Suppose the fraction of undergraduate students who smoke is 15% and<\/p>\n<p>the fraction of graduate students who smoke is 23%. If one-fifth of the college students are graduate students and the rest are undergraduates, what is the probability that a student who smokes is a graduate student?<\/p>\n<p>Answer<\/p>\n<p>(b) Given the information in part (a), is a randomly chosen college student<\/p>\n<p>more likely to be a graduate or undergraduate student?\u00a0<\/p>\n<p>Answer<\/p>\n<p>(c) Repeat part (b) assuming that the student is a smoker.<\/p>\n<p>Answer:<\/p>\n<p>(d) Suppose 30% of the graduate students live in a dorm but only 10% of<\/p>\n<p>the undergraduate students live in a dorm. If a student smokes and lives in the dorm, is he or she more likely to be a graduate or undergraduate student? You can assume independence between students who live in a dorm and those who smoke.<\/p>\n<p>Answer:<\/p>\n<p>\u00a0\u00a0<\/p>\n<p>Bayes Theorem<\/p>\n<p>4. Consider the data set below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" height=\"179\" src=\"\" width=\"206\"\/><\/p>\n<p>a) Estimate the conditional probabilities for (P(A|+), P(B|+), P(C|+), P(A|-). P(B|-), P(C|-)<\/p>\n<p>(b) Use the estimate of conditional probabilities given in the previous question to predict the class label for a test sample (A =0, B =1, C =0) using the na\u00efve Bayes approach.<\/p>\n<p>\u00a0\u00a0<\/p>\n<p>1. Consider a binary classification problem with the following set of attributes and attribute values:<\/p>\n<p>\u2022 Air Conditioner = {Working, Broken}<\/p>\n<p>\u2022 Engine = {Good, Bad}<\/p>\n<p>\u2022 Mileage = {High, Medium, Low}<\/p>\n<p>\u2022 Rust = {Yes, No}<\/p>\n<p>Suppose a rule-based classifier produces the following rule set:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" height=\"105\" src=\"\" width=\"422\"\/><\/p>\n<p>(a) Are the rules mutually exclusive?<\/p>\n<p>Answer:\u00a0<\/p>\n<p>(b) Is the rule set exhaustive?<\/p>\n<p>Answer:\u00a0<\/p>\n<p>(c) Is ordering needed for this set of rules?<\/p>\n<p>Answer:\u00a0<\/p>\n<p>(d) Do you need a default class for the rule set?<\/p>\n<p>Answer:\u00a0<\/p>\n<p>\u00a0\u00a0<\/p>\n<p>2. Consider a training set that contains 100 positive examples and 400 negative examples. For each of the following candidate rules.<\/p>\n<p>R1: A -\u2192 + (covers 4 positive and 1 negative examples)<\/p>\n<p>R2: B -\u2192 + (covers 30 positive and 10 negative examples)<\/p>\n<p>R3: C -\u2192 + (covers 100 positive and 90 negative examples)<\/p>\n<p><strong>Note:<\/strong> <strong>The rules do not cover the entire training set.<\/strong> <strong>This is not an exhaustive rule set.<\/strong><\/p>\n<p>a. Determine which is the best and worst candidate rule according to Rule accuracy.<\/p>\n<p>Answer:<\/p>\n<p>b. Determine which is the best and worst candidate rule according to FOIL\u2019s information gain.<\/p>\n<p><u><strong>Review of FOIL\u2019s Information Gain<\/strong><\/u><\/p>\n<p><strong>R0:<\/strong> <strong>{} =&gt; class<\/strong> <strong>(initial rule)<\/strong><\/p>\n<p><strong>R1:<\/strong> <strong>{A} =&gt; class (rule after adding conjunct)<\/strong><\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<strong>Gain(R0, R1) = t [<\/strong> <strong>log (p1\/(p1+n1)) \u2013 log (p0\/(p0 + n0)) ]<\/strong><\/p>\n<p>\u00a0<\/p>\n<p><strong>where\u2026<\/strong> <br \/>\u00a0<strong>t<\/strong> <strong>(total) number of positive instances covered by both R0 and R1<\/strong><\/p>\n<p><strong>p0<\/strong> <strong>number of positive instances covered by R0<\/strong><\/p>\n<p><strong>n0<\/strong> <strong>number of negative instances covered by R0<\/strong><\/p>\n<p><strong>p1<\/strong> <strong>number of positive instances covered by R1<\/strong><\/p>\n<p><strong>n1<\/strong> <strong>number of negative instances covered by R1<\/strong><\/p>\n<p>Answer:<\/p>\n<p>\u00a0\u00a0<\/p>\n<p>3. Consider the one-dimensional data set shown below.<\/p>\n<p>Data set for Exercise 3.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" height=\"45\" src=\"\" width=\"375\"\/><\/p>\n<p>\u00a0\u00a0<\/p>\n<p>x<\/p>\n<p>0.5<\/p>\n<p>3.0<\/p>\n<p>4.5<\/p>\n<p>4.6<\/p>\n<p>4.9<\/p>\n<p>5.2<\/p>\n<p>5.3<\/p>\n<p>5.5<\/p>\n<p>7.0<\/p>\n<p>9.5<\/p>\n<p>\u00a0<\/p>\n<p>y \u2013 1st<\/p>\n<p>\u00a0<\/p>\n<p>y \u2013 2nd<\/p>\n<p>\u00a0<\/p>\n<p>y \u2013 3rd<\/p>\n<p>\u00a0<\/p>\n<p>y \u2013 4th<\/p>\n<p>a. Place the indicated symbol ( + or &#8211; ) into each cell for the purpose of classifying the data point x =5.0 according to its 1-, 3-, 5-, and 9-nearest neighbors (using majority vote).<\/p>\n<p>Answer:<\/p>\n<p><u>Number of data points<\/u> \u00a0<u>symbol to be used\/inserted into y row<\/u><\/p>\n<p>1st Row 1-nearest neighbor \u00a0+<\/p>\n<p>2nd Row 3-nearest neighbor \u00a0&#8211;<\/p>\n<p>3rd Row 5-nearest neighbor +<\/p>\n<p>4th Row 9-nearest neighbor &#8211;<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0\u00a0 Instructions You must make your own calculations and you must show your calculations in the answer document. Insufficient calculation steps will result in reduced points earned. \u00a0\u00a0 Imbalanced Classifiers 1. Begin by writing the formula for each calculation, then show your steps to arrive at your answer. a. Calculate Accuracy b. Precision c. Recall [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-35137","post","type-post","status-publish","format-standard","hentry","category-education"],"_links":{"self":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/posts\/35137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/comments?post=35137"}],"version-history":[{"count":0,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/posts\/35137\/revisions"}],"wp:attachment":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/media?parent=35137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/categories?post=35137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/tags?post=35137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}