Logo Studenta

EJERCICIO PROPUESTO

¡Este material tiene más páginas!

Vista previa del material en texto

Regresión y Correlación simple
		REGRESIÓN Y CORRELACIÓN SIMPLE
		Son dos herramientas para investigar la dependencia de una variable dependiente Y en función de
		una variable independiente X
		Y = f(X)
		Y = Variable dependiente que se desea explicar o predecir, también se llama regresor o respuesta
		X = Variable independiente, también se llama variable explicativa, regresor o predictor
		Regresión lineal - La relación entre X y Y se representa por medio de una línea recta
		Regresión curvilinea - La relación entre X y Y se representa por medio de una curva
		 Y			 * *
			 **	*	 *			* *	 
			 * *		 *			 *
			 *	 b1		 * *	 *	 *	 
			 *			* *	 *		 
		 * *				 * *		 * *	 
		 b0							 
								 X	 
			Correlación positiva		Correlación negativa		 Sin correlación
		La ecuación de la recta es la siguiente:
							e = error aleatorio
		El término de error es la diferencia entre los valores reales observados Yi y los valores estimados por 
		la ecaución de la recta. Se trata de que estos sean mínimos, para lo cual se utiliza el método de 
		mínimos cudrados
		 Y
				 *
			 *
						 X
		Se trata de minimizar la suma de todos los errores o residuos:
		Al aplicar esta regla a las ecuaciones correspondientes se obtienen las siguientes sumas de cuadrados:
						De esta forma los mínimos cuadrados
						se basan en las diferencias al cuadrado
						respecto a las medias tanto en X como
						en Y
		Los coeficientes de la recta son:
		Ejemplo:
		Observación	Publicidad X	Pasajeros Y	 XY	 X*X	 Y*Y
		1	10	15	150	100	225
		2	12	17	204	144	289
		3	8	13	104	64	169
		4	17	23	391	289	529
		5	10	16	160	100	256
		6	15	21	315	225	441
		7	10	14	140	100	196
		8	14	20	280	196	400
		9	19	24	456	361	576
		10	10	17	170	100	289
		11	11	16	176	121	256
		12	13	18	234	169	324
		13	16	23	368	256	529
		14	10	15	150	100	225
		15	12	16	192	144	256
	Suma	 	187	268	3490	2469	4960
	Media		12.4667	17.8667
		SCx =	137.7333
		SCy =	171.7333
		SCxy =	148.9333
		b1 =	1.0813
		b0 =	4.3865
		El modelo de regresión es:			Para pronosticar en X = 10 se tiene:
		*			*
		Y = 4.40 + 1.08 X			Y = 15.2
	SUPUESTOS DEL MODELO DE REGRESIÖN LINEAL
		1. Los errores o residuos se distribuyen normalmente alrededor de la recta de regresión poblacional
			 	*
				*
			 *	*
			 *	*
			 *	*
			 *
		2. Las varianzas de los errores son las mismas en todos los valores de X (Homoscedasticidad)
		 en caso contrario se tiene (Heteroscedasticidad)
		3. Los errores o residuos son independientes: No se muestra algun patrón definido+B170
		Los residuos o errores se muestran a continuación:
		Obs X Y Fit SE Fit Residual St Resid
		 1 10.0 15.000 15.199 0.302 -0.199 -0.23 
		 2 12.0 17.000 17.362 0.237 -0.362 -0.41 
		 3 8.0 13.000 13.037 0.417 -0.037 -0.05 
		 4 17.0 23.000 22.769 0.421 0.231 0.29 
		 5 10.0 16.000 15.199 0.302 0.801 0.94 
		 6 15.0 21.000 20.606 0.305 0.394 0.46 
		 7 10.0 14.000 15.199 0.302 -1.199 -1.40 
		 8 14.0 20.000 19.525 0.262 0.475 0.55 
		 9 19.0 24.000 24.931 0.556 -0.931 -1.30 
		 10 10.0 17.000 15.199 0.302 1.801 2.11R 
		 11 11.0 16.000 16.281 0.260 -0.281 -0.32 
		 12 13.0 18.000 18.443 0.238 -0.443 -0.51 
		 13 16.0 23.000 21.687 0.360 1.313 1.58 
		 14 10.0 15.000 15.199 0.302 -0.199 -0.23 
		 15 12.0 16.000 17.362 0.237 -1.362 -1.56
		Cuando los errores forman un patrón como los siguientes, indicaría que los errores tienen 
		autocorrelación (no son independientes)
	 +e				+e
		 		 *	 	**	*	*
	 '0	 *	 * 		0	 
		 *	 **			 
			 * 			 *	 *	 *
	 - e				 -e
		Autocorrelación Positiva de los residuos				Autocorrelación negativa de los residuos
		Para probar la autocorrelación se utiliza el estadístico de Durbin Watson:
						Haciendo los cálculos d = 2.48
						De MINITAB
						Durbin-Watson statistic = 2.48
		De la tabla III del Apéndice K para un alfa = 0.01, n = 15 y k=1 variables independientes, se tiene:
		dl = 0.81 du = 1.07
		 INDEFINIDO		SIN AUTOCORRELACIÓN		INDEFINIDO
		 dl = 0.81	 du =1.07		4 - du = 2.93	 4 - dl = 3.19
		AUTOCORRELACIÓN POSITIVA				AUTOCORRELACIÓN NEGATIVA
		Se rechaza Ho				Se rechaza Ho
		NOTA: Normalmente no habrá Autocorrelación si el estadístico Durbin Watson es cercano a 2.
	ERROR ESTÁNDAR 		Es una medida del grado de dispersión de los valores Yi alrededor de la recta de regresión
	DE ESTIMACIÓN Se		y proporciona una medida del error que se presentará en la estimación de Yi.
		En el caso del ejemplo:
		SCE = 10.6893
		CME = 0.8222
		Se = 0.907
	ANALISIS DE CORRELACIÓN
		El coeficiente de Correlación r desarrollado por Carl Pearson es un indicador de la fuerza de la relación
		entre las variables X y Y, puede asumir valores entre -1 y 1 para correlación negativa y positiva perfecta
		respectivamente.
		Se identifican tres medidas de desviación como sigue:
			Y
							Yest = 4.4 + 1.08 X
				 Yi = 23	 *		Desviación no explicada
							Error = (Yi - Yest) = 1.32
				Variación total
				(Yi-Ymedia)=5.13	 	Desviació explicada
						(Yest-Ymedia) = 3.81
		Ymedia =17.87
					X = 16			X
		Calculando el valor de r = 0.9683
		Y el coeficiente de determinación r2 = 0.94
	PRUEBAS PARA EL COEFICIENTE DE LA RECTA BETA 1
	 
		Ho: Beta1 = 0
		Ha: Beta1 <>0
		La prueba t es:
		Sb1 = 0.0772
		tm = 13.995	 t de excel para alfa=0.05 y gl=n-2=13 es 2.169 
			Por tanto se rechaza Ho y el coeficiente Beta 1 es signif.
		IC Beta 1 = 1.08 +- (2.16)(0.07726) = 0.913 <= Beta 1 <= 1.247
	PRUEBAS PARA EL COEFICIENTE DE CORRELACIÓN POBLACIONAL RO
		Ho: Ro = 0
		Ha: Ro<>0
		La prueba t es:
		Sr = 0.069
		t = 13.995
		La t de Excel es para un alfa del 5% y gl = n-2 = 12 es 				2.1603686565
		Por tanto se rechaza la hipótesis nula y el coeficiente de correlación Ro es significativo
	INTERVALO DE CONFIANZA PARA LA MEDIA DE LA Y ESTIMADA CONDICIONADA A Xo
		El intervalo de confianza para la media de la Yestimada dado un valor de Xo se calcula como sigue:
								Banda del
				Y				95% de
								Confianza
		En el ejemplo:
						Xo		 X
		Xo = 10	Yest = 15.2
		Sy = 0.303
		IC = 15.2 + - 2.160(0.303) 14.55 <= Mu y <= 15.85
		Considerando todos los valores se forma una banda de confianza alrededor de la recta de regresión
	INTERVALO DE PREDICCIÓN PARA UN VALOR ÚNICO DE Y ESTIMADA
		El intervalo de predicción para un valor único de Y estimada dado un valor de Xo se calcula como sigue:
								Banda de
								Predicción
								del 95%
		Xo = 10	Yest = 15.2
		Sy10 = 0.907
		IP = 15.2 + - 2.160(0.956) 13.14 <= Mu y <= 17.27
		Considerando todos los valores se forma una banda de predicción alrededor de la recta de regresión
		la cual es más amplia que la banda de confianza
	ANÁLISIS DE VARIANZA EN LA REGRESIÓN
		Fuente de	Suma de 	Grados de	Cuadrado 
		variación	cuadrados	libertad	medio	Fm
		Regresión	SCR	k	CMR = SCR/k	CMR/CME
		Error	SCE	n-k-1	CME=SCE / (n-k-1)
		Total	SCT
				NOTA: k variables predictoras 
		 
		Fuente de	Suma de 	Grados de	Cuadrado 
		variación	cuadrados	libertad	medio	Fm
		Regresión	161.04	1	161.04	196.39
		Error	10.69	13	0.82
		Total	SCT	14
		A un valor de alfa de 0.05 el estadístico F de Excel es F0.05,1,13 = 4.67
		Por tanto se comprueba que existe la regresión y es significativao sea Beta 1<>0
		NOTA: Aquí el valor F es el cuadrado del valor de t para comprobar la hipótesis de Beta 1<> 0
	SALIDA DE MINITAB
		Regression Analysis: Y versus X
		The regression equation is
		Y = 4.39 + 1.08 X
		Predictor Coef SE Coef T P
		Constant 4.3863 0.9913 4.42 0.001
		X 1.08132 0.07726 13.99 0.000
		S = 0.9068 R-Sq = 93.8% R-Sq(adj) = 93.3%
		Analysis of Variance
		Source DF SS MS F P
		Regression 1 161.04 161.04 195.86 0.000
		Residual Error 13 10.69 0.82
		Total 14 171.73
Datos de ejercicio
	Problema . Investigar si existe una relación entre los niveles de Consumo (Y) y el ingreso de los consumindores (X). 
		a) Establecer la ecuación de regresión
		b) Hacer un diagrama de Dispersión para los datos (Agregar línea de tendencia, ecuación y R2)
		c) ¿Qué consumo se pronostica para alguien que gane $27,000?
		Datos:
		X=Ingreso	Y=Consumo
		24.3	16.2
		12.5	8.5
		31.2	15
		28	17
		35.1	24.2
		10.5	11.2
		23.2	15
		10	7.1
		8.5	3.5
		15.9	11.5
		14.7	10.7
		15	9.2
å
å
å
å
å
å
å
å
å
å
-
=
-
-
=
-
=
-
=
-
=
-
=
n
Yi
Xi
XiYi
Y
Yi
X
Xi
SCxy
n
Yi
Yi
Y
Yi
SCy
n
Xi
Xi
X
Xi
SCx
)
)(
(
)
)(
(
)
(
)
(
)
(
)
(
2
2
2
2
2
2
n
YiXi
XiYiYYiXXiSCxy
n
Yi
YiYYiSCy
n
Xi
XiXXiSCx
))((
))((
)(
)(
)(
)(
2
2
2
2
2
2
Y
eje
el
con
recta
la
de
ón
Intercepci
X
b
Y
b
recta
la
de
Pendiente
SCx
SCxy
b
o
.
.
.
.
.
.
.
..........
.
.
.
...
..........
1
1
-
=
=
YejeelconrectaladeónIntercepciXbYb
rectaladePendiente
SCx
SCxy
b
o
.................
................
1
1
-2-1012
-2
-1
0
1
2
N
o
r
m
a
l
 
S
c
o
r
e
Standardized Residual
Normal Probability Plot of the Residuals
(response is Y)
ación
autocorrel
existe
Si
Ha
ación
autocorrel
existe
No
Ho
e
e
e
d
ei
ei
ei
ei
i
i
i
.
.
....
0
:
.
.
....
0
:
)
(
1
,
1
,
2
2
1
=
=
-
=
-
-
-
å
å
r
r
aciónautocorrelexisteSiHa
aciónautocorrelexisteNoHo
e
ee
d
eiei
eiei
i
ii
......0:
......0:
)(
1,
1,
2
2
1
CME
Se
n
SCE
CME
SCx
SCxy
SCy
SCE
n
Y
Yi
Se
=
-
=
-
=
-
-
=
=
å
2
)
(
2
)
(
2
2
*
s
CMESe
n
SCE
CME
SCx
SCxy
SCySCE
n
YYi
Se
2
)(
2
)(
2
2
*
ajuste
de
bondad
de
Medida
SCy
SCx
SCxy
ación
er
de
e
Coeficient
SCy
SCx
SCx
SCT
SCR
total
Variación
licada
Variación
r
n
correlació
de
e
Coeficient
SCR
SCT
Yest
Yi
SCE
error
del
cuadrados
de
Suma
n
iest
Y
est
i
Y
Y
iest
Y
SCR
regresión
la
de
cuadrados
de
Suma
n
Yi
Yi
Y
Yi
SCT
total
cuadrados
de
Suma
.
.
.
.
)
)(
(
)
(
min
det
.
.
)
)(
(
.
exp
.
.
.
)
(
.
.
.
.
)
(
)
(
.
.
.
.
.
)
(
)
(
.
.
.
2
2
*
2
*
2
*
2
*
2
2
2
=
=
=
=
=
=
-
=
-
=
=
-
=
-
=
=
-
=
-
=
=
å
å
å
å
å
å
å
ajustedebondaddeMedida
SCySCx
SCxy
aciónerdeeCoeficient
SCySCx
SCx
SCT
SCR
totalVariación
licadaVariación
rncorrelaciódeeCoeficient
SCRSCTYestYiSCEerrordelcuadradosdeSuma
n
iestY
estiYYiestYSCRregresiónladecuadradosdeSuma
n
Yi
YiYYiSCTtotalcuadradosdeSuma
....
))((
)(
mindet..
))((
.
exp.
..
)(....
)(
)(.....
)(
)(...
2
2
*
2
*
2
*
2
*
2
2
2
)
(
.
.
.
.
.........
1
1
1
1
1
1
b
b
b
s
t
b
para
confianza
de
Intervalo
SCx
Se
s
s
b
tm
±
=
=
=
b
)(....
.........
111
1
1
1
b
b
b
stbparaconfianzadeIntervalo
SCx
Se
s
s
b
tm
2
1
2
-
-
=
-
=
n
r
s
s
r
t
r
r
r
2
1
2
n
r
s
s
r
t
r
r
tSy
est
Y
para
IC
SCx
X
Xi
n
Se
Sy
x
y
±
=
-
+
=
*
!
2
.
.
)
(
1
m
tSyestYparaIC
SCx
XXi
n
SeSy
xy
*
!
2
..
)(1
tSyi
est
Y
Yx
para
IP
SCx
X
Xi
n
Se
Syi
±
=
-
+
+
=
*
2
.
.
)
(
1
1
tSyiestYYxparaIP
SCx
XXi
n
SeSyi
*
2
..
)(1
1
SCx
SCxy
SCy
SCE
SCx
SCxy
SCR
2
2
)
(
)
(
-
=
=
SCx
SCxy
SCySCE
SCx
SCxy
SCR
2
2
)(
)(
��������Fitted Line Plot: Y versus X1���������������������������������������������������������������������������������������������������������������¬S������$S��Fitted Line Plot: Y versus X1���������������������������������������������������������������������������������������������������;; HMF V1.24 TEXT
;; (Microsoft Win32 Intel 386) HOOPS 4.50-11 I.M. 3.00-11
(Selectability "windows=off,geometry=on")
(Visibility "on")
(Color_By_Index "Window" 0)
(Color_By_Index "Geometry,Face Contrast" 1)
(Window_Frame "off")
(Window -1 1 -1 1)
(Camera (0 0 -5) (0 0 0) (0 1 0) 2 2 "Stretched")
;; (Driver_Options "disable input,subscreen=(-0.999902,-0.464746,-0.99987,-0.28
;; 6327),no update interrupts,use window id=3656")
(Edge_Pattern "---")
(Edge_Weight 1)
(Face_Pattern "solid")
(Heuristics "no related selection limit")
(Line_Pattern "---")
(Line_Weight 1)
(Marker_Size 0.421875)
(Marker_Symbol ".")
(Text_Font "name=arial-gdi-vector,no transforms,rotation=follow path")
(User_Options "mtb aspect ratio=0.686217,graphicsversion=6,worksheettitle=\"Wor
ksheet 1\",optiplot=0,builtin=0,statguideid=2151,toplayer=0,angle=0,arrowdir=0,
arrowstyle=0,polygon=0,isdata=0,textfollowpath=1,ldfill=0,solidfill=0,3d=0,useb
itmap=0,canbrush=0,brushrows=15,light scaling=0.00000,sessionline=-1")
(Segment "include" ())
(Front ((Segment "figure1" (
 (Window_Pattern "clear")
 (Window -1 1 -1 1)
 (User_Options "viewinfigurecoord=0")
 (Front ((Segment "region" (
	(Front ((Segment "figure box" (
	 (Visibility "polygons=off,lines=off")
	 (Color_By_Index "Face Contrast,Line,Edge" 1)
	 (Color_By_Index "Face" 0)
	 (Edge_Pattern "---")
	 (Edge_Weight 1)
	 (Face_Pattern "solid")
	 (Line_Pattern "---")
	 (Line_Weight 1)
	 (User_Options "solidfill=1")
	 (Segment "" (
	 (Polygon ((-0.99995 -0.99995 0) (0.99995 -0.99995 0) (0.99995 
		 0.99995 0) (-0.99995 0.99995 0)))))))
	 (Segment "data box" (
	 (Visibility "faces=off")
	 (Color_By_Index "Polygon,Face Contrast,Line" 1)
	 (Edge_Pattern "---")
	 (Edge_Weight 1)
	 (Face_Pattern "/")
	 (Line_Pattern "---")
	 (Line_Weight 1)
	 (User_Options "ldfill=1,solidfill=1")
	 (Segment "" (
	 (Polygon ((-0.649967 -0.59997 0) (0.499975 -0.59997 0) (0.499975 
		 0.59997 0) (-0.649967 0.59997 0)))))))
	 (Segment "legend box" ())
	 (Segment "legend" (
	 (Window_Pattern "clear")
	 (Window -1 1 -1 1)
	 (User_Options "viewinfigurecoord=1")
	 (Front ((Segment "symbol1" ())))))))))
 (Segment "object" (
	(Front ((Segment "frame" (
	 (Window_Pattern "clear")
	 (Window -1 1 -1 1)
	 (Front ((Segment "tick" (
		(Front ((Segment "set1" (
		 (Color_By_Index "Face Contrast,Line,Text,Edge" 1)
		 (Edge_Pattern "---")
		 (Edge_Weight 1)
		 (Line_Pattern "---")
		 (Line_Weight 1)
		 (Text_Alignment "^*")
		 (Text_Font "name=arial-gdi-vector,size=0.02388 sru")
		 (Segment "" (
		 (Text -0.428326 -0.669967 0 "10")))
		 (Segment "" (
		 (Text 0.0258252 -0.669967 0 "15")))
		 (Segment "" (
		 (Text 0.479976 -0.669967 0 "20")))
		 (Segment "major" (
		 (Segment "" (
			(Front ((Polyline ((-0.428326 -0.59997 0) (-0.428326 
			 -0.639968 0)))))))
		 (Segment "" (
			(Front ((Polyline ((0.0258252 -0.59997 0) (0.0258252 
			 -0.639968 0)))))))
		 (Segment "" (
			(Front ((Polyline ((0.479976 -0.59997 0) (0.479976 
			 -0.639968 0)))))))))))
		 (Segment "set2" (
		 (Color_By_Index "Face Contrast,Line,Text,Edge" 1)
		 (Edge_Pattern "---")
		 (Edge_Weight 1)
		 (Line_Pattern "---")
		 (Line_Weight 1)
		 (Text_Alignment "*>")
		 (Text_Font "name=arial-gdi-vector,size=0.02388 sru")
		 (Segment "" (
		 (Text -0.719964 -0.579971 0 "10")))
		 (Segment "" (
		 (Text -0.719964 -0.451089 0 "12")))
		 (Segment "" (
		 (Text -0.719964 -0.322206 0 "14")))
		 (Segment "" (
		 (Text -0.719964 -0.193324 0 "16")))
		 (Segment "" (
		 (Text -0.719964 -0.0644412 0 "18")))
		 (Segment ""(
		 (Text -0.719964 0.0644412 0 "20")))
		 (Segment "" (
		 (Text -0.719964 0.193324 0 "22")))
		 (Segment "" (
		 (Text -0.719964 0.322206 0 "24")))
		 (Segment "" (
		 (Text -0.719964 0.451089 0 "26")))
		 (Segment "" (
		 (Text -0.719964 0.579971 0 "28")))
		 (Segment "major" (
		 (Segment "" (
			(Front ((Polyline ((-0.649967 -0.579971 0) (-0.689965 
			 -0.579971 0)))))))
		 (Segment "" (
			(Front ((Polyline ((-0.649967 -0.451089 0) (-0.689965 
			 -0.451089 0)))))))
		 (Segment "" (
			(Front ((Polyline ((-0.649967 -0.322206 0) (-0.689965 
			 -0.322206 0)))))))
		 (Segment "" (
			(Front ((Polyline ((-0.649967 -0.193324 0) (-0.689965 
			 -0.193324 0)))))))
		 (Segment "" (
			(Front ((Polyline ((-0.649967 -0.0644412 0) (-0.689965 
			 -0.0644412 0)))))))
		 (Segment "" (
			(Front ((Polyline ((-0.649967 0.0644412 0) (-0.689965 
			 0.0644412 0)))))))
		 (Segment "" (
			(Front ((Polyline ((-0.649967 0.193324 0) (-0.689965 
			 0.193324 0)))))))
		 (Segment "" (
			(Front ((Polyline ((-0.649967 0.322206 0) (-0.689965 
			 0.322206 0)))))))
		 (Segment "" (
			(Front ((Polyline ((-0.649967 0.451089 0) (-0.689965 
			 0.451089 0)))))))
		 (Segment "" (
			(Front ((Polyline ((-0.649967 0.579971 0) (-0.689965 
			 0.579971 0)))))))))))))))
	 (Segment "grid" ())
	 (Segment "reference" ())
	 (Segment "axis" (
		(Front ((Segment "set1" (
		 (Color_By_Index "Face Contrast,Line,Text,Edge" 1)
		 (Edge_Pattern "---")
		 (Edge_Weight 1)
		 (Line_Pattern "---")
		 (Line_Weight 1)
		 (Text_Alignment "^*")
		 (Text_Font "name=arial-gdi-vector,size=0.04264 sru")
		 (Segment "" (
		 (Front ((Polyline ((-0.629969 -0.59997 0) (0.479976 
			 -0.59997 0)))))))
		 (Segment "" (
		 (Text -0.0749962 -0.739455 0 "X1")))))
		 (Segment "set2" (
		 (Color_By_Index "Face Contrast,Line,Text,Edge" 1)
		 (Edge_Pattern "---")
		 (Edge_Weight 1)
		 (Line_Pattern "---")
		 (Line_Weight 1)
		 (Text_Alignment "*>")
		 (Text_Font "name=arial-gdi-vector,size=0.04264 sru")
		 (Text_Path 6.12303e-17 1 0)
		 (Segment "" (
		 (Front ((Polyline ((-0.649967 -0.579971 0) (-0.649967 
			 0.579971 0)))))))
		 (Segment "" (
		 (Selectability "polygons=on!,text=off")
		 (Visibility "polygons=off")
		 (Text_Alignment "v>")
		 (Text_Path 0 1 0)
		 (User_Options "angle=90,polygon=3,linect=1,charct=1")
		 (Polygon ((-0.864558 -0.0338092 0) (-0.864558 0.018879 0)
			(-0.771468 0.018879 0) (-0.771468 -0.0338092 0)))
		 (Renumber (Text -0.79474 -0.0338092 0 "Y") 1 "L")
		 (Segment "raw" (
			(Visibility "off")
			(Renumber (Text 0 0 0 "Y") 1 "L")))))))))))))))
	 (Segment "data" (
	 (Window_Pattern "clear")
	 (Window -0.63 0.48 -0.58 0.58)
	 (User_Options "isdata=1,viewinfigurecoord=1")
	 (Front ((Segment "symbol1" (
		(Segment "points" (
		 (Color_By_Index "Marker" 1)
		 (Marker_Size 0.421875)
		 (Marker_Symbol "@")
		 (User_Options "canbrush=1,brushsetup=0,grouping=0")
		 (Segment "" (
		 (Marker_Size 0.210937)
		 (Marker_Symbol "@")
		 (User_Value 1)
		 (Marker -0.636629 -0.444422 0)))
		 (Segment "" (
		 (Marker_Size 0.210937)
		 (Marker_Symbol "@")
		 (User_Value 2)
		 (Marker -0.309314 -0.222211 0)))
		 (Segment "" (
		 (Marker_Size 0.210937)
		 (Marker_Symbol "@")
		 (User_Value 3)
		 (Marker -0.963945 -0.666633 0)))
		 (Segment "" (
		 (Marker_Size 0.210937)
		 (Marker_Symbol "@")
		 (User_Value 4)
		 (Marker 0.508976 0.444422 0)))
		 (Segment "" (
		 (Marker_Size 0.210937)
		 (Marker_Symbol "@")
		 (User_Value 5)
		 (Marker -0.636629 -0.333317 0)))
		 (Segment "" (
		 (Marker_Size 0.210937)
		 (Marker_Symbol "@")
		 (User_Value 6)
		 (Marker 0.18166 0.222211 0)))
		 (Segment "" (
		 (Marker_Size 0.210937)
		 (Marker_Symbol "@")
		 (User_Value 7)
		 (Marker -0.636629 -0.555528 0)))
		 (Segment "" (
		 (Marker_Size 0.210937)
		 (Marker_Symbol "@")
		 (User_Value 8)
		 (Marker 0.0180024 0.111106 0)))
		 (Segment "" (
		 (Marker_Size 0.210937)
		 (Marker_Symbol "@")
		 (User_Value 9)
		 (Marker 0.836292 0.555528 0)))
		 (Segment "" (
		 (Marker_Size 0.210937)
		 (Marker_Symbol "@")
		 (User_Value 10)
		 (Marker -0.636629 -0.222211 0)))
		 (Segment "" (
		 (Marker_Size 0.210937)
		 (Marker_Symbol "@")
		 (User_Value 11)
		 (Marker -0.472971 -0.333317 0)))
		 (Segment "" (
		 (Marker_Size 0.210937)
		 (Marker_Symbol "@")
		 (User_Value 12)
		 (Marker -0.145656 -0.111106 0)))
		 (Segment "" (
		 (Marker_Size 0.210937)
		 (Marker_Symbol "@")
		 (User_Value 13)
		 (Marker 0.345318 0.444422 0)))
		 (Segment "" (
		 (Marker_Size 0.210937)
		 (Marker_Symbol "@")
		 (User_Value 14)
		 (Marker -0.636629 -0.444422 0)))
		 (Segment "" (
		 (Marker_Size 0.210937)
		 (Marker_Symbol "@")
		 (User_Value 15)
		 (Marker -0.309314 -0.333317 0)))))))))))))))
 (Segment "labels" (
	(Window_Pattern "clear")
	(Window -1 1 -1 1)))
 (Segment "annotation" (
	(Window_Pattern "clear")
	(Window -1 1 -1 1)
	(Front ((Segment "line1" (
	 (Color_By_Index "Face Contrast,Line,Edge" 1)
	 (Edge_Pattern "---")
	 (Edge_Weight 2)
	 (Line_Pattern "---")
	 (Line_Weight 2)
	 (Segment "" (
	 (Front ((Polyline ((-0.609986 -0.384277 0) (-0.570021 -0.353617 0
		 ) (-0.530055 -0.322957 0) (-0.49009 -0.292297 0) (-0.450125 
		 -0.261638 0) (-0.41016 -0.230978 0) (-0.370194 -0.200318 0) 
		 (-0.330229 -0.169658 0) (-0.290264 -0.138998 0) (-0.250298 
		 -0.108339 0) (-0.210333 -0.0776788 0) (-0.170368 -0.047019 0
		 ) (-0.130403 -0.0163592 0) (-0.0904374 0.0143006 0) 
		 (-0.0504721 0.0449604 0) (-0.0105068 0.0756202 0) (0.0294584
		 0.10628 0) (0.0694237 0.13694 0) (0.109389 0.1676 0) 
		 (0.149354 0.198259 0) (0.18932 0.228919 0) (0.229285 
		 0.259579 0) (0.26925 0.290239 0) (0.309215 0.320899 0) 
		 (0.349181 0.351558 0) (0.389146 0.382218 0)))))))))
	 (Segment "line2" (
	 (Color_By_Index "Face Contrast,Line,Edge" 2)
	 (Edge_Pattern "...")
	 (Edge_Weight 2)
	 (Line_Pattern "...")
	 (Line_Weight 2)
	 (Segment "" (
	 (Front ((Polyline ((-0.609986 -0.326218 0) (-0.570021 -0.29941 0)
		 (-0.530055 -0.272451 0) (-0.49009 -0.245307 0) (-0.450125 
		 -0.217933 0) (-0.41016 -0.190273 0) (-0.370194 -0.162259 0) 
		 (-0.330229 -0.133813 0) (-0.290264 -0.10485 0) (-0.250298 
		 -0.0752913 0) (-0.210333 -0.0450761 0) (-0.170368 -0.0141778
		 0) (-0.130403 0.0173893 0) (-0.0904374 0.0495734 0) 
		 (-0.0504721 0.0822992 0) (-0.0105068 0.115482 0) (0.0294584 
		 0.149042 0) (0.0694237 0.182908 0) (0.109389 0.217019 0) 
		 (0.149354 0.251328 0) (0.18932 0.285797 0) (0.229285 
		 0.320396 0) (0.26925 0.355101 0) (0.309215 0.389894 0) 
		 (0.349181 0.424759 0) (0.389146 0.459685 0)))))))))
	 (Segment "line3" (
	 (Color_By_Index "Face Contrast,Line,Edge" 2)
	 (Edge_Pattern "...")
	 (Edge_Weight 2)
	 (Line_Pattern "...")
	 (Line_Weight 2)
	 (Segment "" (
	 (Front ((Polyline ((-0.609986 -0.442336 0) (-0.570021 -0.407824 0
		 ) (-0.530055 -0.373463 0) (-0.49009 -0.339287 0) (-0.450125 
		 -0.305342 0) (-0.41016 -0.271683 0) (-0.370194 -0.238377 0) 
		 (-0.330229 -0.205504 0) (-0.290264 -0.173147 0) (-0.250298 
		 -0.141386 0) (-0.210333 -0.110281 0) (-0.170368 -0.0798602 0
		 ) (-0.130403 -0.0501077 0) (-0.0904374 -0.0209722 0) 
		 (-0.0504721 7.62158e-3 0) (-0.0105068 0.0357579 0) 
		 (0.0294584 0.0635177 0) (0.0694237 0.090972 0) (0.109389 
		 0.11818 0) (0.149354 0.145191 0) (0.18932 0.172041 0) 
		 (0.229285 0.198762 0) (0.26925 0.225376 0) (0.309215 
		 0.251903 0) (0.349181 0.278358 0) (0.389146 0.304751 0))))))
	 )))
	 (Segment "line4" (
	 (Color_By_Index "Face Contrast,Line,Edge" 4)(Edge_Pattern "-.-")
	 (Edge_Weight 2)
	 (Line_Pattern "-.-")
	 (Line_Weight 2)
	 (Segment "" (
	 (Front ((Polyline ((-0.609986 -0.245327 0) (-0.570021 -0.216232 0
		 ) (-0.530055 -0.18699 0) (-0.49009 -0.157596 0) (-0.450125 
		 -0.128047 0) (-0.41016 -0.0983385 0) (-0.370194 -0.0684666 0
		 ) (-0.330229 -0.0384287 0) (-0.290264 -8.22224e-3 0) 
		 (-0.250298 0.0221544 0) (-0.210333 0.0527023 0) (-0.170368 
		 0.0834219 0) (-0.130403 0.114313 0) (-0.0904374 0.145375 0) 
		 (-0.0504721 0.176606 0) (-0.0105068 0.208003 0) (0.0294584 
		 0.239565 0) (0.0694237 0.271288 0) (0.109389 0.303167 0) 
		 (0.149354 0.335199 0) (0.18932 0.36738 0) (0.229285 0.399704
		 0) (0.26925 0.432166 0) (0.309215 0.464762 0) (0.349181 
		 0.497485 0) (0.389146 0.530331 0)))))))))
	 (Segment "line5" (
	 (Color_By_Index "Face Contrast,Line,Edge" 4)
	 (Edge_Pattern "-.-")
	 (Edge_Weight 2)
	 (Line_Pattern "-.-")
	 (Line_Weight 2)
	 (Segment "" (
	 (Front ((Polyline ((-0.609986 -0.523227 0) (-0.570021 -0.491002 0
		 ) (-0.530055 -0.458925 0) (-0.49009 -0.426998 0) (-0.450125 
		 -0.395228 0) (-0.41016 -0.363617 0) (-0.370194 -0.332169 0) 
		 (-0.330229 -0.300888 0) (-0.290264 -0.269775 0) (-0.250298 
		 -0.238832 0) (-0.210333 -0.20806 0) (-0.170368 -0.17746 0) (
		 -0.130403 -0.147032 0) (-0.0904374 -0.116774 0) (-0.0504721 
		 -0.0866849 0) (-0.0105068 -0.056763 0) (0.0294584 -0.0270051
		 0) (0.0694237 2.592e-3 0) (0.109389 0.0320321 0) (0.149354 
		 0.0613194 0) (0.18932 0.0904584 0) (0.229285 0.119454 0) 
		 (0.26925 0.148311 0) (0.309215 0.177035 0) (0.349181 
		 0.205631 0) (0.389146 0.234105 0)))))))))))))))))
 (Segment "figure2" (
 (Window_Pattern "clear")
 (Window -1 1 -1 1)
 (User_Options "viewinfigurecoord=0")
 (Front ((Segment "region" (
	(Front ((Segment "figure box" (
	 (Visibility "polygons=off,lines=off")
	 (Color_By_Index "Face Contrast,Line,Edge" 1)
	 (Color_By_Index "Face" 0)
	 (Edge_Pattern "---")
	 (Edge_Weight 1)
	 (Face_Pattern "solid")
	 (Line_Pattern "---")
	 (Line_Weight 1)
	 (User_Options "solidfill=1")
	 (Segment "" (
	 (Polygon ((-0.99995 -0.99995 0) (0.99995 -0.99995 0) (0.99995 
		 0.99995 0) (-0.99995 0.99995 0)))))))
	 (Segment "data box" (
	 (Visibility "polygons=off,lines=off")
	 (Color_By_Index "Polygon,Face Contrast,Line" 1)
	 (Edge_Pattern "---")
	 (Edge_Weight 1)
	 (Face_Pattern "/")
	 (Line_Pattern "---")
	 (Line_Weight 1)
	 (User_Options "ldfill=1,solidfill=1")
	 (Segment "" (
	 (Polygon ((-0.299985 0.559972 0) (0.299985 0.559972 0) (0.299985 
		 0.839958 0) (-0.299985 0.839958 0)))))))
	 (Segment "legend box" ())
	 (Segment "legend" (
	 (Window_Pattern "clear")
	 (Window -1 1 -1 1)
	 (User_Options "viewinfigurecoord=1")
	 (Front ((Segment "symbol1" ())))))))))
 (Segment "object" (
	(Front ((Segment "frame" (
	 (Window_Pattern "clear")
	 (Window -1 1 -1 1)
	 (Front ((Segment "tick" ())
	 (Segment "grid" ())
	 (Segment "reference" ())
	 (Segment "axis" ())))))
	 (Segment "data" (
	 (Window_Pattern "clear")
	 (Window -0.28 0.28 0.58 0.82)
	 (User_Options "isdata=1,viewinfigurecoord=1")
	 (Front ((Segment "symbol1" (
		(Segment "points" (
		 (Color_By_Index "Marker" 1)
		 (Marker_Size 0.421875)
		 (Marker_Symbol "@")
		 (Segment "" ())
		 (Segment "" ())))))))))))))
 (Segment "labels" (
	(Window_Pattern "clear")
	(Window -1 1 -1 1)
	(Front ((Segment "symbol1" (
	 (Text_Alignment "v*")
	 (Text_Font "size=0.02558 sru")
	 (User_Options "isdata=0")
	 (Segment "" (
	 (Text 0 0.780961 0 "Y = 4.38625 + 1.08132 X1")))
	 (Segment "" (
	 (Text 0 0.668967 0 "S = 0.906780 R-Sq = 93.8 % R-Sq(adj
) = 93.3 %")))))))))
 (Segment "annotation" (
	(Window_Pattern "clear")
	(Window -1 1 -1 1)))))))
 (Segment "figure3" (
 (Window_Pattern "clear")
 (Window -1 1 -1 1)
 (User_Options "viewinfigurecoord=0")
 (Front ((Segment "region" (
	(Front ((Segment "figure box" (
	 (Visibility "polygons=off,lines=off")
	 (Color_By_Index "Face Contrast,Line,Edge" 1)
	 (Color_By_Index "Face" 0)
	 (Edge_Pattern "---")
	 (Edge_Weight 1)
	 (Face_Pattern "solid")
	 (Line_Pattern "---")
	 (Line_Weight 1)
	 (User_Options "solidfill=1")
	 (Segment "" (
	 (Polygon ((-0.99995 -0.99995 0) (0.99995 -0.99995 0) (0.99995 
		 0.99995 0) (-0.99995 0.99995 0)))))))
	 (Segment "data box" (
	 (Visibility "polygons=off,lines=off")
	 (Color_By_Index "Polygon,Face Contrast,Line" 1)
	 (Edge_Pattern "---")
	 (Edge_Weight 1)
	 (Face_Pattern "/")
	 (Line_Pattern "---")
	 (Line_Weight 1)
	 (User_Options "ldfill=1,solidfill=1")
	 (Segment "" (
	 (Polygon ((0.499975 -0.79996 0) (0.99995 -0.79996 0) (0.99995 0 0
		 ) (0.499975 0 0)))))))
	 (Segment "legend box" ())
	 (Segment "legend" (
	 (Window_Pattern "clear")
	 (Window -1 1 -1 1)
	 (User_Options "viewinfigurecoord=1")
	 (Front ((Segment "symbol1" ())))))))))
 (Segment "object" (
	(Front ((Segment "frame" (
	 (Window_Pattern "clear")
	 (Window -1 1 -1 1)
	 (Front ((Segment "tick" ())
	 (Segment "grid" ())
	 (Segment "reference" ())
	 (Segment "axis" ())))))
	 (Segment "data" (
	 (Window_Pattern "clear")
	 (Window 0.52 0.98 -0.78 -0.02)
	 (User_Options "isdata=1,viewinfigurecoord=1")
	 (Front ((Segment "symbol1" (
		(Segment "points" (
		 (Color_By_Index "Marker" 1)
		 (Marker_Size 0.421875)
		 (Marker_Symbol "@")
		 (Segment "" ())
		 (Segment "" ())
		 (Segment "" ())))))))))))))
 (Segment "labels" (
	(Window_Pattern "clear")
	(Window -1 1 -1 1)
	(Front ((Segment "symbol1" (
	 (Text_Alignment "v*")
	 (Text_Font "size=0.02558 sru")
	 (User_Options "isdata=0")
	 (Segment "" (
	 (Text 0.813209 -0.374981 0 "Regression")))
	 (Segment "" (
	 (Text 0.80746 -0.469977 0 "95% CI")))
	 (Segment "" (
	 (Text 0.80746 -0.564972 0 "95% PI")))))))))
 (Segment "annotation" (
	(Window_Pattern "clear")
	(Window -1 1 -1 1)))))))
 (Segment "figure4" (
 (Window_Pattern "clear")
 (Window -1 1 -1 1)
 (User_Options "viewinfigurecoord=0")
 (Front ((Segment "region" (
	(Front ((Segment "figure box" (
	 (Visibility "polygons=off,lines=off")
	 (Color_By_Index "Face Contrast,Line,Edge" 1)
	 (Color_By_Index "Face" 0)
	 (Edge_Pattern "---")
	 (Edge_Weight 1)
	 (Face_Pattern "solid")
	 (Line_Pattern "---")
	 (Line_Weight 1)
	 (User_Options "solidfill=1")
	 (Segment "" (
	 (Polygon ((-0.99995 -0.99995 0) (0.99995 -0.99995 0) (0.99995 
		 0.99995 0) (-0.99995 0.99995 0)))))))
	 (Segment "data box" (
	 (Visibility "polygons=off,lines=off")
	 (Color_By_Index "Polygon,Face Contrast,Line" 1)
	 (Edge_Pattern "---")
	 (Edge_Weight 1)
	 (Face_Pattern "/")
	 (Line_Pattern "---")
	 (Line_Weight 1)
	 (User_Options "ldfill=1,solidfill=1")
	 (Segment "" (
	 (Polygon ((0.499975 -0.79996 0) (0.99995 -0.79996 0) (0.99995 0 0
		 ) (0.499975 0 0)))))))
	 (Segment "legend box" ())
	 (Segment "legend" (
	 (Window_Pattern "clear")
	 (Window -1 1 -1 1)
	 (User_Options "viewinfigurecoord=1")))))))
 (Segment "object" (
	(Front ((Segment "frame" (
	 (Window_Pattern "clear")
	 (Window -1 1 -1 1)
	 (Front ((Segment "tick" ())
	 (Segment "grid" ())
	 (Segment "reference" ())
	 (Segment "axis" ())))))
	 (Segment "data" (
	 (Window_Pattern "clear")
	 (Window 0.52 0.98 -0.78 -0.02)
	 (User_Options "isdata=1,viewinfigurecoord=1")
	 (Front ((Segment "symbol1" (
		(Segment "points" (
		 (Color_By_Index "Marker" 1)
		 (Marker_Size 0.421875)
		 (Marker_Symbol "@")
		 (Segment "" ())
		 (Segment "" ())
		 (Segment "" ())
		 (Segment "" ())
		 (Segment "" ())
		 (Segment "" ())))))
	 (Segment "connect1" (
		(Color_By_Index "Face Contrast,Line,Edge" 1)
		(Edge_Pattern"---")
		(Edge_Weight 1)
		(Line_Pattern "---")
		(Line_Weight 1)
		(Front ((Segment "group1" (
		 (Color_By_Index "Face Contrast,Line,Edge" 1)
		 (Edge_Pattern "---")
		 (Edge_Weight 2)
		 (Line_Pattern "---")
		 (Line_Weight 2)
		 (Segment "" (
		 (Front ((Polyline ((-0.79996 0.124994 0) (-0.299985 
			 0.124994 0)))))))))
		 (Segment "group2" (
		 (Color_By_Index "Face Contrast,Line,Edge" 2)
		 (Edge_Pattern "...")
		 (Edge_Weight 2)
		 (Line_Pattern "...")
		 (Line_Weight 2)
		 (Segment "" (
		 (Front ((Polyline ((-0.79996 -0.124994 0) (-0.299985 
			 -0.124994 0)))))))))
		 (Segment "group3" (
		 (Color_By_Index "Face Contrast,Line,Edge" 4)
		 (Edge_Pattern "-.-")
		 (Edge_Weight 2)
		 (Line_Pattern "-.-")
		 (Line_Weight 2)
		 (Segment "" (
		 (Front ((Polyline ((-0.79996 -0.374981 0) (-0.299985 
			 -0.374981 0)))))))))))))))))))))
 (Segment "labels" (
	(Window_Pattern "clear")
	(Window -1 1 -1 1)))
 (Segment "annotation" (
	(Window_Pattern "clear")
	(Window -1 1 -1 1)))))))
 (Segment "annotation" (
 (Window_Pattern "clear")
 (Window -1 1 -1 1)
 (User_Options "toplayer=1")
 (Front ((Segment "text1" (
	(Color_By_Index "Text" 1)
	(Text_Alignment "^*")
	(Text_Font "name=arial-gdi-vector,size=0.05116 sru")
	(Segment "" (
	 (Text 0 0.979951 0 "EJEMPLO DE REGRESI\323N")))))))))))
 1 -1 1)))))))
 (Segment "annotation" (
 (Window_Pattern "clear")
 (Window -1 1 -1 1)
 (User_Options "toplayer=1")
 (Front ((Segment "text1" (
	(Color_By_Index "Text" 1)
	(Text_Alignment "^*")
	(Text_Font "name=arial-gdi-vector,size=0.05116 sru")
	(Segment "" (
	 (Text 0 0.979951 0 "EJEMPLO DE REGRESI\323N")))))))))))
��
101520
10
12
14
16
18
20
22
24
26
28
X1
Y
Y = 4.38625 + 1.08132 X1
S = 0.906780 R-Sq = 93.8 % R-Sq(adj) = 93.3 %
Regression
95% CI
95% PI
EJEMPLO DE REGRESIÓN
estimada
regresión
de
Modelo
X
b
b
Y
muestra
la
de
datos
en
base
Con
e
X
b
b
Y
población
la
en
base
Con
X
Y
.
.
.
......
..........
.
.
.
.
.
.
.
..........
.
.
.
.
.........
1
0
´*
1
0
1
0
+
=
+
+
=
+
+
=
e
b
b
estimadaregresióndeModeloXbbY
muestraladedatosenbaseConeXbbY
poblaciónlaenbaseConXY
...................
.................
.............
10
´*
10
10
*
)
(
Re
Yi
Yi
siduo
Error
-
=
=
*
)(Re YiYisiduoError
å
=
-
imo
i
Y
Yi
min
)
(
2
*
imoiYYi min)(
2
*