SlideShare uma empresa Scribd logo
1 de 21
Baixar para ler offline
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	 1	 1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	 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

Mais conteúdo relacionado

Mais procurados

Analytical solution of 2d poisson’s equation using separation of variable met...
Analytical solution of 2d poisson’s equation using separation of variable met...Analytical solution of 2d poisson’s equation using separation of variable met...
Analytical solution of 2d poisson’s equation using separation of variable met...
IAEME Publication
 

Mais procurados (20)

Circuit Network Analysis - [Chapter4] Laplace Transform
Circuit Network Analysis - [Chapter4] Laplace TransformCircuit Network Analysis - [Chapter4] Laplace Transform
Circuit Network Analysis - [Chapter4] Laplace Transform
 
Voltage Controlled Oscillator Design - Short Course at NKFUST, 2013
Voltage Controlled Oscillator Design - Short Course at NKFUST, 2013Voltage Controlled Oscillator Design - Short Course at NKFUST, 2013
Voltage Controlled Oscillator Design - Short Course at NKFUST, 2013
 
Communication systems solution manual 5th edition
Communication systems solution manual 5th editionCommunication systems solution manual 5th edition
Communication systems solution manual 5th edition
 
Overlap Add, Overlap Save(digital signal processing)
Overlap Add, Overlap Save(digital signal processing)Overlap Add, Overlap Save(digital signal processing)
Overlap Add, Overlap Save(digital signal processing)
 
Analytical solution of 2d poisson’s equation using separation of variable met...
Analytical solution of 2d poisson’s equation using separation of variable met...Analytical solution of 2d poisson’s equation using separation of variable met...
Analytical solution of 2d poisson’s equation using separation of variable met...
 
射頻電子實驗手冊 [實驗1 ~ 5] ADS入門, 傳輸線模擬, 直流模擬, 暫態模擬, 交流模擬
射頻電子實驗手冊 [實驗1 ~ 5] ADS入門, 傳輸線模擬, 直流模擬, 暫態模擬, 交流模擬射頻電子實驗手冊 [實驗1 ~ 5] ADS入門, 傳輸線模擬, 直流模擬, 暫態模擬, 交流模擬
射頻電子實驗手冊 [實驗1 ~ 5] ADS入門, 傳輸線模擬, 直流模擬, 暫態模擬, 交流模擬
 
射頻電子 - [第四章] 散射參數網路
射頻電子 - [第四章] 散射參數網路射頻電子 - [第四章] 散射參數網路
射頻電子 - [第四章] 散射參數網路
 
Graphical equalizer using MATLAB
Graphical equalizer using MATLABGraphical equalizer using MATLAB
Graphical equalizer using MATLAB
 
射頻電子 - [第三章] 史密斯圖與阻抗匹配
射頻電子 - [第三章] 史密斯圖與阻抗匹配射頻電子 - [第三章] 史密斯圖與阻抗匹配
射頻電子 - [第三章] 史密斯圖與阻抗匹配
 
Cnn backpropagation derivation
Cnn backpropagation derivationCnn backpropagation derivation
Cnn backpropagation derivation
 
PLC Intro to programming
PLC Intro to programmingPLC Intro to programming
PLC Intro to programming
 
5 amcat reading comprehension
5   amcat reading comprehension5   amcat reading comprehension
5 amcat reading comprehension
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
 
專題製作發想與報告撰寫技巧
專題製作發想與報告撰寫技巧專題製作發想與報告撰寫技巧
專題製作發想與報告撰寫技巧
 
Signal Flow Graph ( control system)
Signal Flow Graph ( control system)Signal Flow Graph ( control system)
Signal Flow Graph ( control system)
 
Probability and stochastic processes 3rd edition Quiz Solutions
Probability and stochastic processes 3rd edition Quiz SolutionsProbability and stochastic processes 3rd edition Quiz Solutions
Probability and stochastic processes 3rd edition Quiz Solutions
 
Converting a Single-Ended Signal with the AD7984 Differential PulSAR ADC
Converting a Single-Ended Signal with the AD7984 Differential PulSAR ADCConverting a Single-Ended Signal with the AD7984 Differential PulSAR ADC
Converting a Single-Ended Signal with the AD7984 Differential PulSAR ADC
 
Hw1 solution
Hw1 solutionHw1 solution
Hw1 solution
 
Chute tension schneider
Chute tension schneiderChute tension schneider
Chute tension schneider
 
Deep Learning
Deep LearningDeep Learning
Deep Learning
 

Semelhante a 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
 

Semelhante a 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
 

Último

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 

Último (20)

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
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
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
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
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
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
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
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.
 
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...
 

MRQAP tutorial for newbies