SlideShare une entreprise Scribd logo
1  sur  26
Télécharger pour lire hors ligne
October
2019
How to use a Kalman Filter in Brand Tracking?
Jane Tang
Webinar, 4
October 2019
#NewMR Sponsors
Communication
Gold
Silver
October
2019
How to use a Kalman Filter in Brand Tracking?
Jane Tang
jane.tang@bootstrapanalytics.com
3
FLY ME TO THE MOON:
The Application Of Kalman Filter To Tracking Data
Jane Tang, Andrew Grenville & Karen Buros
SAMPLING IN THE RIVER TWITTER:
A DIY Tool for Social Media Tracking via the REST API
Jack Horne & Jane Tang
Advanced Research Techniques Forum 2016 & 2017
4
- “Smooth” trajectory
- Periodical observations
- Random measurement errors
- Simple and flexible tool to optimally separate the signal from the
noise in the data
5
Tracking movement of
a spacecraft going to the moon
https://ieeexplore.ieee.org/document/5466132
Apollo Space Program
Tracking perception of a brand in the
minds of consumers
Brand Tracking
How Kalman Filter Works
http://bilgin.esme.org/BitsBytes/KalmanFilterforDummies.aspx
http://www.cs.unc.edu/~tracker/media/pdf/SIGGRAPH2001_CoursePack_08.pdf
!𝑋# = 𝐾# & 𝑋# + 1 − 𝐾# & !𝑋#*+
estimation at time t
Kalman gain
measured value estimation at time (t – 1)
State/prior equation
,𝑥# = .𝑥#*+ + 𝑤# → 𝑝 𝑤 ~𝑁 0, 𝑄
Measurement/update equation
.𝑥# = 𝑥# + 𝑣# → 𝑝 𝑣 ~𝑁 0, 𝑅
6
Equations Simplify to a Random Walk
!𝑋# = 𝐾# & 𝑋# + 1 − 𝐾# & !𝑋#*+
estimation at time t
Kalman gain
measured value estimation at time (t – 1)
Time update
“prediction”
,𝑥# = .𝑥#*+
(1) Prior for subsequent state
(2) Prior error covariance
9𝑃# = 𝑃#*+ + 𝑄
external shock
Measurement update
“correction”
random walk
(1) Compute the Kalman gain
𝐾# = 9𝑃#
9𝑃# + 𝑅
*+
random measurement error
(2) Update estimate
.𝑥# = ,𝑥# + 𝐾# 𝑥# − ,𝑥#
(3) Update error covariance
𝑃# = 9𝑃# 1 − 𝐾#random walk
7
A Simple Example
𝑡 𝑥# ,𝑥#
9𝑃# Time update Measurement update .𝑥# 𝑃#
1 0.390 0.000 1.000 ,𝑥< = 0
9𝑃< = 1
𝐾# = 9𝑃#
9𝑃# + 𝑅
*+
=1 1 + 0.1 *+
= 0.909
.𝑥# = ,𝑥# + 𝐾# 𝑥# − ,𝑥#
= 0 + 0.909 0.390 − 0 = 0.355
𝑃# = 9𝑃# 1 − 𝐾#
=1 1 − 0.909 = 0.091
0.355 0.091
2 0.500 0.355 0.092 ,𝑥# = .𝑥#*+ = 0.355
9𝑃# = 𝑃#*+ + 𝑄 = 0.092
𝐾# = 0.092 0.092 + 0.1 *+
= 0.479
.𝑥# = 0.355 + 0.479 0.5 − 0.355 = 0.424
𝑃# = 0.092 1 − 0.479 = 0.048
0.424 0.048
3 0.480 0.424 0.049 0.443 0.033
4 0.290 0.443 0.034 0.404 0.025
𝑅 = 0.1 variance around observations (best guess) 𝑄 = 0.001 external shock variance
8
A Simple Example
Value(x)
Time (t)
9
Size of the Measurement Error (R)
Value(x)
Time (t)
10
Detecting Trend
Value(x)
Time (t)
11
12
† We have large, long-term (6+ years) tracking programs, carefully controlled wave-to-
wave, with trend lines like these. How clear is the story?
Continuing to gain ground?
Year 1.1Year 1.2Year 2.1 Year2.2 Year 3.1Year 3.2Year 4.1Year 4.2Year 5.1Year 5.2Year 6.1Year 6.2Year 7.1
Likelihood to Recommend
Competitor 1
Competitor 2
Competitor 3
Competitor 4
Competitor 5
Competitor 6
Yr 1A Yr 1B Yr 2A Yr 2B Yr 3A Yr 3B Yr 4A Yr 4B Yr 5A Yr 5B Yr 6A Yr 6B Yr 7A
Favorite
Competitor 1
Competitor 2
Competitor 3
Competitor 4
Competitor 5
Competitor 6
Stabilizing?
Losing steam?
The Truth: I Dread Tracking Data
13
First, let’s standardize the results to the
baseline measurement
Then we can apply the Kalman Filter
80
90
100
110
120
130
140
150
160
Year 1.1 Year 1.2 Year 2.1 Year2.2 Year 3.1 Year 3.2 Year 4.1 Year 4.2 Year 5.1 Year 5.2 Year 6.1 Year 6.2 Year 7.1
Kalman Estimate Likely to Recommend: Ratio to Baseline
Competitor 1
Competitor 2
Competitor 3
Competitor 4
Competitor 5
Competitor 6
80
90
100
110
120
130
140
150
160
Year 1.1 Year 1.2 Year 2.1 Year2.2 Year 3.1 Year 3.2 Year 4.1 Year 4.2 Year 5.1 Year 5.2 Year 6.1 Year 6.2 Year 7.1
Observed Likely to Recommend: Ratio to Baseline
Competitor 1
Competitor 2
Competitor 3
Competitor 4
Competitor 5
Competitor 6
What’s happening here?
Can the Kalman Filter Clarify the Story?
14
A More Detailed The Effect of the Filter?
† Kalman Filter for Competitors 2 and 3 – Softening the extremes
80
90
100
110
120
130
140
150
160
Year
1.1
Year
1.2
Year
2.1
Year2.2 Year
3.1
Year
3.2
Year
4.1
Year
4.2
Year
5.1
Year
5.2
Year
6.1
Year
6.2
Year
7.1
Likelihood to Recommend: Competitors 2 and 3
Observed 2
Estimated 2
Observed 3
Estimated 3
15
Taking a Look at Favorite Brand…
We standardize the results to the baseline
measurement
Then apply the Kalman Filter
40
60
80
100
120
140
160
180
Year 1.1 Year 1.2 Year 2.1 Year2.2 Year 3.1 Year 3.2 Year 4.1 Year 4.2 Year 5.1 Year 5.2 Year 6.1 Year 6.2 Year 7.1
Observed Favorite: Ratio to Baseline
Competitor 1
Competitor 2
Competitor 3
Competitor 4
Competitor 5
Competitor 6
40
60
80
100
120
140
160
180
Year 1.1 Year 1.2 Year 2.1 Year2.2 Year 3.1 Year 3.2 Year 4.1 Year 4.2 Year 5.1 Year 5.2 Year 6.1 Year 6.2 Year 7.1
Kalman Estimate Favorite: Ratio to Baseline
Competitor 1
Competitor 2
Competitor 3
Competitor 4
Competitor 5
Competitor 6
Competitor 4 Suffers
16
A More Detailed Look at Competitors 4 and 5
† Again, softening the extremes
40
60
80
100
120
140
160
180
Year
1.1
Year
1.2
Year
2.1
Year2.2
Year
3.1
Year
3.2
Year
4.1
Year
4.2
Year
5.1
Year
5.2
Year
6.1
Year
6.2
Year
7.1
Favorite: Competitors 4 and 5
Observed 4
Estimated 4
Observed 5
Estimated 5
KF provides a way to
simultaneously account
for ‘time’ (as an
alternative to ‘three
month rolling average’)
and measurement error.
17
Can We Apply This Approach to Social Media Data?
† Social positive sentiment over the tracking
period
† Application of the Kalman Filter smooths the
trend lines a bit. Greater variation across time is
likely due to changing social media audience
creating the ‘sentiment’ values.
0.40
0.45
0.50
0.55
0.60
0.65
0.70
Year 1.1Year 1.2Year 2.1 Year2.2 Year 3.1Year 3.2Year 4.1Year 4.2Year 5.1Year 5.2Year 6.1Year 6.2Year 7.1
Social Media: Positive Sentiment
Competitor 1
Competitor 2
Competitor 3
Competitor 4
Competitor 5
Competitor 6
0.40
0.45
0.50
0.55
0.60
0.65
0.70
Year
1.1
Year
1.2
Year
2.1
Year2.2 Year
3.1
Year
3.2
Year
4.1
Year
4.2
Year
5.1
Year
5.2
Year
6.1
Year
6.2
Year
7.1
Kalman Estimate: Positive Sentiment
Competitor 1
Competitor 2
Competitor 3
Competitor 4
Competitor 5
Competitor 6
18
Running Average vs. Kalman Filter
Royal Bank, Olympic Sponsorship Awareness, Jan-Jun 2008 (pre), Jan-Jun 2010 (during), and Jan-Jun 2011 (post)
Incorporating Known System Instability
𝑡 𝑥# ,𝑥#
9𝑃# .𝑥# 𝑃#
1 0.390 0.000 1.000 0.355 0.091
𝑅 = 0.1 variance around observations (best guess) 𝑄 = 𝑣𝑎𝑟𝑖𝑎𝑏𝑙𝑒
𝑞#
0.001
2 0.500 0.355 0.092 0.424 0.0480.001
3 0.480 0.424 0.049 0.443 0.0330.001
4 0.290 0.443 0.034 0.404 0.0250.001
5 0.250 0.404 0.026 0.356 0.0310.020
6 0.320 0.356 0.031 0.340 0.0450.050
7 0.340 0.340 0.045 0.340 0.0590.100
8 0.480 0.340 0.059 0.397 0.0410.010
9 0.410 0.397 0.041 0.401 0.0300.001
9𝑃# = 𝑃#*+ + 𝑄
external shock
𝐾# = 9𝑃#
9𝑃# + 𝑅
*+
random measurement error
𝐾#
0.909
0.479
0.328
0.253
0.312
0.448
0.592
0.409
0.295
𝑃# = 9𝑃# 1 − 𝐾#
19
Incorporating Known System Instability
0.000
0.100
0.200
0.300
0.400
0.500
0.600
1 2 3 4 5 6 7 8 9 10
Observed Estimated with System Shock
Value(x)
Time (t)
Q
20
K
20K
40K
60K
19 26 2 9 16 23 2 9 16 23 30 6 13 20 27 4 11 18 25 1
NumberofTweetsmentioning“trump”
0
January 2017 February March April May
Incorporating Twitter Brand Mention in Brand Tracking
Twitter Brand mention is used as an indicator of
system instability.
“Buzz” brand equity volatility∝
9𝑃# = 𝑃#*+ + 𝑄
June
21
Tracking the “Trump” Brand
January 2017 February March April May
Trumpapprovalrating(SBA)
Total US Sample
June
38%
40%
42%
44%
46%
48%
50%
25 27 30 3 6 10 15 17 27 1 10 13 15 17 22 27 29 5 7 12 19 21 24 26 28 5 8 17 24 2 7
Raw KF - Constant KF w Twitter Updates
22
“Trump” Brand Tracking in Subpopulation
Trumpapprovalrating(SBA)
Midwest Female
January 2017 February March April May June
20%
30%
40%
50%
60%
25 27 30 3 6 10 15 17 27 1 10 13 15 17 22 27 29 5 7 12 19 21 24 26 28 5 8 17 24 2 7
Raw KF - Constant KF w Twitter Updates
23
THANK YOU!
jane.tang@bootstrapanalytics.com
24
25
Q & A
Ray Poynter
Chief Research Officer
Potentiate
Jane Tang
Principal
Bootstrap Analytics
#NewMR Sponsors
Communication
Gold
Silver
October
2019

Contenu connexe

Similaire à How to use a Kalman Filter in Brand Tracking?

NORTHERN ILLINOIS UNIVERSITY PHYSICS DEPARTMENT .docx
NORTHERN ILLINOIS UNIVERSITY PHYSICS DEPARTMENT .docxNORTHERN ILLINOIS UNIVERSITY PHYSICS DEPARTMENT .docx
NORTHERN ILLINOIS UNIVERSITY PHYSICS DEPARTMENT .docx
curwenmichaela
 
Avoiding Black Boxes with Data Science part I & II - Marko Vasiljevski
 Avoiding Black Boxes with Data Science part I & II - Marko Vasiljevski Avoiding Black Boxes with Data Science part I & II - Marko Vasiljevski
Avoiding Black Boxes with Data Science part I & II - Marko Vasiljevski
Institute of Contemporary Sciences
 
Thesis-presentation: Tuenti Engineering
Thesis-presentation: Tuenti EngineeringThesis-presentation: Tuenti Engineering
Thesis-presentation: Tuenti Engineering
Marcus Ljungblad
 

Similaire à How to use a Kalman Filter in Brand Tracking? (20)

Get data
Get dataGet data
Get data
 
AP Statistics - Confidence Intervals with Means - One Sample
AP Statistics - Confidence Intervals with Means - One SampleAP Statistics - Confidence Intervals with Means - One Sample
AP Statistics - Confidence Intervals with Means - One Sample
 
Test Automation Day 2018
Test Automation Day 2018Test Automation Day 2018
Test Automation Day 2018
 
NORTHERN ILLINOIS UNIVERSITY PHYSICS DEPARTMENT .docx
NORTHERN ILLINOIS UNIVERSITY PHYSICS DEPARTMENT .docxNORTHERN ILLINOIS UNIVERSITY PHYSICS DEPARTMENT .docx
NORTHERN ILLINOIS UNIVERSITY PHYSICS DEPARTMENT .docx
 
Preventive Maintenance-Presentation.pdf
Preventive Maintenance-Presentation.pdfPreventive Maintenance-Presentation.pdf
Preventive Maintenance-Presentation.pdf
 
Preventive Maintenance-Presentation.pdf
Preventive Maintenance-Presentation.pdfPreventive Maintenance-Presentation.pdf
Preventive Maintenance-Presentation.pdf
 
Normal distri
Normal distriNormal distri
Normal distri
 
Astm E74-13a explained
Astm E74-13a explained Astm E74-13a explained
Astm E74-13a explained
 
H2O World - PAAS: Predictive Analytics offered as a Service - Prateem Mandal
H2O World - PAAS: Predictive Analytics offered as a Service - Prateem MandalH2O World - PAAS: Predictive Analytics offered as a Service - Prateem Mandal
H2O World - PAAS: Predictive Analytics offered as a Service - Prateem Mandal
 
Box Plots vs Data Plots
Box Plots vs Data PlotsBox Plots vs Data Plots
Box Plots vs Data Plots
 
Regression and Classification with R
Regression and Classification with RRegression and Classification with R
Regression and Classification with R
 
Modul 9
Modul 9Modul 9
Modul 9
 
XVA
XVAXVA
XVA
 
R. De Santis, M. Fioramanti, A. Girardi, C. Pappalardo - The track record of...
R. De Santis, M. Fioramanti, A. Girardi,  C. Pappalardo - The track record of...R. De Santis, M. Fioramanti, A. Girardi,  C. Pappalardo - The track record of...
R. De Santis, M. Fioramanti, A. Girardi, C. Pappalardo - The track record of...
 
Avoiding Black Boxes with Data Science part I & II - Marko Vasiljevski
 Avoiding Black Boxes with Data Science part I & II - Marko Vasiljevski Avoiding Black Boxes with Data Science part I & II - Marko Vasiljevski
Avoiding Black Boxes with Data Science part I & II - Marko Vasiljevski
 
Thesis-presentation: Tuenti Engineering
Thesis-presentation: Tuenti EngineeringThesis-presentation: Tuenti Engineering
Thesis-presentation: Tuenti Engineering
 
Assignment model problems
Assignment model problemsAssignment model problems
Assignment model problems
 
financial econometric
financial econometricfinancial econometric
financial econometric
 
Assessing the consistency, quality, and completeness of the Reviewed Event Bu...
Assessing the consistency, quality, and completeness of the Reviewed Event Bu...Assessing the consistency, quality, and completeness of the Reviewed Event Bu...
Assessing the consistency, quality, and completeness of the Reviewed Event Bu...
 
Win-Win Search: Dual-Agent Stochastic Game in Session Search (SIGIR 2014)
Win-Win Search: Dual-Agent Stochastic Game in Session Search (SIGIR 2014)Win-Win Search: Dual-Agent Stochastic Game in Session Search (SIGIR 2014)
Win-Win Search: Dual-Agent Stochastic Game in Session Search (SIGIR 2014)
 

Plus de Ray Poynter

Plus de Ray Poynter (20)

The State of AI in Insights and Research 2024: Results and Findings
The State of AI in Insights and Research 2024: Results and FindingsThe State of AI in Insights and Research 2024: Results and Findings
The State of AI in Insights and Research 2024: Results and Findings
 
ResearchWiseAI - an artificial intelligence driven research data analysis tool
ResearchWiseAI - an artificial intelligence driven research data analysis toolResearchWiseAI - an artificial intelligence driven research data analysis tool
ResearchWiseAI - an artificial intelligence driven research data analysis tool
 
AI-powered interviewing: Best practices from Yasna
AI-powered interviewing: Best practices from YasnaAI-powered interviewing: Best practices from Yasna
AI-powered interviewing: Best practices from Yasna
 
Artificial Intelligence and Qual: The Story So Far
Artificial Intelligence and Qual: The Story So FarArtificial Intelligence and Qual: The Story So Far
Artificial Intelligence and Qual: The Story So Far
 
State of Research Insights in Q1, 2024 from NewMR
State of Research Insights in Q1, 2024 from NewMRState of Research Insights in Q1, 2024 from NewMR
State of Research Insights in Q1, 2024 from NewMR
 
Sudden Death of Beliefs
Sudden Death of BeliefsSudden Death of Beliefs
Sudden Death of Beliefs
 
Uncovering Consumers’ Hidden Narratives
Uncovering Consumers’ Hidden NarrativesUncovering Consumers’ Hidden Narratives
Uncovering Consumers’ Hidden Narratives
 
Narrative Exploration of New Categories at Mondelēz
Narrative Exploration of New Categories at MondelēzNarrative Exploration of New Categories at Mondelēz
Narrative Exploration of New Categories at Mondelēz
 
The Future in Focus
The Future in FocusThe Future in Focus
The Future in Focus
 
The Future in Focus
The Future in FocusThe Future in Focus
The Future in Focus
 
The State of Insights – September 2023
The State of Insights – September 2023The State of Insights – September 2023
The State of Insights – September 2023
 
Research Thinking in the age of AI
Research Thinking in the age of AIResearch Thinking in the age of AI
Research Thinking in the age of AI
 
How might AI impact Research and Insights over the next two years?
How might AI impact Research and Insights over the next two years?How might AI impact Research and Insights over the next two years?
How might AI impact Research and Insights over the next two years?
 
From Words to Wisdom: Unleashing the Potential of Language Models for Human-C...
From Words to Wisdom: Unleashing the Potential of Language Models for Human-C...From Words to Wisdom: Unleashing the Potential of Language Models for Human-C...
From Words to Wisdom: Unleashing the Potential of Language Models for Human-C...
 
ChatGPT for Social Media Listening: practical application with YouScan’s Insi...
ChatGPT for Social Media Listening: practical application with YouScan’s Insi...ChatGPT for Social Media Listening: practical application with YouScan’s Insi...
ChatGPT for Social Media Listening: practical application with YouScan’s Insi...
 
Using Generative AI to Assess the Quality of Open-Ended Responses in Surveys
Using Generative AI to Assess the Quality of Open-Ended Responses in SurveysUsing Generative AI to Assess the Quality of Open-Ended Responses in Surveys
Using Generative AI to Assess the Quality of Open-Ended Responses in Surveys
 
Exploring the future of verbatim coding with ChatGPT
Exploring the future of verbatim coding with ChatGPTExploring the future of verbatim coding with ChatGPT
Exploring the future of verbatim coding with ChatGPT
 
Using Generative AI to bring Qualitative Capabilities to Quantitative Surveys
Using Generative AI to bring Qualitative Capabilities to Quantitative SurveysUsing Generative AI to bring Qualitative Capabilities to Quantitative Surveys
Using Generative AI to bring Qualitative Capabilities to Quantitative Surveys
 
How AI / ChatGPT Drives Business Growth
How AI / ChatGPT Drives Business GrowthHow AI / ChatGPT Drives Business Growth
How AI / ChatGPT Drives Business Growth
 
Tech for tech’s sake? Learnings from experiments with AI in consumer research
Tech for tech’s sake? Learnings from experiments with AI in consumer researchTech for tech’s sake? Learnings from experiments with AI in consumer research
Tech for tech’s sake? Learnings from experiments with AI in consumer research
 

Dernier

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Dernier (20)

Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
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
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 

How to use a Kalman Filter in Brand Tracking?

  • 1. October 2019 How to use a Kalman Filter in Brand Tracking? Jane Tang Webinar, 4 October 2019
  • 3. How to use a Kalman Filter in Brand Tracking? Jane Tang jane.tang@bootstrapanalytics.com 3
  • 4. FLY ME TO THE MOON: The Application Of Kalman Filter To Tracking Data Jane Tang, Andrew Grenville & Karen Buros SAMPLING IN THE RIVER TWITTER: A DIY Tool for Social Media Tracking via the REST API Jack Horne & Jane Tang Advanced Research Techniques Forum 2016 & 2017 4
  • 5. - “Smooth” trajectory - Periodical observations - Random measurement errors - Simple and flexible tool to optimally separate the signal from the noise in the data 5 Tracking movement of a spacecraft going to the moon https://ieeexplore.ieee.org/document/5466132 Apollo Space Program Tracking perception of a brand in the minds of consumers Brand Tracking
  • 6. How Kalman Filter Works http://bilgin.esme.org/BitsBytes/KalmanFilterforDummies.aspx http://www.cs.unc.edu/~tracker/media/pdf/SIGGRAPH2001_CoursePack_08.pdf !𝑋# = 𝐾# & 𝑋# + 1 − 𝐾# & !𝑋#*+ estimation at time t Kalman gain measured value estimation at time (t – 1) State/prior equation ,𝑥# = .𝑥#*+ + 𝑤# → 𝑝 𝑤 ~𝑁 0, 𝑄 Measurement/update equation .𝑥# = 𝑥# + 𝑣# → 𝑝 𝑣 ~𝑁 0, 𝑅 6
  • 7. Equations Simplify to a Random Walk !𝑋# = 𝐾# & 𝑋# + 1 − 𝐾# & !𝑋#*+ estimation at time t Kalman gain measured value estimation at time (t – 1) Time update “prediction” ,𝑥# = .𝑥#*+ (1) Prior for subsequent state (2) Prior error covariance 9𝑃# = 𝑃#*+ + 𝑄 external shock Measurement update “correction” random walk (1) Compute the Kalman gain 𝐾# = 9𝑃# 9𝑃# + 𝑅 *+ random measurement error (2) Update estimate .𝑥# = ,𝑥# + 𝐾# 𝑥# − ,𝑥# (3) Update error covariance 𝑃# = 9𝑃# 1 − 𝐾#random walk 7
  • 8. A Simple Example 𝑡 𝑥# ,𝑥# 9𝑃# Time update Measurement update .𝑥# 𝑃# 1 0.390 0.000 1.000 ,𝑥< = 0 9𝑃< = 1 𝐾# = 9𝑃# 9𝑃# + 𝑅 *+ =1 1 + 0.1 *+ = 0.909 .𝑥# = ,𝑥# + 𝐾# 𝑥# − ,𝑥# = 0 + 0.909 0.390 − 0 = 0.355 𝑃# = 9𝑃# 1 − 𝐾# =1 1 − 0.909 = 0.091 0.355 0.091 2 0.500 0.355 0.092 ,𝑥# = .𝑥#*+ = 0.355 9𝑃# = 𝑃#*+ + 𝑄 = 0.092 𝐾# = 0.092 0.092 + 0.1 *+ = 0.479 .𝑥# = 0.355 + 0.479 0.5 − 0.355 = 0.424 𝑃# = 0.092 1 − 0.479 = 0.048 0.424 0.048 3 0.480 0.424 0.049 0.443 0.033 4 0.290 0.443 0.034 0.404 0.025 𝑅 = 0.1 variance around observations (best guess) 𝑄 = 0.001 external shock variance 8
  • 10. Size of the Measurement Error (R) Value(x) Time (t) 10
  • 12. 12 † We have large, long-term (6+ years) tracking programs, carefully controlled wave-to- wave, with trend lines like these. How clear is the story? Continuing to gain ground? Year 1.1Year 1.2Year 2.1 Year2.2 Year 3.1Year 3.2Year 4.1Year 4.2Year 5.1Year 5.2Year 6.1Year 6.2Year 7.1 Likelihood to Recommend Competitor 1 Competitor 2 Competitor 3 Competitor 4 Competitor 5 Competitor 6 Yr 1A Yr 1B Yr 2A Yr 2B Yr 3A Yr 3B Yr 4A Yr 4B Yr 5A Yr 5B Yr 6A Yr 6B Yr 7A Favorite Competitor 1 Competitor 2 Competitor 3 Competitor 4 Competitor 5 Competitor 6 Stabilizing? Losing steam? The Truth: I Dread Tracking Data
  • 13. 13 First, let’s standardize the results to the baseline measurement Then we can apply the Kalman Filter 80 90 100 110 120 130 140 150 160 Year 1.1 Year 1.2 Year 2.1 Year2.2 Year 3.1 Year 3.2 Year 4.1 Year 4.2 Year 5.1 Year 5.2 Year 6.1 Year 6.2 Year 7.1 Kalman Estimate Likely to Recommend: Ratio to Baseline Competitor 1 Competitor 2 Competitor 3 Competitor 4 Competitor 5 Competitor 6 80 90 100 110 120 130 140 150 160 Year 1.1 Year 1.2 Year 2.1 Year2.2 Year 3.1 Year 3.2 Year 4.1 Year 4.2 Year 5.1 Year 5.2 Year 6.1 Year 6.2 Year 7.1 Observed Likely to Recommend: Ratio to Baseline Competitor 1 Competitor 2 Competitor 3 Competitor 4 Competitor 5 Competitor 6 What’s happening here? Can the Kalman Filter Clarify the Story?
  • 14. 14 A More Detailed The Effect of the Filter? † Kalman Filter for Competitors 2 and 3 – Softening the extremes 80 90 100 110 120 130 140 150 160 Year 1.1 Year 1.2 Year 2.1 Year2.2 Year 3.1 Year 3.2 Year 4.1 Year 4.2 Year 5.1 Year 5.2 Year 6.1 Year 6.2 Year 7.1 Likelihood to Recommend: Competitors 2 and 3 Observed 2 Estimated 2 Observed 3 Estimated 3
  • 15. 15 Taking a Look at Favorite Brand… We standardize the results to the baseline measurement Then apply the Kalman Filter 40 60 80 100 120 140 160 180 Year 1.1 Year 1.2 Year 2.1 Year2.2 Year 3.1 Year 3.2 Year 4.1 Year 4.2 Year 5.1 Year 5.2 Year 6.1 Year 6.2 Year 7.1 Observed Favorite: Ratio to Baseline Competitor 1 Competitor 2 Competitor 3 Competitor 4 Competitor 5 Competitor 6 40 60 80 100 120 140 160 180 Year 1.1 Year 1.2 Year 2.1 Year2.2 Year 3.1 Year 3.2 Year 4.1 Year 4.2 Year 5.1 Year 5.2 Year 6.1 Year 6.2 Year 7.1 Kalman Estimate Favorite: Ratio to Baseline Competitor 1 Competitor 2 Competitor 3 Competitor 4 Competitor 5 Competitor 6 Competitor 4 Suffers
  • 16. 16 A More Detailed Look at Competitors 4 and 5 † Again, softening the extremes 40 60 80 100 120 140 160 180 Year 1.1 Year 1.2 Year 2.1 Year2.2 Year 3.1 Year 3.2 Year 4.1 Year 4.2 Year 5.1 Year 5.2 Year 6.1 Year 6.2 Year 7.1 Favorite: Competitors 4 and 5 Observed 4 Estimated 4 Observed 5 Estimated 5 KF provides a way to simultaneously account for ‘time’ (as an alternative to ‘three month rolling average’) and measurement error.
  • 17. 17 Can We Apply This Approach to Social Media Data? † Social positive sentiment over the tracking period † Application of the Kalman Filter smooths the trend lines a bit. Greater variation across time is likely due to changing social media audience creating the ‘sentiment’ values. 0.40 0.45 0.50 0.55 0.60 0.65 0.70 Year 1.1Year 1.2Year 2.1 Year2.2 Year 3.1Year 3.2Year 4.1Year 4.2Year 5.1Year 5.2Year 6.1Year 6.2Year 7.1 Social Media: Positive Sentiment Competitor 1 Competitor 2 Competitor 3 Competitor 4 Competitor 5 Competitor 6 0.40 0.45 0.50 0.55 0.60 0.65 0.70 Year 1.1 Year 1.2 Year 2.1 Year2.2 Year 3.1 Year 3.2 Year 4.1 Year 4.2 Year 5.1 Year 5.2 Year 6.1 Year 6.2 Year 7.1 Kalman Estimate: Positive Sentiment Competitor 1 Competitor 2 Competitor 3 Competitor 4 Competitor 5 Competitor 6
  • 18. 18 Running Average vs. Kalman Filter Royal Bank, Olympic Sponsorship Awareness, Jan-Jun 2008 (pre), Jan-Jun 2010 (during), and Jan-Jun 2011 (post)
  • 19. Incorporating Known System Instability 𝑡 𝑥# ,𝑥# 9𝑃# .𝑥# 𝑃# 1 0.390 0.000 1.000 0.355 0.091 𝑅 = 0.1 variance around observations (best guess) 𝑄 = 𝑣𝑎𝑟𝑖𝑎𝑏𝑙𝑒 𝑞# 0.001 2 0.500 0.355 0.092 0.424 0.0480.001 3 0.480 0.424 0.049 0.443 0.0330.001 4 0.290 0.443 0.034 0.404 0.0250.001 5 0.250 0.404 0.026 0.356 0.0310.020 6 0.320 0.356 0.031 0.340 0.0450.050 7 0.340 0.340 0.045 0.340 0.0590.100 8 0.480 0.340 0.059 0.397 0.0410.010 9 0.410 0.397 0.041 0.401 0.0300.001 9𝑃# = 𝑃#*+ + 𝑄 external shock 𝐾# = 9𝑃# 9𝑃# + 𝑅 *+ random measurement error 𝐾# 0.909 0.479 0.328 0.253 0.312 0.448 0.592 0.409 0.295 𝑃# = 9𝑃# 1 − 𝐾# 19
  • 20. Incorporating Known System Instability 0.000 0.100 0.200 0.300 0.400 0.500 0.600 1 2 3 4 5 6 7 8 9 10 Observed Estimated with System Shock Value(x) Time (t) Q 20
  • 21. K 20K 40K 60K 19 26 2 9 16 23 2 9 16 23 30 6 13 20 27 4 11 18 25 1 NumberofTweetsmentioning“trump” 0 January 2017 February March April May Incorporating Twitter Brand Mention in Brand Tracking Twitter Brand mention is used as an indicator of system instability. “Buzz” brand equity volatility∝ 9𝑃# = 𝑃#*+ + 𝑄 June 21
  • 22. Tracking the “Trump” Brand January 2017 February March April May Trumpapprovalrating(SBA) Total US Sample June 38% 40% 42% 44% 46% 48% 50% 25 27 30 3 6 10 15 17 27 1 10 13 15 17 22 27 29 5 7 12 19 21 24 26 28 5 8 17 24 2 7 Raw KF - Constant KF w Twitter Updates 22
  • 23. “Trump” Brand Tracking in Subpopulation Trumpapprovalrating(SBA) Midwest Female January 2017 February March April May June 20% 30% 40% 50% 60% 25 27 30 3 6 10 15 17 27 1 10 13 15 17 22 27 29 5 7 12 19 21 24 26 28 5 8 17 24 2 7 Raw KF - Constant KF w Twitter Updates 23
  • 25. 25 Q & A Ray Poynter Chief Research Officer Potentiate Jane Tang Principal Bootstrap Analytics