Successive matrix multiplication

Click For Summary

Discussion Overview

The discussion revolves around modeling the dynamics of a flu epidemic using matrix multiplication. Participants explore how to represent the transition of a population between healthy and ill states over time, specifically focusing on the probabilities of remaining healthy or sick. The context includes theoretical formulation and MATLAB implementation.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant outlines the problem of determining the percentage of ill individuals after a number of days, given initial conditions and probabilities.
  • Another participant proposes a mathematical formulation for the number of healthy individuals based on the probabilities of remaining healthy and transitioning from sick to healthy.
  • A participant seeks clarification on how to express the equation for the number of sick individuals in a similar manner.
  • One participant suggests a matrix-vector product representation and provides a general structure for the matrix multiplication.
  • Another participant attempts to identify the coefficients of the matrix based on their understanding of the equations but expresses uncertainty about their formulation for the number of sick individuals.

Areas of Agreement / Disagreement

Participants are engaged in a collaborative exploration of the problem, with some expressing uncertainty about specific formulations and others providing insights. No consensus has been reached on the exact matrix representation or the equations for the variables.

Contextual Notes

Participants have not fully resolved the mathematical steps necessary to derive the complete matrix representation. There are indications of missing assumptions regarding the initial conditions and the definitions of the variables involved.

sara_87
Messages
748
Reaction score
0
On a given day of a flu epidemic, a given percentage Y of the population is ill and (1-Y) is healthy. The probability of remaining healthy on the next day is a, and that of remaining sick is B. The question is, what percentage will be ill after a given number of days as a function of B,a and Y.

Write down the problem as a matrix multiplication of the vector of healthy and ill people. Define a MATLAB function that gives the percentage of ill people after n days for arbitrary B a,and Y.

any hints will be appreciated v much
thank you
 
Computer science news on Phys.org
sara_87 said:
On a given day of a flu epidemic, a given percentage Y of the population is ill and (1-Y) is healthy. The probability of remaining healthy on the next day is a, and that of remaining sick is B. The question is, what percentage will be ill after a given number of days as a function of B,a and Y.

Write down the problem as a matrix multiplication of the vector of healthy and ill people. Define a MATLAB function that gives the percentage of ill people after n days for arbitrary B a,and Y.

any hints will be appreciated v much
thank you

# healthy people = # people staying healthy + # new healthy people

The odds of staying healthy are a, so
# people staying healthy = a * # healthy people

New healthy people are sick people who did not stay sick. The odds of staying sick are B, so the odds of NOT remaining sick, i.e. new healthy people is (1-B), so
# new healthy people = (1-B) * # sick people

So if Y is the number of healthy people and X is the number of sick people at a given time,
Y[n+1] = a*Y[n] + (1-B)*X[n]

Write down a similar equation for X[n+1]. Do you see how this can be written as a matrix-vector product?
 
would the equation for X[n+1] be:
X[n+1]=B*X[n]+(1-B)*X[n]

i understood everything you did but I'm struggling to write it as a matrix vector product.
would it be something like:
(X,Y)=(somthing with a)+(something with b)
?
thank you
 
You want to write

[tex] \begin{bmatrix} A_{11} & A_{12} \\ A_{21} & A_{22} \end{bmatrix}<br /> \begin{bmatrix} X_n \\ Y_n \end{bmatrix} =<br /> \begin{bmatrix} X_{n+1} \\ Y_{n+1} \end{bmatrix} [/tex]

Multiplying this out gives

[tex] \begin{array}{c} X_{n+1} \\ Y_{n+1} \end{array} =<br /> \begin{array}{cc} A_{11}X[n] + A_{12}Y[n] \\ A_{21}X[n] + A_{22}Y[n] \end{array}[/tex]

so find the coefficients for the A matrix that make this match your equations.
 
oh ok so A(21) would be=(1-B)
and A(22) would be=a
is that right?
and how do i find A(11) and A(12) because I'm not so convinced about my equation for X[n+1]??
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
Replies
2
Views
1K
  • · Replies 8 ·
Replies
8
Views
3K
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K