Worksheet 2 Problems

Similar documents
Matrices 2. Slide for MA1203 Business Mathematics II Week 4

MATH3200, Lecture 31: Applications of Eigenvectors. Markov Chains and Chemical Reaction Systems

This operation is - associative A + (B + C) = (A + B) + C; - commutative A + B = B + A; - has a neutral element O + A = A, here O is the null matrix

18.440: Lecture 33 Markov Chains

Construction Modelling of Input-Output Coefficients Matrices in an Axiomatic Context: Some Further Considerations.

Game Theory and Algorithms Lecture 2: Nash Equilibria and Examples

Exam 3 Review Math 118 Sections 1 and 2

APPM 4/5560 Markov Processes Fall 2019, Some Review Problems for Exam One

Math 304 Handout: Linear algebra, graphs, and networks.

18.600: Lecture 32 Markov Chains

BETWEEN PAPERS PRACTICE SET 2 of 4 (F&H)

Quantitative Evaluation of Emedded Systems Solution 2: Discrete Time Markov Chains (DTMC)

Definition and Examples of DTMCs

Markov Chains. As part of Interdisciplinary Mathematical Modeling, By Warren Weckesser Copyright c 2006.

POST TEST. Math in a Cultural Context*

Math 96 Final Exam Study Guide Exam will consist of problems from old exams, plus at least 5 problems similar to the following:

Practice A. Name Date. Evaluate the expression for the given value of the variable. Match the equation with its solution. Solve the equation.

Full file at

Lesson Plan. AM 121: Introduction to Optimization Models and Methods. Lecture 17: Markov Chains. Yiling Chen SEAS. Stochastic process Markov Chains

DECISION MAKING SUPPORT AND EXPERT SYSTEMS

Chapter 2 - Lessons 1 & 2 Studying Geography, Economics

Matrices, vectors and scalars. Operations. Matrix multiplication. notes linear algebra 1. Consider the following examples. a 11 a 12 a 21 a 22

CORRELATION ANALYSIS. Dr. Anulawathie Menike Dept. of Economics

Inequalities. CK12 Editor. Say Thanks to the Authors Click (No sign in required)

H.Alg 2 Notes: Day1: Solving Systems of Equations (Sections ) Activity: Text p. 116

Wahkiakum School District, Pre-EOC Algebra

Exam III Review Math-132 (Sections 7.1, 7.2, 7.3, 7.4, 7.5, 7.6, 8.1, 8.2, 8.3)

Math Applications 544

LTCC. Exercises. (1) Two possible weather conditions on any day: {rainy, sunny} (2) Tomorrow s weather depends only on today s weather

Conditional probability

MATH36001 Perron Frobenius Theory 2015

Math Camp Notes: Linear Algebra II

56:171 Operations Research Final Exam December 12, 1994

Worksheet 8 Sample Solutions

Answers to selected exercises

Lesson 8: Representing Proportional Relationships with Equations

Linear Modeling/Regression FUNCTION NOTATION

Probability and Statistics Notes

University of Ottawa

MAA704, Perron-Frobenius theory and Markov chains.

Section 11.3 Rates of Change:

MATH6 - Introduction to Finite Mathematics

Wahkiakum School District, Pre-EOC Algebra

10/23/2017. Week 6. Retail and the Settlement Pattern. Whataburger Locations. A family-owned quick service restaurant chain

MathLinks 9 Option 1 Final Exam Multiple Choice and Numerical Response

ECE 541 Project Report: Modeling the Game of RISK Using Markov Chains

Perform Basic Matrix Operations

MathLinks 9 Final Exam Review - M/C and Short Answers

Chapter 3: Linear Functions & Their Algebra

Central Tendency & Graphs of Data Long-Term Memory Review Grade 7, Standard 5.0 Review 1

ALGEBRA 1 SEMESTER 1 INSTRUCTIONAL MATERIALS Courses: Algebra 1 S1 (#2201) and Foundations in Algebra 1 S1 (#7769)

Modeling and Simulation with ODE for MSE

Math 141:512. Practice Exam 1 (extra credit) Due: February 6, 2019

1 Basic Game Modelling

1. (3pts) State three of the properties of matrix multiplication.

Math Treibergs. Solutions to Fourth Homework February 13, 2009

Introduction to Systems of Equations

2014 SM4 Revision Questions Distributions

External Backward Linkage and External Forward Linkage. in Asian International Input-Output Table

SCATTER DIAGRAMS M.K. HOME TUITION. Mathematics Revision Guides Level: GCSE Higher Tier

South Pacific Form Seven Certificate

2.1 Introduction to Equations

18.175: Lecture 30 Markov chains

Location theory and clusters. Dr. Hans Koster Assistant professor

Maryland Council on Economic Education 1

Planning and Optimal Control

Growth of Urban Areas. Urban Hierarchies

Another max flow application: baseball

Accelerated Geometry/Algebra 2 Summer Math Packet. Student Information Page

MODELING (Integer Programming Examples)

MEP Y7 Practice Book B

Chapter 4 Simultaneous Linear Equations

Typical information required from the data collection can be grouped into four categories, enumerated as below.

Name Date Class Unit 4 Test 1 Review: Linear Functions

Chapter 4 Statistics

Quadratic function and equations Quadratic function/equations, supply, demand, market equilibrium

Lesson 5: Increasing and Decreasing Functions

Some Procedures for Estimating Goods and Service Trade Between Regions Using the Trade Reports from IMPLAN

Name Class Date. Pearson Education, Inc., publishing as Pearson Prentice Hall. All rights reserved.

College Algebra. Word Problems

Math 074 Final Exam Review. REVIEW FOR NO CALCULATOR PART OF THE EXAM (Questions 1-14)

Implications for the Sharing Economy

Content Standard Geometric Series. What number 0, 1, 2, 3, 4, 5, 6, 7, 8, or 9

Integrated Math 1 - Chapter 5 Homework Scoring Guide

DATABASE AND METHODOLOGY

3.6.1 Building Functions from Context. Warm Up

GMAT Club Diagnostic Test

I am going to build a snowman!

Discrete Math. Background Knowledge/Prior Skills Commutative and associative properties Solving systems of equations

CS 580: Algorithm Design and Analysis. Jeremiah Blocki Purdue University Spring 2018

MAT 121: Mathematics for Business and Information Science Final Exam Review Packet

Stochastic Problems. 1 Examples. 1.1 Neoclassical Growth Model with Stochastic Technology. 1.2 A Model of Job Search

Math E-21b Spring 2018 Homework #1 Problems due in class on Thurs, Feb 1 or online by Sat, Feb 3, 11:59pm EST: Section 1.1:

Lesson 22: Solving Equations Using Algebra

Chapter 3. Q1. Show that x = 2, if = 1 is a solution of the system of simultaneous linear equations.

Formulae Using an algebraic formula CHAPTER. A h(a b) F 22

Algebra 1 Fall Review

Keystone Exam Review: Module 2. Linear Functions and Data Organizations

Markov Chains (Part 3)

40 min NUMERACY. year. Use 2B or HB pencil only SESSION 2. Time available for students to complete test: 40 minutes

Transcription:

Technische Universität München WS 205/6 Lehrstuhl für Informatik V Scientific Computing Dr. T. Neckel 02..205/04..205 M.Sc. D. Jarema Worksheet 2 Problems Eigenvalue Problems and Algebraic Models (I) Exercise : Leontief Economic Model - Economic Sectors In the Leontief input-output module, the economy is made up of companies or broadly-drawn economic sectors, each producing only one product. In case of multi-product companies, one can mentally split it up to satisfy the previous condition. The production of one unit of product requires a known recipe of input products, commodities and services. Let us consider a simple economic system consisting of the following sectors: agriculture, manufacturing, and household, where household corresponds to employees and their labor to products. The economic relations between the sectors are given in the table: From/To Agriculture Manufacturing Household Agriculture 4 6 0 Manufacturing 8 8 4 Household 8 6 6 Total 20 0 20 Here is an example of how you should read the table: the first column shows that agriculture uses 4 units of its own production, 8 units of manufacturing, and 8 units of household production (labor) to produce 20 units of agriculture in total. The economic relations of the provided system can be expressed in a matrix vector product form x in = Ax out, where A is called the production matrix and x in, x out are the input and output vectors with components corresponding to number of products from different sectors: x = # agriculture production units # manufacturing production units # household production units (a) Write down the production matrix A for the economic system described in the table.

(b) Can the region where economy is described by the provided table survive as a closed economic system (all manufactured products are further consumed for a following production cycle) (c) Alternatively, the same economy can be modeled as an open system. In this approach, the relation between the agriculture and manufacturing is described by the production /5 /5 0 matrix A =, and the household by the demand vector d =. Then, 2/5 /5 4 the input/output module is given by equation xin = Axout + d. For which production vector x do we then obtain a stable solution (I) Exercise 2: Ice Cream Shop John regularly visits an ice cream shop. He likes three types of ice cream: with fruit, with nuts, and with chocolate. If the previous time he had fruit ice cream, the next time he buys chocolate ice cream. If instead it was chocolate ice cream, he takes ice cream with nuts, and after ice cream with nuts, he always enjoys fruit ice cream (see the left Figure ). Nuts Ice Cream Nuts Ice Cream sun rain rain sun Fruit Ice Cream Chocolate Ice Cream Fruit Ice Cream Chocolate Ice Cream Figure : Schemes of John s ice cream choice: left - initial scheme, right - scheme with weather impact. We can model John s behavior by a Markov process. The resulting stochastic matrix describing John s choice is 0 0 p( f f ) p( f c) p( f n) A = p ( c f ) p ( c c ) p ( c n ) = 0 0, 0 0 p(n f ) p(n c) p(n n) () where p(y x ) is the conditional probability that John takes y type ice cream after x type ice cream ( f - fruit ice cream, c - chocolate ice cream, n - nuts ice cream). If we know with certain probabilities which type of ice cream he ate the previous time pn = [ f c n]t, f + c + n =, we can compute the probabilities of each ice cream for the next choice pm+ : pm+ = Apm (2) (a) Show that if we start with the ice cream type probabilities p0 = [ 0 0] T, equation (2) will correspond to the scheme in the left Figure. Hint: what is p, p2 2

(b) Later, we noticed that John s choice also depends on the weather conditions. If it is sunny, he forgets about his previous choice and takes fruit ice cream. But if it is raining, he always buys chocolate ice cream. Now, his behavior is described by the scheme in the right Figure. Modify the matrix A to consider this peculiarity in John s behavior, if the probability of a sunny day is /2 and of a rainy day is /4 in the place he lives and it cannot be sunny and rainy at the same time. (c) Equation (2) has a stationary solution only if matrix A has an eigenvalue equal. Use the fact that stochastic matrices like A always have an eigenvalue λ = and find the stationary solution for the modified matrix A. (d) Show that the absolute values of other eigenvalues of the stochastic matrix A from the previous task are less than. Hint: the characteristic equation is 6λ 2λ 2 λ = 0. (e) What are the probabilities of John s choice p m in the long term limit m (H) Exercise : Virus Mutation Suppose a virus can exist in N different strains (species) and in each new generation it either stays the same or mutates to another strain. Among all N strains there is one especially dangerous strain. Therefore, we are only interested if the virus is in the dangerous strain or not. The probability that the dangerous strain mutates to another strain is 0 < α < and that another strain mutates to exactly the dangerous strain is 0 < β <. The process is described by a Markov chain, whose diagram is presented in Figure 2. α -α Dangerous strain β Other strains -β Figure 2: Two state virus mutation diagram.

The transition matrix describing the evolution of the probabilities is given by ( ) α β P =. () α β The transition matrix allows us to find the probabilities f n+ at time step n + to have the virus in the dangerous and other strains if we know the probabilities at time step n: ( ) ( ) α β an f n+ = Pf n =, α β where a n, b n are the probabilities of the dangerous and other strains at time step n. (a) What is the probability distribution f n in the long term limit n Why does it not depend on the initial distribution (b) What is the probability that the virus is in the dangerous strain in the nth generation if initially (0th generation) the virus was also in the dangerous strain (c) Suppose that every virus strain mutates (changes strain to any other of N strains, which can be dangerous or not) with the same probability α. Any of the left N strains has the same probability to be the result of the mutation. What is the value of β in the transition matrix () (d) We would like to extend our model and distinguish two virus strains instead of one. The process diagram for the new model is shown in Figure. Find the missing probabilities, b n -α Strain B -α Strain A Other strains Figure : Three state virus mutation diagram. if the condition from (c) is true. Write down the resulting transition matrix. 4

(H*) Exercise 4: Leontief Economic Model - Two Companies In a virtual city, we have n companies. Each company sells its own product x j, j =,..., n. Besides, in order to produce one unit of its product, the company j requires A ij units of the product from company i. The matrix A ij, i, j =,..., n hence describes the production relations within our city. An import economic question is how much of each product should be produced to closely satisfy the total demand. We can use the matrix A to find out how many products x (t) we have to invest to produce products x (t+) : x (t) = Ax (t+), (4) where we intentionally use x (t), x (t+) to denote the input and output in the equation to stress the difference between an economic and, for example, a population model. In the population model we usually know the initial condition and we are interested in the further evolution of the population, while in the economic model we want to know how many products we have to produce now to satisfy certain demands in the future or find a stable economic situation. (a) Closed economic system: Assume that our city is not involved in any trades with companies from other cities (no export or import). Each company hence uses all its incomes for further productions. How can we estimate the amount of products x i which are required to have a stable economic system (that is everything that is produced is used for further productions again) (b) Consider the production matrix: 4 8 9 8 A := 2 4 4 0 0 2 Compute its eigenvalues and eigenvectors. Can the respective city - based on this production matrix potentially survive as a closed economic system (c) Since a new company will enter the city market in two years, the companies from (b) have to provide x = (.5,, 0) products until then. Assume that the production matrix denotes the requirements that need to be fulfilled within one year. How many products do the companies need to provide at the present stage according to the Leontief model How does this behavior relate to the eigenvalues of our system (d) Import and export: Our city is now allowed to buy and sell products from/to other companies from outside. How can we modify our model to include this property For which vector x do we then obtain a stable solution for the economic state of our city (5) (H*) Exercise 5: Sport Rankings Alice and Bob like watching baseball games. They watch approx. one match per day. Since they are very big fans, they know all about the statistics of the teams (i.e. how often did team 5

i win against j and vice versa; there are no draws). (a) Bob likes those teams who win. If his current favorite team wins, he will also watch this team s next match on the following day. If the team loses, Bob changes his mind and watches the match of the respective winner team. How often will Bob stay with one team in future (b) With a probability β, a match needs to be canceled due to bad weather. Similar to Bob, Alice also watches the matches of the winner teams (hence, if her favorite team wins, she normally stays with this team as well and otherwise switches to the new winner team). If there is bad weather, Alice randomly chooses the team and will watch this team s match the next day. How long will Alice stay with each team (H*) Exercise 6: Professor and Driving License Professor Schmidt is traveling to work by car. Sometimes he forgets to take his driving license. The probability that the professor forgets his driving license is p. We distinguish three different situations when the professor is driving to work or home:. The professor has his driving license with him in the car. 2. The professor has his driving license at the point of departure.. The professor has his driving license at his destination. The diagram describing these three situations and showing the conditional probabilities is demonstrated in Figure 4. -p p -p p 2 Figure 4: Scheme of three different situations for the professor s way to home or to office. 6

The transition matrix describing the evolution of probabilities of each of the three situations is given by p 0 p ˆP = p 0 p. (6) 0 0 The transition matrix allows us to find the probabilities x n+ at time step n + if we know the probabilities at time step n: x n+ = ˆPx n (7) (a) We know that the professor returned home with the driving license. What are the probabilities of all three situations on his return home the next day (b) Show that it does not matter what the initial probabilities x 0 are, in the long term limit n the probabilities vector x n will always converge to the stationary solution. Find this stationary solution. (c) After the Easter vacation, the professor s wife took measures and made sure that the professor has the driving license with him on his first trip to work. Furthermore, we know that the probability that the professor forgets his driving license is p = 0.5 and the transition matrix has the form 0.5 0 0.5 ˆP = 0.5 0 0.5. (8) 0 0 The expected number of times when the professor has his driving license with him after n trips is computed by formula n N = c x m, (9) m=0 where vector c = (, 0, 0). Show that N(n) = n + 7 9 + 2 9 ( 2) n. Hint: You may use the eigenvalue decomposition of the transaction matrix: ˆP = ˆV ˆD ˆV 2 0 0 2 = 0 0 0 0 0. (0) 2 0 0 And the geometric series: n ar m = a rn m=0 r. () (d) Now and then, the professor is checked with probability α by the road police. If during the check the professor finds out that his driving license is at the point of departure, he returns and the next time drives with the license, otherwise he drives further and does not forget to take the driving license for the next trip. 7

Extend the diagram of the initial model and write the corresponding probabilities in Figure 5. Construct the corresponding transition matrix. -p p 2 Figure 5: Scheme of three different situations on professor s way to home or office with possible police check. 8