SlideShare a Scribd company logo
DEPENDENCIA LINEAL
Y COVARIANZA
Página 164 a 167
Definiciones
• Dependencia lineal: relación entre las variables que se analizan.
• Covarianza: valor que indica el grado de variación conjunta de dos
variables aleatorias respecto a sus medias, como una especie de
medida promedio de la dependencia lineal.
Covarianza (𝑆𝑥𝑦)
𝑆𝑥𝑦 =
𝑥𝑦 − 𝑛𝑥𝑦
𝑛 − 1
La covarianza mide la cantidad de relación lineal entre las variables y el
sentido de esta, de la forma:
• 𝑆𝑥𝑦 > 0, relación lineal positiva (si crece una variable, la otra
también)
• 𝑆𝑥𝑦 < 0, relación lineal negativa (si crece una variable, la otra
decrece).
• 𝑆𝑥𝑦 = 0, no hay relación lineal entre las variables.
Media
aritmética o
promedio
𝒙 , 𝒚
Coeficiente de correlación (Pearson)
𝑟 =
𝑆𝑥𝑦
𝑆𝑥𝑆𝑦
• Es una medida adimensional
• Siempre toma valores en el intervalo [−1,1]
• Mantiene el signo de 𝑆𝑥𝑦
Donde:
𝑆𝑥 =
1
𝑛−1
𝑥2 −
𝑥 2
𝑛
𝑆𝑦 =
1
𝑛−1
𝑦2 −
𝑦 2
𝑛
Ejemplo
Consideramos el conjunto de datos:
S = {(1; 3,6), (1,5; 4,35), (2,1; 5,25), (2,9; 6,45), (3,2; 6,9)}
Hallar la covarianza y el coeficiente de relación.
PASO 1:
X Y XY X² Y²
CONJUNTO DE
DATOS
1 3,6 3,6 1 12,96
1,5 4,35 6,525 2,25 18,9225
2,1 5,25 11,025 4,41 27,5625
2,9 6,45 18,705 8,41 41,6025
3,2 6,9 22,08 10,24 47,61
TOTAL SUMA 10,7 26,55 61,935 26,31 148,6575
PROMEDIO 2,14 5,31
PASO 2: Calcular la covarianza
𝑆𝑥𝑦 =
𝑥𝑦 − 𝑛𝑥𝑦
𝑛 − 1
𝑆𝑥𝑦 =
61,935 − 5 × 2,14 × 5,31
5 − 1
𝑆𝑥𝑦 =
61,935 − 56,817
4
𝑆𝑥𝑦 = 1,2795
PASO 3: Calcular el coeficiente de correlación
𝑆𝑥 =
1
𝑛−1
𝑥2 −
𝑥 2
𝑛
𝑆𝑦 =
1
𝑛−1
𝑦2 −
𝑦 2
𝑛
𝑆𝑥 =
1
5−1
26,31 −
10,7 2
5
𝑆𝑦 =
1
5−1
148,6575 −
26,55 2
5
𝑆𝑥 =
1
4
26,31 −
114,49
5
𝑆𝑦 =
1
4
148,6575 −
704,9025
5
𝑆𝑥 =
1
4
3,412 𝑆𝑦 =
1
4
7,677
𝑆𝑥 = 0,924 𝑆𝑦 =
1
4
7,677 = 1,385
𝑟 =
1,2795
0,924 × 1,385
= 0,9998
Análisis
• 𝑆𝑥𝑦 > 0, relación lineal positiva
• R=0,9998 ; correlación perfecta positiva y fuerte
X Y
1 3,6
1,5 4,35
2,1 5,25
2,9 6,45
3,2 6,9
y = 1,5x + 2,1
0
1
2
3
4
5
6
7
8
0 0.5 1 1.5 2 2.5 3 3.5

More Related Content

What's hot

Semana 12 ecuaciones e inecuaciones trigonometricas
Semana 12 ecuaciones e inecuaciones trigonometricas  Semana 12 ecuaciones e inecuaciones trigonometricas
Semana 12 ecuaciones e inecuaciones trigonometricas
Rodolfo Carrillo Velàsquez
 
Estadistica para la investigación (sesión5) version mejorable
Estadistica para la investigación (sesión5) version mejorableEstadistica para la investigación (sesión5) version mejorable
Estadistica para la investigación (sesión5) version mejorable
Zarlenin docente
 
Independencia lineal
Independencia linealIndependencia lineal
Independencia lineal
Mabe Rubio
 
Medidas de posición no centrales
Medidas de posición no centrales Medidas de posición no centrales
Medidas de posición no centrales
Ricardo Muzante
 
Fórmula de cardano para cúbicas
Fórmula de cardano para cúbicasFórmula de cardano para cúbicas
Fórmula de cardano para cúbicas
Ignacio Larrosa
 

What's hot (20)

La linea recta definición
La linea recta definiciónLa linea recta definición
La linea recta definición
 
Unidad 5. Seleccion sobre Sistemas de Ecuaciones Lineales
Unidad 5.  Seleccion sobre Sistemas de Ecuaciones LinealesUnidad 5.  Seleccion sobre Sistemas de Ecuaciones Lineales
Unidad 5. Seleccion sobre Sistemas de Ecuaciones Lineales
 
Semana 12 ecuaciones e inecuaciones trigonometricas
Semana 12 ecuaciones e inecuaciones trigonometricas  Semana 12 ecuaciones e inecuaciones trigonometricas
Semana 12 ecuaciones e inecuaciones trigonometricas
 
Estadistica para la investigación (sesión5) version mejorable
Estadistica para la investigación (sesión5) version mejorableEstadistica para la investigación (sesión5) version mejorable
Estadistica para la investigación (sesión5) version mejorable
 
Prueba de friedman
Prueba de friedmanPrueba de friedman
Prueba de friedman
 
Espacios vectoriales con producto interno
Espacios vectoriales con producto internoEspacios vectoriales con producto interno
Espacios vectoriales con producto interno
 
Ecuaciones De Segundo Grado
Ecuaciones De Segundo GradoEcuaciones De Segundo Grado
Ecuaciones De Segundo Grado
 
Sistemas de ecuaciones 2x2
Sistemas de ecuaciones 2x2Sistemas de ecuaciones 2x2
Sistemas de ecuaciones 2x2
 
Independencia lineal
Independencia linealIndependencia lineal
Independencia lineal
 
CLASE 2.1 UNIT 2 - Función biyectiva e inversa.docx
CLASE 2.1 UNIT 2 - Función biyectiva e inversa.docxCLASE 2.1 UNIT 2 - Función biyectiva e inversa.docx
CLASE 2.1 UNIT 2 - Función biyectiva e inversa.docx
 
ELIPSE E HIPERBOLA.pdf
ELIPSE E HIPERBOLA.pdfELIPSE E HIPERBOLA.pdf
ELIPSE E HIPERBOLA.pdf
 
Medidas de posición no centrales
Medidas de posición no centrales Medidas de posición no centrales
Medidas de posición no centrales
 
Chi cuadrado, ejercicio resuelto.
Chi cuadrado, ejercicio resuelto.Chi cuadrado, ejercicio resuelto.
Chi cuadrado, ejercicio resuelto.
 
Pruebas t de student
Pruebas t de studentPruebas t de student
Pruebas t de student
 
Regresion Y Correlacion
Regresion Y CorrelacionRegresion Y Correlacion
Regresion Y Correlacion
 
Present ppde casquetes esfericos para volumenes de revolucion
Present ppde casquetes esfericos para volumenes de revolucionPresent ppde casquetes esfericos para volumenes de revolucion
Present ppde casquetes esfericos para volumenes de revolucion
 
Clase2 El modelo de regresión simple
Clase2 El modelo de regresión simpleClase2 El modelo de regresión simple
Clase2 El modelo de regresión simple
 
Inecuaciones Racionales - Matemática
Inecuaciones Racionales - Matemática  Inecuaciones Racionales - Matemática
Inecuaciones Racionales - Matemática
 
Fórmula de cardano para cúbicas
Fórmula de cardano para cúbicasFórmula de cardano para cúbicas
Fórmula de cardano para cúbicas
 
Coeficiente de variación
Coeficiente de variaciónCoeficiente de variación
Coeficiente de variación
 

Similar to Dependencia lineal y covarianza

correlationcoefficient-20090414 0531.pdf
correlationcoefficient-20090414 0531.pdfcorrelationcoefficient-20090414 0531.pdf
correlationcoefficient-20090414 0531.pdf
DrAmanSaxena
 

Similar to Dependencia lineal y covarianza (20)

Course pack unit 5
Course pack unit 5Course pack unit 5
Course pack unit 5
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Statistics-Regression analysis
Statistics-Regression analysisStatistics-Regression analysis
Statistics-Regression analysis
 
Unit 1 Correlation- BSRM.pdf
Unit 1 Correlation- BSRM.pdfUnit 1 Correlation- BSRM.pdf
Unit 1 Correlation- BSRM.pdf
 
Measure of Dispersion, Range, Mean and Standard Deviation, Correlation and Re...
Measure of Dispersion, Range, Mean and Standard Deviation, Correlation and Re...Measure of Dispersion, Range, Mean and Standard Deviation, Correlation and Re...
Measure of Dispersion, Range, Mean and Standard Deviation, Correlation and Re...
 
Module 2_ Regression Models..pptx
Module 2_ Regression Models..pptxModule 2_ Regression Models..pptx
Module 2_ Regression Models..pptx
 
Topic 5 Covariance & Correlation.pptx
Topic 5  Covariance & Correlation.pptxTopic 5  Covariance & Correlation.pptx
Topic 5 Covariance & Correlation.pptx
 
Topic 5 Covariance & Correlation.pptx
Topic 5  Covariance & Correlation.pptxTopic 5  Covariance & Correlation.pptx
Topic 5 Covariance & Correlation.pptx
 
correlationcoefficient-20090414 0531.pdf
correlationcoefficient-20090414 0531.pdfcorrelationcoefficient-20090414 0531.pdf
correlationcoefficient-20090414 0531.pdf
 
Simple Correlation : Karl Pearson’s Correlation co- efficient and Spearman’s ...
Simple Correlation : Karl Pearson’s Correlation co- efficient and Spearman’s ...Simple Correlation : Karl Pearson’s Correlation co- efficient and Spearman’s ...
Simple Correlation : Karl Pearson’s Correlation co- efficient and Spearman’s ...
 
Lesson 27 using statistical techniques in analyzing data
Lesson 27 using statistical techniques in analyzing dataLesson 27 using statistical techniques in analyzing data
Lesson 27 using statistical techniques in analyzing data
 
CORRELATION-AND-REGRESSION.pdf for human resource
CORRELATION-AND-REGRESSION.pdf for human resourceCORRELATION-AND-REGRESSION.pdf for human resource
CORRELATION-AND-REGRESSION.pdf for human resource
 
Correlating test scores
Correlating test scoresCorrelating test scores
Correlating test scores
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Regression.pptx
Regression.pptxRegression.pptx
Regression.pptx
 
Regression
RegressionRegression
Regression
 
Chapter 12
Chapter 12Chapter 12
Chapter 12
 
correlation and regression
correlation and regressioncorrelation and regression
correlation and regression
 
Properties of coefficient of correlation
Properties of coefficient of correlationProperties of coefficient of correlation
Properties of coefficient of correlation
 
Regression and Co-Relation
Regression and Co-RelationRegression and Co-Relation
Regression and Co-Relation
 

Recently uploaded

Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Accounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfAccounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdf
YibeltalNibretu
 

Recently uploaded (20)

INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx
 
Salient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxSalient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptx
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Advances in production technology of Grapes.pdf
Advances in production technology of Grapes.pdfAdvances in production technology of Grapes.pdf
Advances in production technology of Grapes.pdf
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptx
 
Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resources
 
NLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptxNLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptx
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Accounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfAccounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdf
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
The Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational ResourcesThe Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational Resources
 

Dependencia lineal y covarianza

  • 2. Definiciones • Dependencia lineal: relación entre las variables que se analizan. • Covarianza: valor que indica el grado de variación conjunta de dos variables aleatorias respecto a sus medias, como una especie de medida promedio de la dependencia lineal.
  • 3. Covarianza (𝑆𝑥𝑦) 𝑆𝑥𝑦 = 𝑥𝑦 − 𝑛𝑥𝑦 𝑛 − 1 La covarianza mide la cantidad de relación lineal entre las variables y el sentido de esta, de la forma: • 𝑆𝑥𝑦 > 0, relación lineal positiva (si crece una variable, la otra también) • 𝑆𝑥𝑦 < 0, relación lineal negativa (si crece una variable, la otra decrece). • 𝑆𝑥𝑦 = 0, no hay relación lineal entre las variables. Media aritmética o promedio 𝒙 , 𝒚
  • 4. Coeficiente de correlación (Pearson) 𝑟 = 𝑆𝑥𝑦 𝑆𝑥𝑆𝑦 • Es una medida adimensional • Siempre toma valores en el intervalo [−1,1] • Mantiene el signo de 𝑆𝑥𝑦 Donde: 𝑆𝑥 = 1 𝑛−1 𝑥2 − 𝑥 2 𝑛 𝑆𝑦 = 1 𝑛−1 𝑦2 − 𝑦 2 𝑛
  • 5. Ejemplo Consideramos el conjunto de datos: S = {(1; 3,6), (1,5; 4,35), (2,1; 5,25), (2,9; 6,45), (3,2; 6,9)} Hallar la covarianza y el coeficiente de relación. PASO 1: X Y XY X² Y² CONJUNTO DE DATOS 1 3,6 3,6 1 12,96 1,5 4,35 6,525 2,25 18,9225 2,1 5,25 11,025 4,41 27,5625 2,9 6,45 18,705 8,41 41,6025 3,2 6,9 22,08 10,24 47,61 TOTAL SUMA 10,7 26,55 61,935 26,31 148,6575 PROMEDIO 2,14 5,31
  • 6. PASO 2: Calcular la covarianza 𝑆𝑥𝑦 = 𝑥𝑦 − 𝑛𝑥𝑦 𝑛 − 1 𝑆𝑥𝑦 = 61,935 − 5 × 2,14 × 5,31 5 − 1 𝑆𝑥𝑦 = 61,935 − 56,817 4 𝑆𝑥𝑦 = 1,2795
  • 7. PASO 3: Calcular el coeficiente de correlación 𝑆𝑥 = 1 𝑛−1 𝑥2 − 𝑥 2 𝑛 𝑆𝑦 = 1 𝑛−1 𝑦2 − 𝑦 2 𝑛 𝑆𝑥 = 1 5−1 26,31 − 10,7 2 5 𝑆𝑦 = 1 5−1 148,6575 − 26,55 2 5 𝑆𝑥 = 1 4 26,31 − 114,49 5 𝑆𝑦 = 1 4 148,6575 − 704,9025 5 𝑆𝑥 = 1 4 3,412 𝑆𝑦 = 1 4 7,677 𝑆𝑥 = 0,924 𝑆𝑦 = 1 4 7,677 = 1,385 𝑟 = 1,2795 0,924 × 1,385 = 0,9998
  • 8. Análisis • 𝑆𝑥𝑦 > 0, relación lineal positiva • R=0,9998 ; correlación perfecta positiva y fuerte X Y 1 3,6 1,5 4,35 2,1 5,25 2,9 6,45 3,2 6,9 y = 1,5x + 2,1 0 1 2 3 4 5 6 7 8 0 0.5 1 1.5 2 2.5 3 3.5