SlideShare une entreprise Scribd logo
1  sur  21
Télécharger pour lire hors ligne
MRQAP	
tutorial	
Fariba	Karimi	
Fariba.karimi@gesis.org	
24.11.2015
Mul=ple	Regression	Quadra=c	
Assignment	Procedure
Why	regression	in	network	analysis?	
•  Inferen=al	sta=s=cs	have	proven	to	have	very	
useful	applica=ons	to	social	network	analysis.	
At	a	most	general	level,	the	ques=on	of	
"inference"	is:	how	much	confidence	can	I	
have	that	the	pa6ern	I	see	in	the	data	I've	
collected	is	actually	typical	of	some	larger	
popula?on,	or	that	the	apparent	pa6ern	is	
not	really	just	a	random	occurrence?
OLS	(Ordinary	Least	Square)	
Y = β0 + β1X1 + β2 X2 +...+ε
Dependent	
variable		
	
	
	
	
coefficients	
	
	
	
	
														
	
																									
Explanatory/independent	
variables	
residual
OLS	(Ordinary	Least	Square)	-	test	
null-hypothesis		à			
Small	p-value	suggests	that	coefficients	are	significant.	
E.g.	p-value	0.01	means	that	coefficients	are	significant	
with	99%	confidence	interval.	
	
	
Y = β0 + β1X1 + β2 X2 +...+ε
β = 0
OLS	(Ordinary	Least	Square)	-	test	
•  P-value:		
null-hypothesis		à			
Small	p-value	suggests	that	coefficients	are	
significant.	E.g.	p-value	0.01	means	that	coefficients	
are	significant	with	99%	confidence	interval.	
	
•  R-squared:	quan=fying	model	performance.	
	E.g.	R-squared	=	0.4	means	that	the	model	explains	
40%	of	the	varia=ons	in	the	dependent	variables.	
Y = β0 + β1X1 + β2 X2 +...+ε
β = 0
Problem		
•  Observa=ons	are	not	independent	of	each	
other.	If	A	are	connected	to	B	and	B	is	
connected	C,	it	maybe	likely	that	A	is	
connected	to	C.	
•  Repea=ng	observa=ons	à	error	correlated	
with	each	other.	Observa=ons	in	rows	and	
columns	tend	to	be	highly	correlated	which	
influence	the	standard	error.
Problem		
•  Repea=ng	observa=ons	à	error	correlated	
with	each	other.	Observa=ons	in	rows	and	
columns	tend	to	be	highly	correlated	which	
influence	the	standard	error.
What	does	QAP	do?	
•  Essen=ally,	what	the	QAP	does	is	to	“scramble”	
the	dependent	variable	data	through	several	
permuta?ons.		By	taking	the	data,	and	
“scrambling”	it	repeatedly,	resul=ng	in	mul=ple	
random	datasets	with	the	dependent	variable—
and	then	mul=ple	analyses	can	be	performed.	
•  Those	datasets	and	analyses	form	an	empirical	
sampling	distribu=on,	and	we	can	compare	our	
coefficient	with	this	sampling	distribu?on	of	
coefficients	from	all	the	permuted	datasets.
In	other	words	…	
•  We	are	preserving	the	dependence	within	
rows	/	columns—but	removing	the	
rela=onship	between	the	dependent	and	
independent	variables.
Friendship,	age	,	class	
A	 B	 C	 D	 E	 F	 G	
A	 0	 1	 0	 0	 1	 0	 0	
B	 1	 0	 3	 5	 1	 4	 2	
C	 0	 3	 0	 4	 5	 8	 10	
D	 2	 5	 4	 0	 0	 3	 2	
E	 1	 1	 3	 0	 0	 2	 2	
F	 0	 4	 2	 3	 3	 0	 1	
G	 0	 2	 1	 2	 2	 1	 0	
A	 B	 C	 D	 E	 F	 G	
A	 0	 1	 0	 2	 1	 0	 0	
B	 1	 0	 3	 5	 1	 4	 2	
C	 0	 3	 0	 4	 5	 8	 10	
D	 2	 5	 4	 0	 0	 3	 2	
E	 1	 1	 3	 0	 0	 2	 2	
F	 0	 4	 2	 3	 3	 0	 1	
G	 0	 2	 1	 2	 2	 1	 0	
A	 B	 C	 D	 E	 F	 G	
A	 0	 1	 0	 2	 1	 0	 0	
B	 1	 0	 3	 5	 1	 4	 2	
C	 0	 3	 0	 4	 5	 8	 10	
D	 2	 5	 4	 0	 0	 3	 2	
E	 1	 1	 3	 0	 0	 2	 2	
F	 0	 4	 2	 3	 3	 0	 1	
G	 0	 2	 1	 2	 2	 1	 0	
≈	 +	
Friendship	=e	 Age	difference	 educa=on
Friendship,	age	,	class	
A	 B	 C	 D	 E	 F	 G	
A	 0	 1	 0	 0	 1	 0	 0	
B	 1	 0	 3	 5	 1	 4	 2	
C	 0	 3	 0	 4	 5	 8	 10	
D	 2	 5	 4	 0	 0	 3	 2	
E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	 2	 1	 2	 2	 1	 0	
≈	 +	
Friendship	=e	 Age	difference	 educa=on	
•  Permutes	dependent	variables	lots	of	=me.	Measure	
the	sampling	distribu=on	of	the	coefficients.			
•  P-value	is	a	propor=on	of		=mes	that	the	observa=on	is	
Falling	outside	the	sampling	distribu=on.	
QAP	procedure
QAP	process	–	graph	representa=on	
before	 reshuffling	 ajer
Available	func=ons	
•  UCINET:	tools	->	tes=ng	hypothesis	->	dyadic	-
>	regression	(QAP)	
	
•  R:	library(statnet)	->	netlm	
	
•  c/python	?
Example	1	–	there	is	no	correla=on
Example	1	–	there	is	no	correla=on
Example	2	–	there	is	a	correla=on
Example	2	–	there	is	a	correla=on
Recap		
•  QAP	is	useful	when	we	have	dyadic	
rela=onship	in	the	data.	
•  Use	netlm	func=on	in	R	for	the	regression	
analysis.	
•  Disadvantage:	it	is	slow	for	large	network	size
References	
•  Predic=ng	with	networks:	nonparametric	
mul=ple	regression	analysis	of	dyadic	data,	D.	
Krackhardt	(1981)	
•  The	SNA	package,	CT	Buos	(2014)	
•  hop://svitsrv25.epfl.ch/R-doc/library/sna/html/
qaptest.html	
•  hop://www.stata.com/mee=ng/1nasug/
simpson.pdf	
•  hop://www.erikgjesqeld.net/uploads/
3/7/6/8/37685481/
sna_code_(gjesqeld_and_phillips_2013).pdf

Contenu connexe

Tendances

Explainable AI in Industry (KDD 2019 Tutorial)
Explainable AI in Industry (KDD 2019 Tutorial)Explainable AI in Industry (KDD 2019 Tutorial)
Explainable AI in Industry (KDD 2019 Tutorial)
Krishnaram Kenthapadi
 
Reporting statistics in psychology
Reporting statistics in psychologyReporting statistics in psychology
Reporting statistics in psychology
Reiner-Vinicius
 

Tendances (20)

Introduction to optimization Problems
Introduction to optimization ProblemsIntroduction to optimization Problems
Introduction to optimization Problems
 
Probability
ProbabilityProbability
Probability
 
Counting
Counting  Counting
Counting
 
Generalized additives models (gam)
Generalized additives models (gam)Generalized additives models (gam)
Generalized additives models (gam)
 
Quantitative Analysis For Management 11th Edition Render Test Bank
Quantitative Analysis For Management 11th Edition Render Test BankQuantitative Analysis For Management 11th Edition Render Test Bank
Quantitative Analysis For Management 11th Edition Render Test Bank
 
Phi (φ) Correlation
Phi (φ) CorrelationPhi (φ) Correlation
Phi (φ) Correlation
 
2010 sri chaitanyas_iitjee_paper-ii_solutions
2010 sri chaitanyas_iitjee_paper-ii_solutions2010 sri chaitanyas_iitjee_paper-ii_solutions
2010 sri chaitanyas_iitjee_paper-ii_solutions
 
Introduction to Some Tree based Learning Method
Introduction to Some Tree based Learning MethodIntroduction to Some Tree based Learning Method
Introduction to Some Tree based Learning Method
 
Predicates and quantifiers
Predicates and quantifiersPredicates and quantifiers
Predicates and quantifiers
 
Confidence Intervals––Exact Intervals, Jackknife, and Bootstrap
Confidence Intervals––Exact Intervals, Jackknife, and BootstrapConfidence Intervals––Exact Intervals, Jackknife, and Bootstrap
Confidence Intervals––Exact Intervals, Jackknife, and Bootstrap
 
Explainable AI in Industry (KDD 2019 Tutorial)
Explainable AI in Industry (KDD 2019 Tutorial)Explainable AI in Industry (KDD 2019 Tutorial)
Explainable AI in Industry (KDD 2019 Tutorial)
 
Reporting statistics in psychology
Reporting statistics in psychologyReporting statistics in psychology
Reporting statistics in psychology
 
Solving Quadratic Assignment Problems (QAP) using Ant Colony System
Solving Quadratic Assignment Problems (QAP) using Ant Colony SystemSolving Quadratic Assignment Problems (QAP) using Ant Colony System
Solving Quadratic Assignment Problems (QAP) using Ant Colony System
 
Cluster analysis using spss
Cluster analysis using spssCluster analysis using spss
Cluster analysis using spss
 
Halide - 1
Halide - 1Halide - 1
Halide - 1
 
Pigeonhole Principle - Seminar In Problem Solving In Mathematics
Pigeonhole Principle - Seminar In Problem Solving In MathematicsPigeonhole Principle - Seminar In Problem Solving In Mathematics
Pigeonhole Principle - Seminar In Problem Solving In Mathematics
 
Clustering ppt
Clustering pptClustering ppt
Clustering ppt
 
Chapter 04 random variables and probability
Chapter 04  random variables and probabilityChapter 04  random variables and probability
Chapter 04 random variables and probability
 
Random number generation
Random number generationRandom number generation
Random number generation
 
Birthday paradox
Birthday paradoxBirthday paradox
Birthday paradox
 

Similaire à MRQAP tutorial for newbies

Tables and Formulas for Sullivan, Statistics Informed Decisio.docx
Tables and Formulas for Sullivan, Statistics Informed Decisio.docxTables and Formulas for Sullivan, Statistics Informed Decisio.docx
Tables and Formulas for Sullivan, Statistics Informed Decisio.docx
mattinsonjanel
 
1Bivariate RegressionStraight Lines¾ Simple way to.docx
1Bivariate RegressionStraight Lines¾ Simple way to.docx1Bivariate RegressionStraight Lines¾ Simple way to.docx
1Bivariate RegressionStraight Lines¾ Simple way to.docx
aulasnilda
 
Kunci Jawaban kalkulus edisi 9[yunusFairVry.blogspot.com].pdf
Kunci Jawaban kalkulus edisi 9[yunusFairVry.blogspot.com].pdfKunci Jawaban kalkulus edisi 9[yunusFairVry.blogspot.com].pdf
Kunci Jawaban kalkulus edisi 9[yunusFairVry.blogspot.com].pdf
MutiaraPutri41
 
Malimu variance and standard deviation
Malimu variance and standard deviationMalimu variance and standard deviation
Malimu variance and standard deviation
Miharbi Ignasm
 
10 ch ken black solution
10 ch ken black solution10 ch ken black solution
10 ch ken black solution
Krunal Shah
 
Ap psy methods, stats
Ap psy methods, statsAp psy methods, stats
Ap psy methods, stats
biggaraa
 

Similaire à MRQAP tutorial for newbies (20)

Making Causal Claims as a Data Scientist: Tips and Tricks Using R
Making Causal Claims as a Data Scientist: Tips and Tricks Using RMaking Causal Claims as a Data Scientist: Tips and Tricks Using R
Making Causal Claims as a Data Scientist: Tips and Tricks Using R
 
Tables and Formulas for Sullivan, Statistics Informed Decisio.docx
Tables and Formulas for Sullivan, Statistics Informed Decisio.docxTables and Formulas for Sullivan, Statistics Informed Decisio.docx
Tables and Formulas for Sullivan, Statistics Informed Decisio.docx
 
Lesson 02 class practices
Lesson 02 class practicesLesson 02 class practices
Lesson 02 class practices
 
Measure of Dispersion final.pdf
Measure of Dispersion final.pdfMeasure of Dispersion final.pdf
Measure of Dispersion final.pdf
 
Measure of Dispersion final.pdf
Measure of Dispersion final.pdfMeasure of Dispersion final.pdf
Measure of Dispersion final.pdf
 
1Bivariate RegressionStraight Lines¾ Simple way to.docx
1Bivariate RegressionStraight Lines¾ Simple way to.docx1Bivariate RegressionStraight Lines¾ Simple way to.docx
1Bivariate RegressionStraight Lines¾ Simple way to.docx
 
Kunci Jawaban kalkulus edisi 9[yunusFairVry.blogspot.com].pdf
Kunci Jawaban kalkulus edisi 9[yunusFairVry.blogspot.com].pdfKunci Jawaban kalkulus edisi 9[yunusFairVry.blogspot.com].pdf
Kunci Jawaban kalkulus edisi 9[yunusFairVry.blogspot.com].pdf
 
Malimu variance and standard deviation
Malimu variance and standard deviationMalimu variance and standard deviation
Malimu variance and standard deviation
 
Z-Scores
Z-ScoresZ-Scores
Z-Scores
 
Math for 800 06 statistics, probability, sets, and graphs-charts
Math for 800   06 statistics, probability, sets, and graphs-chartsMath for 800   06 statistics, probability, sets, and graphs-charts
Math for 800 06 statistics, probability, sets, and graphs-charts
 
Solution to final exam engineering statistics 2014 2015
Solution to final exam engineering statistics 2014 2015Solution to final exam engineering statistics 2014 2015
Solution to final exam engineering statistics 2014 2015
 
10 ch ken black solution
10 ch ken black solution10 ch ken black solution
10 ch ken black solution
 
Sampling-and-Sampling-Distribution .pptx
Sampling-and-Sampling-Distribution .pptxSampling-and-Sampling-Distribution .pptx
Sampling-and-Sampling-Distribution .pptx
 
Unit 4_3 Correlation Regression.pptx
Unit 4_3 Correlation Regression.pptxUnit 4_3 Correlation Regression.pptx
Unit 4_3 Correlation Regression.pptx
 
Ce gate-2022-forenoon-solution
Ce gate-2022-forenoon-solutionCe gate-2022-forenoon-solution
Ce gate-2022-forenoon-solution
 
Sd
SdSd
Sd
 
Gmat
GmatGmat
Gmat
 
Trig cheat sheet
Trig cheat sheetTrig cheat sheet
Trig cheat sheet
 
Trig cheat sheet
Trig cheat sheetTrig cheat sheet
Trig cheat sheet
 
Ap psy methods, stats
Ap psy methods, statsAp psy methods, stats
Ap psy methods, stats
 

Dernier

Dernier (20)

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)
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
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_...
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
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
 

MRQAP tutorial for newbies