SlideShare a Scribd company logo
1
Jason S. Kessler | Data Day Texas, January 14, 2017
@jasonkessler
Scattertext: A Tool for
Visualizing Differences in
Language
2
Word frequency
ā€¢ Women and men tend to use different terms on Facebook.
ā€¢ As do introverts and extroverts.
ā€¢ Hillary Clinton and Donald Trump used different terms in the
presidential debate.
ā€¢ Reveal differences in
ā€¢ content,
ā€¢ perceived strengths and weaknesses
ā€¢ communication style
ā€¢ These are often obvious after being surfaced
3
Outline
ā€¢ Previous work
ā€¢ Ways of visualizing word association
ā€¢ Scattertext
ā€¢ Open-source Python/D3 framework for visualizing these
differences
ā€¢ Inspecting LDA, word2vec, sparse classification models
ā€¢ How CDK Global is using this to help dealerships better sell
cars.
ā€¢ Weā€™re hiring senior data scientists + devs in Austin and Seattle.
4
OKCupid: an online dating site
hobos
almond
butter
100 Years of
Solitude
Bikram yoga
Christian Rudder: http://blog.okcupid.com/index.php/page/7/
Which words
and phrases
statistically
distinguish
ethnic groups
and genders?
5Source: Christian Rudder.
Dataclysm. 2014.
Ranking with everyone else
High distance: white men
ignore k-pop
Low distance: white men
disproportionately mention
Phish
The smaller the
distance from the top
left, the higher the
association with
white men.
6Source: Christian Rudder.
Dataclysm. 2014.
my blue eyes
7
Scattertext: Democrats vs Republicans: 2012 Convention Speeches
8
Word Use Reflecting Gender and Personality in Facebook
Statuses
ā€¢ Objective:
ā€¢ Find words, phrases, and topics that correlate to
ā€¢ gender, and
ā€¢ Big 5 personality type
ā€¢ Data source:
ā€¢ My Personality App
ā€¢ 75k voluntary participants in Facebook based survey, >300mm
words
ā€¢ Agreed to give researchers access to statuses.
ā€¢ Scoring algorithm
ā€¢ Linear regression weights, 2000 LDA topics. Lyle Ungar
2013 AAAI
TutorialSchwartz et al. Personality, Gender, and Age in the Language of Social Media: The Open-Vocabulary
Approach. Plos One. 2013.
9
Lyle Ungar
2013 AAAI
Tutorial
The good:
ā€¢ Word clouds force
you to hunt for the
most impactful
terms
ā€¢ You end up
examining the long
tail in the process
ā€¢ Compactly
represent a lot of
phrases and topics
10
Lyle Ungar
2013 AAAI
Tutorial
The bad:
ā€¢ ā€œMullets of the
Internetā€ --Jeffrey
Zeldman, 2005
ā€¢ Longer phrases are
are more prominent.
ā€¢ Ranking is unclear
ā€¢ Does size indicate
higher frequency?
11
Lyle Ungar
2013 AAAI
Tutorial
12
Lyle Ungar
2013 AAAI
Tutorial
13
Mike Bostock et al., http://www.nytimes.com/interactive/2012/09/06/us/politics/convention-word-counts.html
NYT: 2012 Political Convention Word Use by Party
14
Source: http://www.nytimes.com/interactive/2012/09/06/us/politics/convention-word-counts.html,
15
Monroe, Burt L., Michael P. Colaresi, and
Kevin M. Quinn. "Fightin'words: Lexical
feature selection and evaluation for identifying
the content of political conflict." Political
Analysis 16.4 (2008): 372-403.
Differenceinz-scoresoflog-oddsw/prior
log
#(š‘¤, š“)
š“ āˆ’ #(š‘¤, š“)
āˆ’ š‘™š‘œš‘”
#(š‘¤, šµ)
šµ āˆ’ #(š‘¤, šµ)
Log-odds for word w, categories A,B
log
# š‘¤, š“ + #(š‘¤, š¶)
š“ + |š¶| āˆ’ #(š‘¤, š“) āˆ’ #(š‘¤, š¶)
āˆ’ ā‹Æ
Log-odds w/ Dirichlet prior, given
background corpus C
ā€¢ Difference in z-score accounts for
variation in word frequencies.
ā€¢ Words with differences < 1.96 are greyed
out.
16
Monroe, Burt L., Michael P. Colaresi, and
Kevin M. Quinn. "Fightin'words: Lexical
feature selection and evaluation for identifying
the content of political conflict." Political
Analysis 16.4 (2008): 372-403.
Differenceinz-scoresoflog-oddsw/prior
ā€¢ Pros:
ā€¢ Popular among major CL
researchers (3rd edition of J+M)
ā€¢ Favors words which appear less
frequent in background.
ā€¢ Natural linear word listing
ā€¢ Cons:
ā€¢ You have to pick a
representative, large background
corpus.
ā€¢ If the corpus is small, divide
by 0 issue
ā€¢ Probably only practical for
unigrams
ā€¢ Inefficient use of space on chart
17Page 17
Repo: https://github.com/JasonKessler/scattertext
$ pip install scattertext
Why the plots look the way they do:
http://bit.ly/scattertextdevelopment
Topic models, word vectors, and The Lasso:
http://bit.ly/scattertext2016debates
Movie revenue and practical use:
http://bit.ly/scattertextrevenuemovie
Hands-on Tutorial
18
CDK Global: Finding Words that Sell Cars
ā€¦I was very skeptical giving up my truck and
buying an "Economy Car." I'm 6' 215lbs, but
my new career has me driving a personal
vehicle to make sales calls. I am overly
impressed with my Cruzeā€¦
Rating: 4.4/5 Stars
Example Review Appearing on a 3rd
Party Automotive Site
# of users who
read review:
# who went on to visit
a Chevy dealerā€™s
website: 15
20
Conversion rate of everyone who read
review:
15/20=75%
Text:
Car Reviewed: Chevy Cruze
Median conversion
rate: 22%
19
CDK Global: Finding Words that Sell Cars
5 star review words
Love
Comfortable
Features
Solid
Amazing
<3 star review words
Transmission
Problem
Issue
Dealership
Times
20
CDK Global: Finding Words that Sell Cars
5 star review words High conversion words
Love Comfortable
Comfortable Front [Seats]
Features Acceleration
Solid Free [Car Wash, Oil Change]
Amazing Quiet
<3 star review words
Transmission
Problem
Issue
Dealership
Times
21
CDK Global: Finding Words that Sell Cars
5 star review words High conversion words
Love Comfortable
Comfortable Front [Seats]
Features Acceleration
Solid Free [Car Wash, Oil Change]
Amazing Quiet
<3 star review words Low conversion words
Transmission Money [spend my, save]
Problem Features
Issue Dealership
Dealership Amazing
Times Build Quality [typically positive]
22
CDK Global: Finding Words that Sell Cars (SUV Specific)
5 star review words High conversion words
Love Comfortable
Comfortable Front [Seats]
Features Acceleration
Solid Free [Car Wash, Oil Change]
Amazing Quiet
<3 star review words Low conversion words
Transmission Money [spend my, save]
Problem Features
Issue Dealership
Dealership Amazing
Times Build Quality [typically positive]
The worst thing you can say about an
SUV may be:
I saved money and got all these
amazing features!
23
Thank you.
[first].[last]@gmail.com .
Please see https://github.com/JasonKessler/scattertext
for more info on this project.
We are hiring data scientists and developers in Seattle and
Austin! Please contact me if youā€™d like to know more.
https://jobs.cdkglobal.com/

More Related Content

What's hot

Getting to the People Behind The Keywords
Getting to the People Behind The KeywordsGetting to the People Behind The Keywords
Getting to the People Behind The Keywords
Carmen Mardiros
Ā 
SMX East 2015
SMX East 2015SMX East 2015
SMX East 2015
Grant Simmons
Ā 
Global Travel Network - Design
Global Travel Network  - DesignGlobal Travel Network  - Design
Global Travel Network - DesignSymantec
Ā 
Cincinnati AMA - How to Align Content and Keywords to the Buying Cycle - 2-12-14
Cincinnati AMA - How to Align Content and Keywords to the Buying Cycle - 2-12-14Cincinnati AMA - How to Align Content and Keywords to the Buying Cycle - 2-12-14
Cincinnati AMA - How to Align Content and Keywords to the Buying Cycle - 2-12-14Jordan Godbey
Ā 
Search Engine Marketing: How Insurance Agents Can Take Advantage
Search Engine Marketing: How Insurance Agents Can Take AdvantageSearch Engine Marketing: How Insurance Agents Can Take Advantage
Search Engine Marketing: How Insurance Agents Can Take Advantage
mmahan
Ā 
Business Intelligence | Competitive Intelligence | Business Intelligence Tools
Business Intelligence | Competitive Intelligence | Business Intelligence ToolsBusiness Intelligence | Competitive Intelligence | Business Intelligence Tools
Business Intelligence | Competitive Intelligence | Business Intelligence Tools
Roland Frasier
Ā 
What? How? Why? Building Query Personas to Power Your Content Strategy
What? How? Why? Building Query Personas to Power Your Content StrategyWhat? How? Why? Building Query Personas to Power Your Content Strategy
What? How? Why? Building Query Personas to Power Your Content Strategy
Grant Simmons
Ā 
Optimization advice-for-watertownbuysellgold-com-just-sell-gold
Optimization advice-for-watertownbuysellgold-com-just-sell-goldOptimization advice-for-watertownbuysellgold-com-just-sell-gold
Optimization advice-for-watertownbuysellgold-com-just-sell-gold
Brian Bateman
Ā 
Killer Link Building Strategies - Christoph Cemper
Killer Link Building Strategies - Christoph CemperKiller Link Building Strategies - Christoph Cemper
Killer Link Building Strategies - Christoph Cemper
auexpo Conference
Ā 
BPAA PD Day: BNC Research
BPAA PD Day: BNC ResearchBPAA PD Day: BNC Research
BPAA PD Day: BNC ResearchBookNet Canada
Ā 

What's hot (10)

Getting to the People Behind The Keywords
Getting to the People Behind The KeywordsGetting to the People Behind The Keywords
Getting to the People Behind The Keywords
Ā 
SMX East 2015
SMX East 2015SMX East 2015
SMX East 2015
Ā 
Global Travel Network - Design
Global Travel Network  - DesignGlobal Travel Network  - Design
Global Travel Network - Design
Ā 
Cincinnati AMA - How to Align Content and Keywords to the Buying Cycle - 2-12-14
Cincinnati AMA - How to Align Content and Keywords to the Buying Cycle - 2-12-14Cincinnati AMA - How to Align Content and Keywords to the Buying Cycle - 2-12-14
Cincinnati AMA - How to Align Content and Keywords to the Buying Cycle - 2-12-14
Ā 
Search Engine Marketing: How Insurance Agents Can Take Advantage
Search Engine Marketing: How Insurance Agents Can Take AdvantageSearch Engine Marketing: How Insurance Agents Can Take Advantage
Search Engine Marketing: How Insurance Agents Can Take Advantage
Ā 
Business Intelligence | Competitive Intelligence | Business Intelligence Tools
Business Intelligence | Competitive Intelligence | Business Intelligence ToolsBusiness Intelligence | Competitive Intelligence | Business Intelligence Tools
Business Intelligence | Competitive Intelligence | Business Intelligence Tools
Ā 
What? How? Why? Building Query Personas to Power Your Content Strategy
What? How? Why? Building Query Personas to Power Your Content StrategyWhat? How? Why? Building Query Personas to Power Your Content Strategy
What? How? Why? Building Query Personas to Power Your Content Strategy
Ā 
Optimization advice-for-watertownbuysellgold-com-just-sell-gold
Optimization advice-for-watertownbuysellgold-com-just-sell-goldOptimization advice-for-watertownbuysellgold-com-just-sell-gold
Optimization advice-for-watertownbuysellgold-com-just-sell-gold
Ā 
Killer Link Building Strategies - Christoph Cemper
Killer Link Building Strategies - Christoph CemperKiller Link Building Strategies - Christoph Cemper
Killer Link Building Strategies - Christoph Cemper
Ā 
BPAA PD Day: BNC Research
BPAA PD Day: BNC ResearchBPAA PD Day: BNC Research
BPAA PD Day: BNC Research
Ā 

Similar to Scattertext: A Tool for Visualizing Differences in Language

Why Inbound Marketing for Online Business - EBriks Infotech
Why Inbound Marketing for Online Business - EBriks InfotechWhy Inbound Marketing for Online Business - EBriks Infotech
Why Inbound Marketing for Online Business - EBriks Infotech
EBriks Infotech Pvt. Ltd.
Ā 
Get Better Content with Analytics and User Testing
Get Better Content with Analytics and User TestingGet Better Content with Analytics and User Testing
Get Better Content with Analytics and User Testing
Michael Powers
Ā 
Grade 7 Reflective Essay Composition Writing Skill -
Grade 7 Reflective Essay  Composition Writing Skill -Grade 7 Reflective Essay  Composition Writing Skill -
Grade 7 Reflective Essay Composition Writing Skill -
Sean Flores
Ā 
Tips On Improving Word Choice For Your Essay
Tips On Improving Word Choice For Your EssayTips On Improving Word Choice For Your Essay
Tips On Improving Word Choice For Your Essay
Linda Torres
Ā 
Trends in Recruiting and HR: Think Outside of the Proverbial Box: Harness the...
Trends in Recruiting and HR: Think Outside of the Proverbial Box: Harness the...Trends in Recruiting and HR: Think Outside of the Proverbial Box: Harness the...
Trends in Recruiting and HR: Think Outside of the Proverbial Box: Harness the...
Aggregage
Ā 
Own it 5 steps - mceea - for upload
Own it   5 steps - mceea - for uploadOwn it   5 steps - mceea - for upload
Own it 5 steps - mceea - for upload
Scott Patchin
Ā 
Survival Tips for the Lone Product Manager - Kristin Bolton-Keys and Alicia D...
Survival Tips for the Lone Product Manager - Kristin Bolton-Keys and Alicia D...Survival Tips for the Lone Product Manager - Kristin Bolton-Keys and Alicia D...
Survival Tips for the Lone Product Manager - Kristin Bolton-Keys and Alicia D...
ExoLeaders.com
Ā 
The Dynamic Dozen (plus three) Strategic Tools (pdf version)
The Dynamic Dozen (plus three) Strategic Tools (pdf version)The Dynamic Dozen (plus three) Strategic Tools (pdf version)
The Dynamic Dozen (plus three) Strategic Tools (pdf version)
Strategic Counselor; Rowan University-Associate Professor, Ret.
Ā 
Cover LetterOne aspect of strategic planning is to develop a str.docx
Cover LetterOne aspect of strategic planning is to develop a str.docxCover LetterOne aspect of strategic planning is to develop a str.docx
Cover LetterOne aspect of strategic planning is to develop a str.docx
marilucorr
Ā 
Contoh Ielts Writing Task Micin Ilmu - Riset
Contoh Ielts Writing Task Micin Ilmu - RisetContoh Ielts Writing Task Micin Ilmu - Riset
Contoh Ielts Writing Task Micin Ilmu - Riset
Kristen Carter
Ā 
Native American Dilemma
Native American DilemmaNative American Dilemma
Native American Dilemmaguest1f534f
Ā 
Native American Dilemma
Native American DilemmaNative American Dilemma
Native American Dilemmadsvaldi
Ā 
Thomas Baker Leadership Assessment: Envision The Future
Thomas Baker Leadership Assessment: Envision The FutureThomas Baker Leadership Assessment: Envision The Future
Thomas Baker Leadership Assessment: Envision The Future
Baker Publishing Company
Ā 
Template Leading Mathematical Discussions Performance-Based.docx
Template Leading Mathematical Discussions Performance-Based.docxTemplate Leading Mathematical Discussions Performance-Based.docx
Template Leading Mathematical Discussions Performance-Based.docx
rhetttrevannion
Ā 
Just How To Write An Autobiographical Essay - E
Just How To Write An Autobiographical Essay - EJust How To Write An Autobiographical Essay - E
Just How To Write An Autobiographical Essay - E
Holly Vega
Ā 
Topics For Argument Essays
Topics For Argument EssaysTopics For Argument Essays
Topics For Argument Essays
Karen Mosley
Ā 
Page 135Use verbs to present the information more forceful.docx
Page 135Use verbs to present the information more forceful.docxPage 135Use verbs to present the information more forceful.docx
Page 135Use verbs to present the information more forceful.docx
bunyansaturnina
Ā 
Dean r berry real life problems drunk family man kills family
Dean r berry real life problems drunk family man kills familyDean r berry real life problems drunk family man kills family
Dean r berry real life problems drunk family man kills family
Riverside County Office of Education
Ā 
The 4Cs of Powerful Learning
The 4Cs of Powerful LearningThe 4Cs of Powerful Learning
The 4Cs of Powerful Learning
Jonathan Milner
Ā 
12Organization DevelopmentFifth Edition
12Organization DevelopmentFifth Edition12Organization DevelopmentFifth Edition
12Organization DevelopmentFifth Edition
ChantellPantoja184
Ā 

Similar to Scattertext: A Tool for Visualizing Differences in Language (20)

Why Inbound Marketing for Online Business - EBriks Infotech
Why Inbound Marketing for Online Business - EBriks InfotechWhy Inbound Marketing for Online Business - EBriks Infotech
Why Inbound Marketing for Online Business - EBriks Infotech
Ā 
Get Better Content with Analytics and User Testing
Get Better Content with Analytics and User TestingGet Better Content with Analytics and User Testing
Get Better Content with Analytics and User Testing
Ā 
Grade 7 Reflective Essay Composition Writing Skill -
Grade 7 Reflective Essay  Composition Writing Skill -Grade 7 Reflective Essay  Composition Writing Skill -
Grade 7 Reflective Essay Composition Writing Skill -
Ā 
Tips On Improving Word Choice For Your Essay
Tips On Improving Word Choice For Your EssayTips On Improving Word Choice For Your Essay
Tips On Improving Word Choice For Your Essay
Ā 
Trends in Recruiting and HR: Think Outside of the Proverbial Box: Harness the...
Trends in Recruiting and HR: Think Outside of the Proverbial Box: Harness the...Trends in Recruiting and HR: Think Outside of the Proverbial Box: Harness the...
Trends in Recruiting and HR: Think Outside of the Proverbial Box: Harness the...
Ā 
Own it 5 steps - mceea - for upload
Own it   5 steps - mceea - for uploadOwn it   5 steps - mceea - for upload
Own it 5 steps - mceea - for upload
Ā 
Survival Tips for the Lone Product Manager - Kristin Bolton-Keys and Alicia D...
Survival Tips for the Lone Product Manager - Kristin Bolton-Keys and Alicia D...Survival Tips for the Lone Product Manager - Kristin Bolton-Keys and Alicia D...
Survival Tips for the Lone Product Manager - Kristin Bolton-Keys and Alicia D...
Ā 
The Dynamic Dozen (plus three) Strategic Tools (pdf version)
The Dynamic Dozen (plus three) Strategic Tools (pdf version)The Dynamic Dozen (plus three) Strategic Tools (pdf version)
The Dynamic Dozen (plus three) Strategic Tools (pdf version)
Ā 
Cover LetterOne aspect of strategic planning is to develop a str.docx
Cover LetterOne aspect of strategic planning is to develop a str.docxCover LetterOne aspect of strategic planning is to develop a str.docx
Cover LetterOne aspect of strategic planning is to develop a str.docx
Ā 
Contoh Ielts Writing Task Micin Ilmu - Riset
Contoh Ielts Writing Task Micin Ilmu - RisetContoh Ielts Writing Task Micin Ilmu - Riset
Contoh Ielts Writing Task Micin Ilmu - Riset
Ā 
Native American Dilemma
Native American DilemmaNative American Dilemma
Native American Dilemma
Ā 
Native American Dilemma
Native American DilemmaNative American Dilemma
Native American Dilemma
Ā 
Thomas Baker Leadership Assessment: Envision The Future
Thomas Baker Leadership Assessment: Envision The FutureThomas Baker Leadership Assessment: Envision The Future
Thomas Baker Leadership Assessment: Envision The Future
Ā 
Template Leading Mathematical Discussions Performance-Based.docx
Template Leading Mathematical Discussions Performance-Based.docxTemplate Leading Mathematical Discussions Performance-Based.docx
Template Leading Mathematical Discussions Performance-Based.docx
Ā 
Just How To Write An Autobiographical Essay - E
Just How To Write An Autobiographical Essay - EJust How To Write An Autobiographical Essay - E
Just How To Write An Autobiographical Essay - E
Ā 
Topics For Argument Essays
Topics For Argument EssaysTopics For Argument Essays
Topics For Argument Essays
Ā 
Page 135Use verbs to present the information more forceful.docx
Page 135Use verbs to present the information more forceful.docxPage 135Use verbs to present the information more forceful.docx
Page 135Use verbs to present the information more forceful.docx
Ā 
Dean r berry real life problems drunk family man kills family
Dean r berry real life problems drunk family man kills familyDean r berry real life problems drunk family man kills family
Dean r berry real life problems drunk family man kills family
Ā 
The 4Cs of Powerful Learning
The 4Cs of Powerful LearningThe 4Cs of Powerful Learning
The 4Cs of Powerful Learning
Ā 
12Organization DevelopmentFifth Edition
12Organization DevelopmentFifth Edition12Organization DevelopmentFifth Edition
12Organization DevelopmentFifth Edition
Ā 

More from Jason Kessler

Visualizing Words and Topics with Scattertext
Visualizing Words and Topics with ScattertextVisualizing Words and Topics with Scattertext
Visualizing Words and Topics with Scattertext
Jason Kessler
Ā 
Natural Language Visualization with Scattertext
Natural Language Visualization with ScattertextNatural Language Visualization with Scattertext
Natural Language Visualization with Scattertext
Jason Kessler
Ā 
Lexicon Mining for Semiotic Squares: Exploding Binary Classification
Lexicon Mining for Semiotic Squares: Exploding Binary ClassificationLexicon Mining for Semiotic Squares: Exploding Binary Classification
Lexicon Mining for Semiotic Squares: Exploding Binary Classification
Jason Kessler
Ā 
Jason Kessler Problems: What's Wrong with Twitter
Jason Kessler Problems: What's Wrong with TwitterJason Kessler Problems: What's Wrong with Twitter
Jason Kessler Problems: What's Wrong with Twitter
Jason Kessler
Ā 
The 2010 JDPA Sentiment Corpus for the Automotive Domain
The 2010 JDPA Sentiment Corpus for the Automotive DomainThe 2010 JDPA Sentiment Corpus for the Automotive Domain
The 2010 JDPA Sentiment Corpus for the Automotive DomainJason Kessler
Ā 
Targeting Sentiment Expressions through Supervised Ranking of Linguistic Conf...
Targeting Sentiment Expressions through Supervised Ranking of Linguistic Conf...Targeting Sentiment Expressions through Supervised Ranking of Linguistic Conf...
Targeting Sentiment Expressions through Supervised Ranking of Linguistic Conf...
Jason Kessler
Ā 
Polling the Blogosphere: a Rule-Based Approach to Belief Classification, By J...
Polling the Blogosphere: a Rule-Based Approach to Belief Classification, By J...Polling the Blogosphere: a Rule-Based Approach to Belief Classification, By J...
Polling the Blogosphere: a Rule-Based Approach to Belief Classification, By J...
Jason Kessler
Ā 

More from Jason Kessler (7)

Visualizing Words and Topics with Scattertext
Visualizing Words and Topics with ScattertextVisualizing Words and Topics with Scattertext
Visualizing Words and Topics with Scattertext
Ā 
Natural Language Visualization with Scattertext
Natural Language Visualization with ScattertextNatural Language Visualization with Scattertext
Natural Language Visualization with Scattertext
Ā 
Lexicon Mining for Semiotic Squares: Exploding Binary Classification
Lexicon Mining for Semiotic Squares: Exploding Binary ClassificationLexicon Mining for Semiotic Squares: Exploding Binary Classification
Lexicon Mining for Semiotic Squares: Exploding Binary Classification
Ā 
Jason Kessler Problems: What's Wrong with Twitter
Jason Kessler Problems: What's Wrong with TwitterJason Kessler Problems: What's Wrong with Twitter
Jason Kessler Problems: What's Wrong with Twitter
Ā 
The 2010 JDPA Sentiment Corpus for the Automotive Domain
The 2010 JDPA Sentiment Corpus for the Automotive DomainThe 2010 JDPA Sentiment Corpus for the Automotive Domain
The 2010 JDPA Sentiment Corpus for the Automotive Domain
Ā 
Targeting Sentiment Expressions through Supervised Ranking of Linguistic Conf...
Targeting Sentiment Expressions through Supervised Ranking of Linguistic Conf...Targeting Sentiment Expressions through Supervised Ranking of Linguistic Conf...
Targeting Sentiment Expressions through Supervised Ranking of Linguistic Conf...
Ā 
Polling the Blogosphere: a Rule-Based Approach to Belief Classification, By J...
Polling the Blogosphere: a Rule-Based Approach to Belief Classification, By J...Polling the Blogosphere: a Rule-Based Approach to Belief Classification, By J...
Polling the Blogosphere: a Rule-Based Approach to Belief Classification, By J...
Ā 

Recently uploaded

Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke
Ā 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
Ā 
Graphic Design Crash Course for beginners
Graphic Design Crash Course for beginnersGraphic Design Crash Course for beginners
Graphic Design Crash Course for beginners
e20449
Ā 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
XfilesPro
Ā 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
Juraj Vysvader
Ā 
Launch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in MinutesLaunch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in Minutes
Roshan Dwivedi
Ā 
Pro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp BookPro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp Book
abdulrafaychaudhry
Ā 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus
Ā 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Natan Silnitsky
Ā 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
NYGGS Automation Suite
Ā 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
Adele Miller
Ā 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
Globus
Ā 
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Globus
Ā 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
informapgpstrackings
Ā 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
Neo4j
Ā 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
Ā 
How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
wottaspaceseo
Ā 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
Cyanic lab
Ā 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Globus
Ā 
Top 7 Unique WhatsApp API Benefits | Saudi Arabia
Top 7 Unique WhatsApp API Benefits | Saudi ArabiaTop 7 Unique WhatsApp API Benefits | Saudi Arabia
Top 7 Unique WhatsApp API Benefits | Saudi Arabia
Yara Milbes
Ā 

Recently uploaded (20)

Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
Ā 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Ā 
Graphic Design Crash Course for beginners
Graphic Design Crash Course for beginnersGraphic Design Crash Course for beginners
Graphic Design Crash Course for beginners
Ā 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Ā 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
Ā 
Launch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in MinutesLaunch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in Minutes
Ā 
Pro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp BookPro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp Book
Ā 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
Ā 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Ā 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
Ā 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
Ā 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
Ā 
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Ā 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Ā 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
Ā 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Ā 
How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
Ā 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
Ā 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Ā 
Top 7 Unique WhatsApp API Benefits | Saudi Arabia
Top 7 Unique WhatsApp API Benefits | Saudi ArabiaTop 7 Unique WhatsApp API Benefits | Saudi Arabia
Top 7 Unique WhatsApp API Benefits | Saudi Arabia
Ā 

Scattertext: A Tool for Visualizing Differences in Language

  • 1. 1 Jason S. Kessler | Data Day Texas, January 14, 2017 @jasonkessler Scattertext: A Tool for Visualizing Differences in Language
  • 2. 2 Word frequency ā€¢ Women and men tend to use different terms on Facebook. ā€¢ As do introverts and extroverts. ā€¢ Hillary Clinton and Donald Trump used different terms in the presidential debate. ā€¢ Reveal differences in ā€¢ content, ā€¢ perceived strengths and weaknesses ā€¢ communication style ā€¢ These are often obvious after being surfaced
  • 3. 3 Outline ā€¢ Previous work ā€¢ Ways of visualizing word association ā€¢ Scattertext ā€¢ Open-source Python/D3 framework for visualizing these differences ā€¢ Inspecting LDA, word2vec, sparse classification models ā€¢ How CDK Global is using this to help dealerships better sell cars. ā€¢ Weā€™re hiring senior data scientists + devs in Austin and Seattle.
  • 4. 4 OKCupid: an online dating site hobos almond butter 100 Years of Solitude Bikram yoga Christian Rudder: http://blog.okcupid.com/index.php/page/7/ Which words and phrases statistically distinguish ethnic groups and genders?
  • 5. 5Source: Christian Rudder. Dataclysm. 2014. Ranking with everyone else High distance: white men ignore k-pop Low distance: white men disproportionately mention Phish The smaller the distance from the top left, the higher the association with white men.
  • 7. 7 Scattertext: Democrats vs Republicans: 2012 Convention Speeches
  • 8. 8 Word Use Reflecting Gender and Personality in Facebook Statuses ā€¢ Objective: ā€¢ Find words, phrases, and topics that correlate to ā€¢ gender, and ā€¢ Big 5 personality type ā€¢ Data source: ā€¢ My Personality App ā€¢ 75k voluntary participants in Facebook based survey, >300mm words ā€¢ Agreed to give researchers access to statuses. ā€¢ Scoring algorithm ā€¢ Linear regression weights, 2000 LDA topics. Lyle Ungar 2013 AAAI TutorialSchwartz et al. Personality, Gender, and Age in the Language of Social Media: The Open-Vocabulary Approach. Plos One. 2013.
  • 9. 9 Lyle Ungar 2013 AAAI Tutorial The good: ā€¢ Word clouds force you to hunt for the most impactful terms ā€¢ You end up examining the long tail in the process ā€¢ Compactly represent a lot of phrases and topics
  • 10. 10 Lyle Ungar 2013 AAAI Tutorial The bad: ā€¢ ā€œMullets of the Internetā€ --Jeffrey Zeldman, 2005 ā€¢ Longer phrases are are more prominent. ā€¢ Ranking is unclear ā€¢ Does size indicate higher frequency?
  • 13. 13 Mike Bostock et al., http://www.nytimes.com/interactive/2012/09/06/us/politics/convention-word-counts.html NYT: 2012 Political Convention Word Use by Party
  • 15. 15 Monroe, Burt L., Michael P. Colaresi, and Kevin M. Quinn. "Fightin'words: Lexical feature selection and evaluation for identifying the content of political conflict." Political Analysis 16.4 (2008): 372-403. Differenceinz-scoresoflog-oddsw/prior log #(š‘¤, š“) š“ āˆ’ #(š‘¤, š“) āˆ’ š‘™š‘œš‘” #(š‘¤, šµ) šµ āˆ’ #(š‘¤, šµ) Log-odds for word w, categories A,B log # š‘¤, š“ + #(š‘¤, š¶) š“ + |š¶| āˆ’ #(š‘¤, š“) āˆ’ #(š‘¤, š¶) āˆ’ ā‹Æ Log-odds w/ Dirichlet prior, given background corpus C ā€¢ Difference in z-score accounts for variation in word frequencies. ā€¢ Words with differences < 1.96 are greyed out.
  • 16. 16 Monroe, Burt L., Michael P. Colaresi, and Kevin M. Quinn. "Fightin'words: Lexical feature selection and evaluation for identifying the content of political conflict." Political Analysis 16.4 (2008): 372-403. Differenceinz-scoresoflog-oddsw/prior ā€¢ Pros: ā€¢ Popular among major CL researchers (3rd edition of J+M) ā€¢ Favors words which appear less frequent in background. ā€¢ Natural linear word listing ā€¢ Cons: ā€¢ You have to pick a representative, large background corpus. ā€¢ If the corpus is small, divide by 0 issue ā€¢ Probably only practical for unigrams ā€¢ Inefficient use of space on chart
  • 17. 17Page 17 Repo: https://github.com/JasonKessler/scattertext $ pip install scattertext Why the plots look the way they do: http://bit.ly/scattertextdevelopment Topic models, word vectors, and The Lasso: http://bit.ly/scattertext2016debates Movie revenue and practical use: http://bit.ly/scattertextrevenuemovie Hands-on Tutorial
  • 18. 18 CDK Global: Finding Words that Sell Cars ā€¦I was very skeptical giving up my truck and buying an "Economy Car." I'm 6' 215lbs, but my new career has me driving a personal vehicle to make sales calls. I am overly impressed with my Cruzeā€¦ Rating: 4.4/5 Stars Example Review Appearing on a 3rd Party Automotive Site # of users who read review: # who went on to visit a Chevy dealerā€™s website: 15 20 Conversion rate of everyone who read review: 15/20=75% Text: Car Reviewed: Chevy Cruze Median conversion rate: 22%
  • 19. 19 CDK Global: Finding Words that Sell Cars 5 star review words Love Comfortable Features Solid Amazing <3 star review words Transmission Problem Issue Dealership Times
  • 20. 20 CDK Global: Finding Words that Sell Cars 5 star review words High conversion words Love Comfortable Comfortable Front [Seats] Features Acceleration Solid Free [Car Wash, Oil Change] Amazing Quiet <3 star review words Transmission Problem Issue Dealership Times
  • 21. 21 CDK Global: Finding Words that Sell Cars 5 star review words High conversion words Love Comfortable Comfortable Front [Seats] Features Acceleration Solid Free [Car Wash, Oil Change] Amazing Quiet <3 star review words Low conversion words Transmission Money [spend my, save] Problem Features Issue Dealership Dealership Amazing Times Build Quality [typically positive]
  • 22. 22 CDK Global: Finding Words that Sell Cars (SUV Specific) 5 star review words High conversion words Love Comfortable Comfortable Front [Seats] Features Acceleration Solid Free [Car Wash, Oil Change] Amazing Quiet <3 star review words Low conversion words Transmission Money [spend my, save] Problem Features Issue Dealership Dealership Amazing Times Build Quality [typically positive] The worst thing you can say about an SUV may be: I saved money and got all these amazing features!
  • 23. 23 Thank you. [first].[last]@gmail.com . Please see https://github.com/JasonKessler/scattertext for more info on this project. We are hiring data scientists and developers in Seattle and Austin! Please contact me if youā€™d like to know more. https://jobs.cdkglobal.com/

Editor's Notes

  1. This slide intentionally left blank. (If you do not have a page title or subtitle, leave the field as is and it will remain hidden.)
  2. This slide intentionally left blank. (If you do not have a page title or subtitle, leave the field as is and it will remain hidden.)
  3. This slide intentionally left blank. (If you do not have a page title or subtitle, leave the field as is and it will remain hidden.)
  4. This slide intentionally left blank. (If you do not have a page title or subtitle, leave the field as is and it will remain hidden.)
  5. This slide intentionally left blank. (If you do not have a page title or subtitle, leave the field as is and it will remain hidden.)
  6. This slide intentionally left blank. (If you do not have a page title or subtitle, leave the field as is and it will remain hidden.)
  7. This slide intentionally left blank. (If you do not have a page title or subtitle, leave the field as is and it will remain hidden.)
  8. Youā€™re left to your own devices to try and make sense of the differences.
  9. Similar scatter plot to rudder. Less efficient use of space. Natural listing of words on left-hand side.
  10. Similar scatter plot to rudder. Less efficient use of space. Natural listing of words on left-hand side.
  11. This slide intentionally left blank. (If you do not have a page title or subtitle, leave the field as is and it will remain hidden.)
  12. This slide intentionally left blank. (If you do not have a page title or subtitle, leave the field as is and it will remain hidden.)
  13. This slide intentionally left blank. (If you do not have a page title or subtitle, leave the field as is and it will remain hidden.)
  14. This slide intentionally left blank. (If you do not have a page title or subtitle, leave the field as is and it will remain hidden.)
  15. This slide intentionally left blank. (If you do not have a page title or subtitle, leave the field as is and it will remain hidden.)