Final Exam Künstliche Intelligenz 2

Ähnliche Dokumente
Retake Exam Künstliche Intelligenz 2

Retake Exam Künstliche Intelligenz 2

Exam Künstliche Intelligenz 1

Final Exam Künstliche Intelligenz 1

Number of Maximal Partial Clones

Mock Exam Behavioral Finance

Level 2 German, 2015

Final Exam. Friday June 4, 2008, 12:30, Magnus-HS

Finite Difference Method (FDM)

Bayesian Networks. Syntax Semantics Parametrized Distributions Inference in Bayesian Networks. Exact Inference. Approximate Inference

Magic Figures. We note that in the example magic square the numbers 1 9 are used. All three rows (columns) have equal sum, called the magic number.

Grade 12: Qualifikationsphase. My Abitur

Fachbereich 5 Wirtschaftswissenschaften Univ.-Prof. Dr. Jan Franke-Viebach

Was heißt Denken?: Vorlesung Wintersemester 1951/52. [Was bedeutet das alles?] (Reclams Universal-Bibliothek) (German Edition)

Fakultät III Univ.-Prof. Dr. Jan Franke-Viebach

Wie man heute die Liebe fürs Leben findet

Konkret - der Ratgeber: Die besten Tipps zu Internet, Handy und Co. (German Edition)

PONS DIE DREI??? FRAGEZEICHEN, ARCTIC ADVENTURE: ENGLISCH LERNEN MIT JUSTUS, PETER UND BOB

Relevante(r) Deskriptor(en) Deskriptor 5: Kann einfachen Interviews, Berichten, Hörspielen und Sketches zu vertrauten Themen folgen.

Unit 4. The Extension Principle. Fuzzy Logic I 123

Die UN-Kinderrechtskonvention. Darstellung der Bedeutung (German Edition)

Weather forecast in Accra

Fußballtraining für jeden Tag: Die 365 besten Übungen (German Edition)

Unit 1. Motivation and Basics of Classical Logic. Fuzzy Logic I 6

Level 2 German, 2013

There are 10 weeks this summer vacation the weeks beginning: June 23, June 30, July 7, July 14, July 21, Jul 28, Aug 4, Aug 11, Aug 18, Aug 25

Zu + Infinitiv Constructions

Handbuch der therapeutischen Seelsorge: Die Seelsorge-Praxis / Gesprächsführung in der Seelsorge (German Edition)

Klassenarbeit - Grammatik

Relevante(r) Deskriptor(en) Deskriptor 5: Kann einfachen Interviews, Berichten, Hörspielen und Sketches zu vertrauten Themen folgen.

Wer bin ich - und wenn ja wie viele?: Eine philosophische Reise. Click here if your download doesn"t start automatically

Killy Literaturlexikon: Autoren Und Werke Des Deutschsprachigen Kulturraumes 2., Vollstandig Uberarbeitete Auflage (German Edition)

DAS ZUFRIEDENE GEHIRN: FREI VON DEPRESSIONEN, TRAUMATA, ADHS, SUCHT UND ANGST. MIT DER BRAIN-STATE-TECHNOLOGIE DAS LEBEN AUSBALANCIEREN (GE

Ein Stern in dunkler Nacht Die schoensten Weihnachtsgeschichten. Click here if your download doesn"t start automatically

Kursbuch Naturheilverfahren: Curriculum der Weiterbildung zur Erlangung der Zusatzbezeichnung Naturheilverfahren (German Edition)

Soziale Arbeit mit rechten Jugendcliquen: Grundlagen zur Konzeptentwicklung (German Edition)

Accelerating Information Technology Innovation

Elektrosmog im Büro: Optimierung von Büro- Arbeitsplätzen (German Edition)

Englisch-Grundwortschatz

Level 1 German, 2014

Level 2 German, 2016

Im Fluss der Zeit: Gedanken beim Älterwerden (HERDER spektrum) (German Edition)

Harry gefangen in der Zeit Begleitmaterialien

AT DELI S CODE 362. Schreibmaterial. Besondere Bemerkungen, Hinweise zur Durchführung --- Quelle ---

Duell auf offener Straße: Wenn sich Hunde an der Leine aggressiv verhalten (Cadmos Hundebuch) (German Edition)

Geboren im Zeichen der Jungfrau: Was das Sternzeichen über den Menschen verrät (German Edition)

BRITISH TEENAGERS TALKING ABOUT WHAT THEY EAT

A Classification of Partial Boolean Clones

VGM. VGM information. HAMBURG SÜD VGM WEB PORTAL USER GUIDE June 2016

Exercise (Part II) Anastasia Mochalova, Lehrstuhl für ABWL und Wirtschaftsinformatik, Kath. Universität Eichstätt-Ingolstadt 1

Die besten Chuck Norris Witze: Alle Fakten über den härtesten Mann der Welt (German Edition)

Die Intrige: Historischer Roman (German Edition)

Introduction FEM, 1D-Example

Offenes Lernen 1: Pflichtaufgaben

Warum nehme ich nicht ab?: Die 100 größten Irrtümer über Essen, Schlanksein und Diäten - Der Bestseller jetzt neu!

So schreiben Sie ein Buch: Geld verdienen mit Texten (German Edition)

Mercedes OM 636: Handbuch und Ersatzteilkatalog (German Edition)

Introduction FEM, 1D-Example

Nürnberg und der Christkindlesmarkt: Ein erlebnisreicher Tag in Nürnberg (German Edition)

Fakultät III Univ.-Prof. Dr. Jan Franke-Viebach

VGM. VGM information. HAMBURG SÜD VGM WEB PORTAL - USER GUIDE June 2016

Organische Chemie IV: Organische Photochemie

German translation: technology

Funktion der Mindestreserve im Bezug auf die Schlüsselzinssätze der EZB (German Edition)

1. Hello, I m Francis Docherty. a. No, sorry. I m not. 2. I m sorry. What was your b. I don t think he

Backen mit Biskuit: Einfach, erfolgreich, die besten Rezepte (German Edition)

Aus FanLiebe zu Tokio Hotel: von Fans fã¼r Fans und ihre Band

Wissenschaftliche Dienste. Sachstand. Payment of value added tax (VAT) (EZPWD-Anfrage ) 2016 Deutscher Bundestag WD /16

Analyse und Interpretation der Kurzgeschichte "Die Tochter" von Peter Bichsel mit Unterrichtsentwurf für eine 10. Klassenstufe (German Edition)

Fachübersetzen - Ein Lehrbuch für Theorie und Praxis

Interkulturelle Kompetenzen: A test for tourists

Level 1 German, 2012

Der Topos Mütterlichkeit am Beispiel Bertolt Brechts "Der kaukasische Kreidekreis" und "Mutter Courage und ihre Kinder" (German Edition)

Optimale Regelung eines prädiktiven Energiemanagements von Hybridfahrzeugen (German Edition)

Der Wolf und die sieben Geißlein: Grimms Märchen für Kinder zum Lesen und Vorlesen (German Edition)

Das Zeitalter der Fünf 3: Götter (German Edition)

Flow - der Weg zum Glück: Der Entdecker des Flow-Prinzips erklärt seine Lebensphilosophie (HERDER spektrum) (German Edition)

Die gesunde Schilddrüse: Was Sie unbedingt wissen sollten über Gewichtsprobleme, Depressionen, Haarausfall und andere Beschwerden (German Edition)

Adverbialsätze im Deutschen. Analyse und produktiver Umgang (Unterrichtsentwurf Deutsch, 9. Klasse) (German Edition)

Die einfachste Diät der Welt: Das Plus-Minus- Prinzip (GU Reihe Einzeltitel)

VIRGINIA CODE 159. Interkulturelle und landeskundliche Aspekte. Schreibmaterial

Hausaufgabe 1-4. Name: If homework late, explanation: Last class homework is being accepted: If correction late, explanation: Student Self-Grading

Benjamin Whorf, Die Sumerer Und Der Einfluss Der Sprache Auf Das Denken (Philippika) (German Edition)

Word-CRM-Upload-Button. User manual

Schule mit Erfolg. Englisch Simple present adverbs time Unit Blatt What time is it? 7.50 Uhr Uhr Uhr Uhr 20.

Seeking for n! Derivatives

Paper Reference. Paper Reference(s) 4375/01 London Examinations IGCSE German Paper 1: Listening

Was Sie schon immer über Teneriffa wissen wollten: Erklärungen & Wissenswertes, Tipps & Highlights (German Edition)

Die einfachste Diät der Welt: Das Plus-Minus- Prinzip (GU Reihe Einzeltitel)

DIBELS TM. German Translations of Administration Directions

Supplementary material for Who never tells a lie? The following material is provided below, in the following order:

das Haus - Vokabeln der Schornstein die Toilette Verben wohnen Andere Wörter die Einfahrt

Cycling and (or?) Trams

DYNAMISCHE GEOMETRIE

Order Ansicht Inhalt

SAMPLE EXAMINATION BOOKLET

FEM Isoparametric Concept

Materialien zu unseren Lehrwerken

English grammar BLOCK F:

Diabetes zu heilen natürlich: German Edition( Best Seller)

Transkript:

Name: Birth Date: Matriculation Number: Field of Study: Final Exam Künstliche Intelligenz 2 Aug 01., 2017 Sie können 14 Punkte erreichen, wenn Sie alle Probleme lösen. Die volle Punktzahl ist allerdings schon bei 125 erreicht; d.h. -111 sind Bonuspunkte. To be used for grading, do not write here prob. 1.1 1.2 Sum total 8 6 14 reached Exam Grade: Bonus Points: Final Grade: 1

Organizational Information Please read the following directions carefully and acknowledge them with your signature. Bitte legen Sie Ihren Studentenausweis und einen Lichtbildausweis zur Personenkontrolle bereit! Die angegebene Punkteverteilung gilt unter Vorbehalt. Es sind keine Hilfsmittel erlaubt. Die Lösung einer Aufgabe muss auf den vorgesehenen freien Raum auf dem Aufgabenblatt geschrieben werden; die Rückseite des Blatts kann mitverwendet werden. Wenn der Platz nicht ausreicht, können bei der Aufsicht zusätzliche Blätter angefordert werden. Wenn Sie die Prüfung aus gesundheitlichen Gründen abbrechen müssen, so muss Ihre Prüfungsunfähigkeit durch eine Untersuchung in der Universitätsklinik nachgewiesen werden. Melden Sie sich in jedem Fall bei der Aufsicht und lassen Sie sich das entsprechende Formular aushändigen. Die Bearbeitungszeit beträgt 90 Minuten. Überprüfen Sie Ihr Exemplar der Klausur auf Vollständigkeit (18 Seiten inklusive Deckblatt und Hinweise) und einwandfreies Druckbild! Vergessen Sie nicht, auf dem Deckblatt die Angaben zur Person einzutragen! Erklärung Durch meine Unterschrift bestätige ich den Empfang der vollständigen Klausurunterlagen und die Kenntnisnahme der obigen Informationen. Erlangen, Aug 01., 2017........................................... (Unterschrift) 2

1 Bayesian Reasoning Problem 1.1 (Bayesian Rules) Name the four basic rules in Bayesian inference and explain each with a short sentence and formula. Bayes rule, Normalization, Marginalization, Chain rule 8pt 4min 3

Problem 1.2 (Conditional Independence) Define conditional independence. 6pt Two events A, B are conditionally independent given C, if P (A B C) = P (A C)P (B C). 3min 4

Problem 1.3 (Nuclear Test) Assume it is your responsibility to monitor the Nuclear Test Ban treaty. You receive data from two different stations (seismometers), S 1 and S 2. Each S i is modeled as a Boolean variable where true stands for I detected a Nuclear test and false stands for I did not detect a Nuclear test. The seismometers are not fully reliable, however; they may not detect a Nuclear test even though there was one, and they may mistake an earthquake for a Nuclear test. We model this situation with two additional Boolean variables: N for Nuclear test, and E for Earthquake. Use the algorithm from the lecture to construct a Bayesian network for these 4 variables. More precisely: 1. State the exact formal condition for when the algorithm inserts an edge between two nodes. 2. Execute the algorithm for the variable order X 1 = N, X 2 = E, X 3 = S 1, X 4 = S 2. 14pt 7min 6 pt 8 pt Justify your decisions. (a) P (X i X i 1,..., X 1 ) = P (X i Parents(X i )) (b) With this variable order, we get the following network: N E S 1 S 2 X 2 = E does not need X 1 = N as a parent because Earthquakes are independent from Nuclear tests. x 3 = S 1 needs both X 1 = N and X 2 = E as parents because each of these may influence the measurement; same for X 4 = S 2, i.e., here we also need the parents X 1 = N and X 2 = E. However, given the values of N and E, the measurements of X 3 = S 1 and x 4 = S 2 are independent. So X 4 = S 2 does not require the parent X 3 = S 1. 5

Problem 1.4 (Causal and Diagnostic) State the difference between causal and diagnostic edges in (e.g.) a Bayesian network. Use no more than four sentences. 8pt 4min 6

2 Decision Theory Problem 2.1 (Decision Preferences) 1. Name and state three of the axioms for preferences (i.e. ). 8pt 4min 2. How are preferences related to utility functions? 1. Orderability (A B) (B A) (A B) Transitivity (A B) (B C) (A C) Continuity A B C p([p, A; (1 p), C] B) Substitutability (A B) ([p, A; (1 p), C] [p, B; (1 p), C]) Monotonicity (A B) (p q) ([p, A; (1 p), B] [q, A; (1 q), B]) 2. Ramsey s theorem states that given a set of preferences that obey the constraints above, there is a utility function U with (U(A) U(B)) (A B) and. 7

Problem 2.2 (Expected Utility) What is the formal(!) definition of expected utility? Explain every variable in the defining equation. The expected utility EU is defined as EU(a e) = s P (R(a) = s a, e) U(s ), where 8pt 4min 1. a is the action for which we want to find out the expected utility, given the evidene e. 2. U(s ) is the utility of a state s. 3. R(a) is the result of the action a. 8

Problem 2.3 (Textbook Decisions) Abby has to decide whether to buy Russell&Norveig for 100$. There are three boolean variables involved in this decision: B indicating whether Abby buys the book, M indicating whether Abby knows the material in the book perfectly anyway and P indicating that Abby passes the course. Additionally, we use a utility node U. Abbys utility function is additive, so U(B) = 100. Furthermore, she evaluates passing the course with a utility of U(P ) = 2000. The course has an open book final exam, so B and P are not independent given M. Assume the conditional probabilities P (P B, M), P (P B, M), P (P B, M), P (P B, M), P (M B), P (M B) are given. 1. Draw the decision network for this problem. 2. Explain how to compute the utility of buying the book. 20pt 10min 10 pt 10 pt P(B=T,P=T,M=T) = P(P=T M=T,B=T) P(B=T) P(M=T B=T) = 0.9 1 0.9 P(B=T,P=T,M=F) = 0.5 1 0.1 P(B=T,P=F,M=T) = 0.1 1 0.9 P(B=T,P=F,M=F) = 0.5 1 0.1 P(B=T,P=T) = 0.9 1 0.9 + 0.5 1 0.1 = 0.86 P(B=T,P=F) = 0.1 1 0.9 + 0.5 1 0.1 = 0.14 U(B=T) = 0.86 1900 + 0.14 100 = 1620 P(B=F,P=T,M=T) = P(P=T M=T,B=F) P(B=F) P(M=T B=F) = 0.8 1 0.7 P(B=F,P=T,M=F) = 0.3 1 0.3 9

P(B=F,P=F,M=T) = 0.2 1 0.7 P(B=F,P=F,M=F) = 0.7 1 0.3 P(B=F,P=T) = 0.8 1 0.7 + 0.3 1 0.3 = 0.65 P(B=F,P=F) = 0.2 1 0.7 + 0.7 1 0.3 = 0.35 U(B=F) = 0.65 2000 + 0.35 0 = 1300 10

3 Markov Models Problem 3.1 (Prediction, Filtering, Smoothing) Explain the goals of prediction, filtering and smoothing in markov models and briefly explain algorithms to compute them. 8pt 4min Prediction P (X t+k e 1:t ) Filtering P (X t e 1:t ) Smoothing P (X k e 1:t ) for 0 k < t 11

Problem 3.2 (Markov Mood Detection) On any given day d, your roommate Moody is in one of two states either he is happy (H d ) or he is in a bad mood (B d ). Usually when he s in a bad mood, it s because he had a fight with his boyfriend and those tend to go on for a couple of days, so P (B d+1 B d ) = 0.7, but aside from that he s a cheery guy, so (P (H d+1 H d ) = 0.85). Of course you try to avoid talking to people, but you can hear his music blasting all day which tends to shift depending on his mood. On a good day he usually listens to Jazz (i.e. P (J d H d ) = 0.7), on a bad day he slightly prefers Death Metal (P (DM d B d ) = 0.6). He has a limited taste in music, so it s always one of the two. You accidentally talked to Moody yesterday (d = 0) and know that he was in a good mood then, but today he listens to death metal. 1. How likely is it that he s in a bad mood today? 2. Assume he s listening to death metal for n days straight. Explain how to compute the probability that he is in a bad mood on day n + 1. 16pt 8min 8 pt 8 pt We have P (H 0 ) = 1 and P (H d ), P (B d ) = P (H d H d 1 ) + P (H d B d 1 ), P (B d H d 1 ) + P (B d B d 1 ) which allows us to update using the information DM d : P (H d DM d ), P (B d DM d ) = α P (DM d H d )P (H d ), P (DM d B d )P (B d ) 12

Problem 3.3 (Bellman Equation) State the Bellman Equation and explain 1) every symbol in the equation and 2) what the equation is used for and how. ( ) U(s) = R(s) + γ max U(s ) T (s, a, s ) a s 8pt 4min 13

4 Learning Problem 4.1 (Gradient Descent) Explain a gradient descent algorithm. 8pt 4min 14

Problem 4.2 (Information Entropy) Explain and define information entropy. I( P 1,..., P n ) = n P i log 2 (P i ) i=1 6pt 3min 15

Problem 4.3 (Home Decisions) Eight people go sunbathing. Some of them got a sunburn, others didn t: Name Hair Height Weight Lotion Result Sarah Blonde Average Light No Sunburned Dana Blonde Tall Average Yes None Alex Brown Short Average Yes None Annie Blonde Short Average No Sunburned Julie Blonde Average Light No None Pete Brown Tall Heavy No None John Brown Average Heavy No None Ruth Blonde Average Light No None 20pt 10min Apply the decision tree learning algorithm on this table to predict whether people will get sunburned based on the attributes provided. E 0 := I( 2 8, 6 8 ) = 2 8 log 2( 2 8 ) 6 8 log 2( 6 8 ) 0.81 Gain(Hair) = E 0 5 8 I( 2 5, 3 5 ) 3 I( 0, 1 ) }{{}} 8 {{} Blonde Brown Gain(Height) = E 0 4 8 I( 1 4, 3 4 ) 2 I( 0, 1 ) 2 }{{}} 8 {{} 8 I( 1 2, 1 2 ) }{{} Average Tall Short Gain(Weight) = E 0 3 8 I( 1 3, 2 3 ) 3 }{{} 8 I( 1 3, 2 3 ) 2 I( 0, 1 ) }{{}} 8 {{} Average Light Heavy Gain(Lotion) = E 0 2 I( 0, 1 ) 6 } 8 {{} 8 I( 2 6, 4 6 ) }{{} Yes No 0.20 0.16 0.12 0.12 Hair has the highest information gain, so we split here. All table entries with Brown have result None, so we continue with Hair = Blonde: E 1 := I( 2 5, 3 ) 0.97 5 16

Gain(Height) = E 1 3 5 I( 1 3, 2 3 ) 1 I( 0, 1 ) 1 I( 1, 0 ) }{{}} 5 {{}} 5 {{} Average Tall Short Gain(Weight) = E 1 2 5 I( 1 2, 1 2 ) 3 }{{} 5 I( 1 3, 2 3 ) }{{} 0 }{{} Heavy Average Light Gain(Lotion) = E 1 1 I( 0, 1 ) 4 } 5 {{} 5 I( 2 4, 2 4 ) }{{} Yes No 0.42 0.02 0.17 Height has the highest information gain, so we proceed here. All short blondes are sunburned, all tall blondes are not, hence we only need consider Average... 17