SlideShare a Scribd company logo
Context
 In all of the examples we have seen so far, the
populations are fixed and no one can leave or enter, all
they can do is move around between nodes
 However, in reality, we can come and go as we please,
we are not trapped in a bubble
The equation
 We can represent a transition scenario with people
joining or leaving the population as:
𝑆 𝑛+1 = 𝑇𝑆 𝑛 + 𝐵
Where:
𝑆 𝑛+1 is the next state (a column matrix)
𝑆 𝑛 is the current state (a column matrix)
𝑇 is the transition matrix (a square matrix)
𝐵 is the addition or loss (a column matrix)
𝑆0 is the initial state
Example
 A gym has three programs: Yoga, CrossFit and Aerobics.
Initially, there are 100 people doing the Yoga Program, 200
people are in the CrossFit Program and 300 people in the
Aerobics program.
 Each month, 2% of people in Yoga change to CrossFit, 4%
of people in Yoga change to Aerobics and 3 new people join
the gym and pick Yoga
 Each month, 5% of people in CrossFit change to Yoga , 1%
of people in CrossFit change to Aerobics and 1 person
doing CrossFit leaves the gym all together
 Each month, 2% of people in Aerobics change to Yoga, 2%
of people in Aerobics change to CrossFit and 2 new people
join the gym and pick Aerobics
Example Continued
a) Set up a recurrence relation 𝑆 𝑛+1 = 𝑇𝑆 𝑛 + 𝐵
for the scenario by stating T and B.
b) State the initial state matrix
c) Find the number of people doing each activity after
one and two weeks.
Example cont.
a) Set up a recurrence relation 𝑆 𝑛+1 = 𝑇𝑆 𝑛 + 𝐵
for the scenario by stating T and B.
Each month, 2% of people in Yoga change to CrossFit, 4% of people in Yoga
change to Aerobics and 3 new people join the gym and pick Yoga
𝑌 𝐶 𝐴
𝑇 =
𝑌
𝐶
𝐴
0.94
0.02
0.04
𝐵 =
𝑌
𝐶
𝐴
3
Since each month 2% leave for CrossFit and
4% leave for Aerobics, there is 94% left over
who stay with Yoga.
Three people join Yoga, so we have positive
three in B.
Example cont.
a) Set up a recurrence relation 𝑆 𝑛+1 = 𝑇𝑆 𝑛 + 𝐵
for the scenario by stating T and B.
Each month, 5% of people in CrossFit change to Yoga , 1% of people in
CrossFit change to Aerobics and 1 person doing CrossFit leaves the gym all
together
𝑌 𝐶 𝐴
𝑇 =
𝑌
𝐶
𝐴
0.94 0.05
0.02 0.94
0.04 0.01
𝐵 =
𝑌
𝐶
𝐴
3
−1
Since each month 5% leave for Yoga and 4%
leave for Aerobics, there is 94% left who stay
with CrossFit.
Since each month one person leaves the gym
who is doing CrossFit we have -1.
Example cont.
a) Set up a recurrence relation 𝑆 𝑛+1 = 𝑇𝑆 𝑛 + 𝐵
for the scenario by stating T and B.
Each month, 2% of people in Aerobics change to Yoga, 2% of people in
Aerobics change to CrossFit and 2 new people join the gym and pick Aerobics
𝑌 𝐶 𝐴
𝑇 =
𝑌
𝐶
𝐴
0.94 0.05 0.02
0.02 0.94 0.02
0.04 0.01 0.96
𝐵 =
𝑌
𝐶
𝐴
3
−1
2
Since each month 2% leave for Yoga and 2%
leave for CrossFit, there is 96% left who stay
with Aerobics.
Two new people join and do Aerobics, so we
have +2.
Example cont.
a) Set up a recurrence relation 𝑆 𝑛+1 = 𝑇𝑆 𝑛 + 𝐵
for the scenario by stating T and B.
𝑌 𝐶 𝐴
𝑆 𝑛+1 =
𝑌
𝐶
𝐴
0.94 0.05 0.02
0.02 0.94 0.02
0.04 0.01 0.96
× 𝑆 𝑛 +
𝑌
𝐶
𝐴
3
−1
2
Example cont.
b) State the initial state matrix
A gym has three programs: Yoga, CrossFit and Aerobics. Initially, there are
100 people doing the Yoga Program, 200 people are in the CrossFit
Program and 300 people in the Aerobics program.
𝑆0 =
𝑌
𝐶
𝐴
100
200
300
Example cont.
c) Find the number of people doing each activity after
one and two weeks.
𝑆1 = 𝑇𝑆0 + 𝐵
𝑆1 =
0.94 0.05 0.02
0.02 0.94 0.02
0.04 0.01 0.96
×
100
200
300
+
3
−1
2
𝑆1 =
113
195
296
After one week there are 113 people at Yoga, 195 people at
CrossFit and 296 people at Aerobics.
Example cont.
c) Find the number of people doing each activity after one
and two weeks.
𝑆2 = 𝑇𝑆1 + 𝐵
𝑆2 =
0.94 0.05 0.02
0.02 0.94 0.02
0.04 0.01 0.96
×
113
195
296
+
3
−1
2
𝑆2 =
124.89
190.48
292.63
After two weeks there are 125 people at Yoga, 190 people at
CrossFit and 293 people at Aerobics. Notice that the total
number of people in the population is changing.

More Related Content

Recently uploaded

PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Diana Rendina
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
Wahiba Chair Training & Consulting
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 

Recently uploaded (20)

PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Lesson 9 c transition part 3

  • 1.
  • 2. Context  In all of the examples we have seen so far, the populations are fixed and no one can leave or enter, all they can do is move around between nodes  However, in reality, we can come and go as we please, we are not trapped in a bubble
  • 3. The equation  We can represent a transition scenario with people joining or leaving the population as: 𝑆 𝑛+1 = 𝑇𝑆 𝑛 + 𝐵 Where: 𝑆 𝑛+1 is the next state (a column matrix) 𝑆 𝑛 is the current state (a column matrix) 𝑇 is the transition matrix (a square matrix) 𝐵 is the addition or loss (a column matrix) 𝑆0 is the initial state
  • 4. Example  A gym has three programs: Yoga, CrossFit and Aerobics. Initially, there are 100 people doing the Yoga Program, 200 people are in the CrossFit Program and 300 people in the Aerobics program.  Each month, 2% of people in Yoga change to CrossFit, 4% of people in Yoga change to Aerobics and 3 new people join the gym and pick Yoga  Each month, 5% of people in CrossFit change to Yoga , 1% of people in CrossFit change to Aerobics and 1 person doing CrossFit leaves the gym all together  Each month, 2% of people in Aerobics change to Yoga, 2% of people in Aerobics change to CrossFit and 2 new people join the gym and pick Aerobics
  • 5. Example Continued a) Set up a recurrence relation 𝑆 𝑛+1 = 𝑇𝑆 𝑛 + 𝐵 for the scenario by stating T and B. b) State the initial state matrix c) Find the number of people doing each activity after one and two weeks.
  • 6. Example cont. a) Set up a recurrence relation 𝑆 𝑛+1 = 𝑇𝑆 𝑛 + 𝐵 for the scenario by stating T and B. Each month, 2% of people in Yoga change to CrossFit, 4% of people in Yoga change to Aerobics and 3 new people join the gym and pick Yoga 𝑌 𝐶 𝐴 𝑇 = 𝑌 𝐶 𝐴 0.94 0.02 0.04 𝐵 = 𝑌 𝐶 𝐴 3 Since each month 2% leave for CrossFit and 4% leave for Aerobics, there is 94% left over who stay with Yoga. Three people join Yoga, so we have positive three in B.
  • 7. Example cont. a) Set up a recurrence relation 𝑆 𝑛+1 = 𝑇𝑆 𝑛 + 𝐵 for the scenario by stating T and B. Each month, 5% of people in CrossFit change to Yoga , 1% of people in CrossFit change to Aerobics and 1 person doing CrossFit leaves the gym all together 𝑌 𝐶 𝐴 𝑇 = 𝑌 𝐶 𝐴 0.94 0.05 0.02 0.94 0.04 0.01 𝐵 = 𝑌 𝐶 𝐴 3 −1 Since each month 5% leave for Yoga and 4% leave for Aerobics, there is 94% left who stay with CrossFit. Since each month one person leaves the gym who is doing CrossFit we have -1.
  • 8. Example cont. a) Set up a recurrence relation 𝑆 𝑛+1 = 𝑇𝑆 𝑛 + 𝐵 for the scenario by stating T and B. Each month, 2% of people in Aerobics change to Yoga, 2% of people in Aerobics change to CrossFit and 2 new people join the gym and pick Aerobics 𝑌 𝐶 𝐴 𝑇 = 𝑌 𝐶 𝐴 0.94 0.05 0.02 0.02 0.94 0.02 0.04 0.01 0.96 𝐵 = 𝑌 𝐶 𝐴 3 −1 2 Since each month 2% leave for Yoga and 2% leave for CrossFit, there is 96% left who stay with Aerobics. Two new people join and do Aerobics, so we have +2.
  • 9. Example cont. a) Set up a recurrence relation 𝑆 𝑛+1 = 𝑇𝑆 𝑛 + 𝐵 for the scenario by stating T and B. 𝑌 𝐶 𝐴 𝑆 𝑛+1 = 𝑌 𝐶 𝐴 0.94 0.05 0.02 0.02 0.94 0.02 0.04 0.01 0.96 × 𝑆 𝑛 + 𝑌 𝐶 𝐴 3 −1 2
  • 10. Example cont. b) State the initial state matrix A gym has three programs: Yoga, CrossFit and Aerobics. Initially, there are 100 people doing the Yoga Program, 200 people are in the CrossFit Program and 300 people in the Aerobics program. 𝑆0 = 𝑌 𝐶 𝐴 100 200 300
  • 11. Example cont. c) Find the number of people doing each activity after one and two weeks. 𝑆1 = 𝑇𝑆0 + 𝐵 𝑆1 = 0.94 0.05 0.02 0.02 0.94 0.02 0.04 0.01 0.96 × 100 200 300 + 3 −1 2 𝑆1 = 113 195 296 After one week there are 113 people at Yoga, 195 people at CrossFit and 296 people at Aerobics.
  • 12. Example cont. c) Find the number of people doing each activity after one and two weeks. 𝑆2 = 𝑇𝑆1 + 𝐵 𝑆2 = 0.94 0.05 0.02 0.02 0.94 0.02 0.04 0.01 0.96 × 113 195 296 + 3 −1 2 𝑆2 = 124.89 190.48 292.63 After two weeks there are 125 people at Yoga, 190 people at CrossFit and 293 people at Aerobics. Notice that the total number of people in the population is changing.