SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
Q5 A student wrote a (machine learning) algorithm for distinguishing between pictures of cats
and pictures of dogs. The error rates of her algorithm are given as:
P(alg=dogpic=cat)=0.1P(alg=catpic=dog)=0.2. [For example, P(alg= cat pic=dog) denotes the
probability that the algorithm outputs "cat" when seeing a picture of a dog.] Now we test the
algorithm for several rounds, each round inputting to it a random picture of either a cat or a dog.
For each picture, the probability of it being a cat's picture is 0.3 and the probability of it being a
dog's picture is 0.7 . a) What is the probability that the algorithm correctly classifies 3
consecutive pictures? (5 points) b) When the algorithm outputs "cat", what is the probability that
the picture actually shows a cat? (5 points) c) Suppose we run this test for 5 rounds, and we
award the student 10 HKD for each picture that her algorithm correctly classifies (and 0 HKD for
each wrong classification). What is the variance of her income? (5 points)

Weitere ähnliche Inhalte

Mehr von alfacomputers2

Q1. Imagine a researcher starting work on the obesity epidemic. In t.pdf
Q1. Imagine a researcher starting work on the obesity epidemic. In t.pdfQ1. Imagine a researcher starting work on the obesity epidemic. In t.pdf
Q1. Imagine a researcher starting work on the obesity epidemic. In t.pdfalfacomputers2
 
Q1 What is allocation or absorption The margin allocated to each .pdf
Q1 What is allocation or absorption The margin allocated to each .pdfQ1 What is allocation or absorption The margin allocated to each .pdf
Q1 What is allocation or absorption The margin allocated to each .pdfalfacomputers2
 
Q1 Which white blood cell assists in the regulation of the immune re.pdf
Q1 Which white blood cell assists in the regulation of the immune re.pdfQ1 Which white blood cell assists in the regulation of the immune re.pdf
Q1 Which white blood cell assists in the regulation of the immune re.pdfalfacomputers2
 
Q1 Find the (a) mean, (b) median, (c) mode, and (d) midrange for th.pdf
Q1 Find the (a) mean, (b) median, (c) mode, and (d) midrange for th.pdfQ1 Find the (a) mean, (b) median, (c) mode, and (d) midrange for th.pdf
Q1 Find the (a) mean, (b) median, (c) mode, and (d) midrange for th.pdfalfacomputers2
 
Q.4 Consider the experiment of rolling a pair of dice. Suppose that .pdf
Q.4 Consider the experiment of rolling a pair of dice. Suppose that .pdfQ.4 Consider the experiment of rolling a pair of dice. Suppose that .pdf
Q.4 Consider the experiment of rolling a pair of dice. Suppose that .pdfalfacomputers2
 
PyJa Institute is an institute set up to manage the following progra.pdf
PyJa Institute is an institute set up to manage the following progra.pdfPyJa Institute is an institute set up to manage the following progra.pdf
PyJa Institute is an institute set up to manage the following progra.pdfalfacomputers2
 
PurposeMany Americans are very generous donating their time, money.pdf
PurposeMany Americans are very generous donating their time, money.pdfPurposeMany Americans are very generous donating their time, money.pdf
PurposeMany Americans are very generous donating their time, money.pdfalfacomputers2
 
Provide an example of a business that grew too fast. What where the .pdf
Provide an example of a business that grew too fast. What where the .pdfProvide an example of a business that grew too fast. What where the .pdf
Provide an example of a business that grew too fast. What where the .pdfalfacomputers2
 
PurposeDetermining who has the right to claim the dependency exem.pdf
PurposeDetermining who has the right to claim the dependency exem.pdfPurposeDetermining who has the right to claim the dependency exem.pdf
PurposeDetermining who has the right to claim the dependency exem.pdfalfacomputers2
 
Puello Corporation ha proporcionado los siguientes datos sobre un pr.pdf
Puello Corporation ha proporcionado los siguientes datos sobre un pr.pdfPuello Corporation ha proporcionado los siguientes datos sobre un pr.pdf
Puello Corporation ha proporcionado los siguientes datos sobre un pr.pdfalfacomputers2
 
Provided their employers followed the recommended guidelines, which .pdf
Provided their employers followed the recommended guidelines, which .pdfProvided their employers followed the recommended guidelines, which .pdf
Provided their employers followed the recommended guidelines, which .pdfalfacomputers2
 
Provide a reporting information for the POM+ project. MSProject has .pdf
Provide a reporting information for the POM+ project. MSProject has .pdfProvide a reporting information for the POM+ project. MSProject has .pdf
Provide a reporting information for the POM+ project. MSProject has .pdfalfacomputers2
 
Prostitution and solicitation are referred to as victimless crimes. .pdf
Prostitution and solicitation are referred to as victimless crimes. .pdfProstitution and solicitation are referred to as victimless crimes. .pdf
Prostitution and solicitation are referred to as victimless crimes. .pdfalfacomputers2
 
Proporcione una breve historia del desarrollo del federalismo en los.pdf
Proporcione una breve historia del desarrollo del federalismo en los.pdfProporcione una breve historia del desarrollo del federalismo en los.pdf
Proporcione una breve historia del desarrollo del federalismo en los.pdfalfacomputers2
 
Project topic - Development of a Predictive Maintenance System usin.pdf
Project topic - Development of a Predictive Maintenance System usin.pdfProject topic - Development of a Predictive Maintenance System usin.pdf
Project topic - Development of a Predictive Maintenance System usin.pdfalfacomputers2
 
PROJECT PAPER TOPIC Developing a security policy framework for smal.pdf
PROJECT PAPER TOPIC Developing a security policy framework for smal.pdfPROJECT PAPER TOPIC Developing a security policy framework for smal.pdf
PROJECT PAPER TOPIC Developing a security policy framework for smal.pdfalfacomputers2
 
Professor Donald Henderson first pointed out how discussions of ambi.pdf
Professor Donald Henderson first pointed out how discussions of ambi.pdfProfessor Donald Henderson first pointed out how discussions of ambi.pdf
Professor Donald Henderson first pointed out how discussions of ambi.pdfalfacomputers2
 
Profes�r Rodr�guez redaksiyon �almasn y�r�tt��nde, bask ve bilgisaya.pdf
Profes�r Rodr�guez redaksiyon �almasn y�r�tt��nde, bask ve bilgisaya.pdfProfes�r Rodr�guez redaksiyon �almasn y�r�tt��nde, bask ve bilgisaya.pdf
Profes�r Rodr�guez redaksiyon �almasn y�r�tt��nde, bask ve bilgisaya.pdfalfacomputers2
 
Profit Margins and Sustainable Growth The Sandar Co. has a debt�equi.pdf
Profit Margins and Sustainable Growth The Sandar Co. has a debt�equi.pdfProfit Margins and Sustainable Growth The Sandar Co. has a debt�equi.pdf
Profit Margins and Sustainable Growth The Sandar Co. has a debt�equi.pdfalfacomputers2
 
Process integration addresses the integration of tools where differe.pdf
Process integration addresses the integration of tools where differe.pdfProcess integration addresses the integration of tools where differe.pdf
Process integration addresses the integration of tools where differe.pdfalfacomputers2
 

Mehr von alfacomputers2 (20)

Q1. Imagine a researcher starting work on the obesity epidemic. In t.pdf
Q1. Imagine a researcher starting work on the obesity epidemic. In t.pdfQ1. Imagine a researcher starting work on the obesity epidemic. In t.pdf
Q1. Imagine a researcher starting work on the obesity epidemic. In t.pdf
 
Q1 What is allocation or absorption The margin allocated to each .pdf
Q1 What is allocation or absorption The margin allocated to each .pdfQ1 What is allocation or absorption The margin allocated to each .pdf
Q1 What is allocation or absorption The margin allocated to each .pdf
 
Q1 Which white blood cell assists in the regulation of the immune re.pdf
Q1 Which white blood cell assists in the regulation of the immune re.pdfQ1 Which white blood cell assists in the regulation of the immune re.pdf
Q1 Which white blood cell assists in the regulation of the immune re.pdf
 
Q1 Find the (a) mean, (b) median, (c) mode, and (d) midrange for th.pdf
Q1 Find the (a) mean, (b) median, (c) mode, and (d) midrange for th.pdfQ1 Find the (a) mean, (b) median, (c) mode, and (d) midrange for th.pdf
Q1 Find the (a) mean, (b) median, (c) mode, and (d) midrange for th.pdf
 
Q.4 Consider the experiment of rolling a pair of dice. Suppose that .pdf
Q.4 Consider the experiment of rolling a pair of dice. Suppose that .pdfQ.4 Consider the experiment of rolling a pair of dice. Suppose that .pdf
Q.4 Consider the experiment of rolling a pair of dice. Suppose that .pdf
 
PyJa Institute is an institute set up to manage the following progra.pdf
PyJa Institute is an institute set up to manage the following progra.pdfPyJa Institute is an institute set up to manage the following progra.pdf
PyJa Institute is an institute set up to manage the following progra.pdf
 
PurposeMany Americans are very generous donating their time, money.pdf
PurposeMany Americans are very generous donating their time, money.pdfPurposeMany Americans are very generous donating their time, money.pdf
PurposeMany Americans are very generous donating their time, money.pdf
 
Provide an example of a business that grew too fast. What where the .pdf
Provide an example of a business that grew too fast. What where the .pdfProvide an example of a business that grew too fast. What where the .pdf
Provide an example of a business that grew too fast. What where the .pdf
 
PurposeDetermining who has the right to claim the dependency exem.pdf
PurposeDetermining who has the right to claim the dependency exem.pdfPurposeDetermining who has the right to claim the dependency exem.pdf
PurposeDetermining who has the right to claim the dependency exem.pdf
 
Puello Corporation ha proporcionado los siguientes datos sobre un pr.pdf
Puello Corporation ha proporcionado los siguientes datos sobre un pr.pdfPuello Corporation ha proporcionado los siguientes datos sobre un pr.pdf
Puello Corporation ha proporcionado los siguientes datos sobre un pr.pdf
 
Provided their employers followed the recommended guidelines, which .pdf
Provided their employers followed the recommended guidelines, which .pdfProvided their employers followed the recommended guidelines, which .pdf
Provided their employers followed the recommended guidelines, which .pdf
 
Provide a reporting information for the POM+ project. MSProject has .pdf
Provide a reporting information for the POM+ project. MSProject has .pdfProvide a reporting information for the POM+ project. MSProject has .pdf
Provide a reporting information for the POM+ project. MSProject has .pdf
 
Prostitution and solicitation are referred to as victimless crimes. .pdf
Prostitution and solicitation are referred to as victimless crimes. .pdfProstitution and solicitation are referred to as victimless crimes. .pdf
Prostitution and solicitation are referred to as victimless crimes. .pdf
 
Proporcione una breve historia del desarrollo del federalismo en los.pdf
Proporcione una breve historia del desarrollo del federalismo en los.pdfProporcione una breve historia del desarrollo del federalismo en los.pdf
Proporcione una breve historia del desarrollo del federalismo en los.pdf
 
Project topic - Development of a Predictive Maintenance System usin.pdf
Project topic - Development of a Predictive Maintenance System usin.pdfProject topic - Development of a Predictive Maintenance System usin.pdf
Project topic - Development of a Predictive Maintenance System usin.pdf
 
PROJECT PAPER TOPIC Developing a security policy framework for smal.pdf
PROJECT PAPER TOPIC Developing a security policy framework for smal.pdfPROJECT PAPER TOPIC Developing a security policy framework for smal.pdf
PROJECT PAPER TOPIC Developing a security policy framework for smal.pdf
 
Professor Donald Henderson first pointed out how discussions of ambi.pdf
Professor Donald Henderson first pointed out how discussions of ambi.pdfProfessor Donald Henderson first pointed out how discussions of ambi.pdf
Professor Donald Henderson first pointed out how discussions of ambi.pdf
 
Profes�r Rodr�guez redaksiyon �almasn y�r�tt��nde, bask ve bilgisaya.pdf
Profes�r Rodr�guez redaksiyon �almasn y�r�tt��nde, bask ve bilgisaya.pdfProfes�r Rodr�guez redaksiyon �almasn y�r�tt��nde, bask ve bilgisaya.pdf
Profes�r Rodr�guez redaksiyon �almasn y�r�tt��nde, bask ve bilgisaya.pdf
 
Profit Margins and Sustainable Growth The Sandar Co. has a debt�equi.pdf
Profit Margins and Sustainable Growth The Sandar Co. has a debt�equi.pdfProfit Margins and Sustainable Growth The Sandar Co. has a debt�equi.pdf
Profit Margins and Sustainable Growth The Sandar Co. has a debt�equi.pdf
 
Process integration addresses the integration of tools where differe.pdf
Process integration addresses the integration of tools where differe.pdfProcess integration addresses the integration of tools where differe.pdf
Process integration addresses the integration of tools where differe.pdf
 

Kürzlich hochgeladen

SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...KokoStevan
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfSanaAli374401
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 

Kürzlich hochgeladen (20)

SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 

Q5 A student wrote a (machine learning) algorithm for distinguishing.pdf

  • 1. Q5 A student wrote a (machine learning) algorithm for distinguishing between pictures of cats and pictures of dogs. The error rates of her algorithm are given as: P(alg=dogpic=cat)=0.1P(alg=catpic=dog)=0.2. [For example, P(alg= cat pic=dog) denotes the probability that the algorithm outputs "cat" when seeing a picture of a dog.] Now we test the algorithm for several rounds, each round inputting to it a random picture of either a cat or a dog. For each picture, the probability of it being a cat's picture is 0.3 and the probability of it being a dog's picture is 0.7 . a) What is the probability that the algorithm correctly classifies 3 consecutive pictures? (5 points) b) When the algorithm outputs "cat", what is the probability that the picture actually shows a cat? (5 points) c) Suppose we run this test for 5 rounds, and we award the student 10 HKD for each picture that her algorithm correctly classifies (and 0 HKD for each wrong classification). What is the variance of her income? (5 points)