Você está na página 1de 13

Gil

GilFrancisco
FranciscoNimathi
Nimathi

Jorge
JorgeRodrigues
RodriguesPilal
Pilal

Milagre
MilagreJacinto
JacintoCossa
Cossa

Resolução de ficha de exercícios nº 1 – Regressão Linear Simples

Econometria Básica

Resolução de ficha de exercíciosTrabalho


nº 1 – Regressão Linear
de carácter Simples
avaliativo em grupo referente a
cadeira
(Licenciatura em Ensino de Matemática dehabilitações
com Introdução em
à Econometria
Estatística) Básica, a ser
apresentado no Departamento de Ciências Naturais e
Matemática, Orientado pelo Docente:

Mestre: Alberto Tépulo

Universidade Rovuma

Nampula
Universidade
2022 Rovuma
Nampula
2022

1. y=β 0 + β 1 x i + ε, donde y é a quantidade de tomate em cada região e x o preco médio


para cada região. Se dispõe de 12 observacoes como apresentado na seguinte tabela:

x y x2 y2
x∙ y
( x−x )2 ^y
y− ^y
( y− ^y )2 To
mate
100 55 10000 3035 5500 900 52,4 2,6 6,76
90 70 8100 4900 6300 400 68,2 1,8 3,24
80 90 6400 8100 7200 100 84 6 36
70 100 4900 10000 7000 0 99,8 0,2 0,04
70 90 4900 8100 6300 0 99,8 -9,8 96,04
70 105 4900 11025 7350 0 99,8 5,2 27,04
70 80 4900 6400 5600 0 99,8 -19,8 392,04
65 110 4225 12100 7150 25 107, 2,3 5,29
7
60 125 3600 15625 7500 100 115,6 9,4 89,36
60 115 3600 13225 6900 100 115,6 -0,6 0,36
55 130 3025 16900 7150 225 123, 6,5 42,25
5
50 130 2500 16900 6500 400 131, -1,4 1,96
4
∑ 840 1200 61050 126300 80450 2250 700,38

n=12
n=12 n=12
∑ x i=840 n=12

∑ y i=1200 ∑ 2
x i =61050 ∑ 2
y i =126300
i =1
i =1 i =1 i =1

n=12

n=12 n=12 ∑ x 2=61050 n=12

∑ x i ∙ y i=80450 ∑ 2 i =1
( x i−x ) =2250 ∑ xi 840
i =1 i =1 i=1
x= = =70
n 12
n=12

∑ yi
1200
i =1
y= = =10 0
n 12
^β 1= 80450−12 ∙70 ∙ 100
n=12

∑ x ∙ y −n x y ⟺ ⟺ ^β 1=−1,5 8
61050−12 ∙ 702
^β 1= i=1
n=12

^β 0= y i=1
∑^ x 2−n x 2 ^β 0=100+1,58 ∙ 70 ^β 0=210,4
−β1 x ⟺ ⟺
^y =210 , 4−1,58 x i

b)
^y =210 , 4−1,58 x i

x i=7 5

^y =210 , 4−1,58∙ 75=91,9

R: Se o preço médio para cada região for 75 unidades, a quantidade demandada de tomate
de cada região também aumenta em 91,9 .
c) Estimar a variância dos resíduos
12

∑ ( y−^y )2 700,38 700,38


σ 2= i=1 = = =70,038
n−2 12−2 10

d) H 0 : ^β 1=0,6 ao nível de significância de 5%

2. De uma amostra se 10 observações se obtém os seguintes resultados

a)

n=10 n=10 n=10

∑ y i=111 0 ∑ x i=1700 ∑ x i ∙ y i=20550 0


i=1 i=1 i=1

n=10 n=10

∑ ∑ x i2=322000
2 n=10
y i =132100
i=1 i=1
∑ xi 1700
i=1
x= = =170
n 10
n=10

∑ yi
1110
i=1
y= = =111
n 10
n=10

∑ x ∙ y−n x y 20550 0−10 ∙ 170 ∙111 16800


^β 1= i=1 = = =0,51
n=12
322000−10 ∙28900 33000
0 ∑^β 1xx ⟺
^β = y − 2
−n xβ^ 0=111−0,51∙ 170 ⟺ ^β 0=24,3
2

i=1

^y =24,3−0,51 xi

b) ^β 1=0,51 Var ( ε )=9,210

( α
)
√[
t 1− ; n−2 =t ( 5 % , 8 ) =1,8595
S ^β =1
v ar ( ε )=9,210
n=10

∑ xi
2 √ 9,210
322000
= √2,86=1,69
2

i=1

( ) (
I . C ^β : ^β1 −t 1− α ;n−2 S ^β ; ^β 1+ t 1− α ;n−2 S ^β
1
2 21 ) 1 ]
I . C ^β : [ 0,51−1,8595 ∙ 1,69; 0,51+1,8595 ∙ 1,69 ]
1

I . C ^β : [ −2,64 ; 3,65 ]
1
3. A tabela abaixo refere-se aos dados da renda pessoal disponível e o gasto de consumo
entre 1970 à 1979 em biliões de dólares:

x y x2 y2
x∙ y
2
(x−x )
651,6 672,1 424582,56 451718,41 437940,36 40548,53
779,2 696,8 607152,64 485530,24 542946,56 5441,521
810,3 737,1 656586,09 543316,41 597272,13 1820,44
864,7 767,9 747706,09 589670,41 664003,13 137,67
857,5 762,8 735306,25 581863,84 654101 20,55
874,9 779,4 765450,01 607464,36 681897,06 481,07
906,8 823,1 822286,24 677493,61 746387,08 2898,03
942,9 864,3 889060,41 747014,49 814948,47 8088,00
988,8 903,2 977725,44 815770,24 893084,16 18450,69
∑ 53788333,8
7676,7 7006,7 6625855,73 49093844,89 9 46563336,6

n=9 n=9 n=9

∑ x i=7676,7 ∑ yi =7006,7 ∑ x i2=6625855,73


i=1 i=1 i=1

n=9
n=9 ∑ x i ∙ y i =53788333,89
∑ 2
yi =¿49093844,89 i=1
i=1
n=9

∑ xi
n=9

∑ yi 7006,7 i=1 7676,7


y= i=1 = =778,52 x= = =852,97
n 9 n 9

a)
n=9

∑ x ∙ y−n x y 2 53788333,89−9 ∙ 852,97 ∙778,52 253788333,89−5976487,8396 47811846,05


^β = i=1 = = =
1 n=9
6625855,73−9 ∙852,97
2
6625855,73−6548020,3881 77836,3419
∑ x 2−n x 2
i=1

^β = y − ^β x ⟺ β^ =778,52−614,26 ∙852,97 ⟺ ^β =−523166,83


0 1 0 0

b) Estimar a variância dos resíduos (σ 2)


n =9 n=9

∑ y i − ^β 1 ∑ x i ∙ y i
2

49093844,89−614,26 ∙ 53788333,89 49093844,89−33040021975 , 2 329909


2 i=1 i=1
σ = = = =
n−2 9−2 7
4. Usando os seguintes dados sobre o consumo nacional (C t ) e a renda nacional ( Rt ) da
Espanha entre os períodos 1995-2005 a preços correntes (em 109 euros ) como vem na tabela
seguinte:

xy
2 2
x y
x∙ y
^y
2
( y i− y )
( ^y − y )2
Ano
1995 388 249 150544 62001 96612 318,6 55140, 4324 27297,6484
1996 408 368 166464 135424 150144 339,2 13414,2724 20914,99444
1997 433 388 187489 150544 168004 364,95 9181,4724 14130,0769
1998 465 414 216225 171396 192510 397,91 4874,8324 7380,5288
1999 498 444 248004 197136 221112 431,9 1585,6324 2695,6864
2000 538 484 289444 234256 260392 473,1 0,0324 114,9184
2001 574 518 329476 268324 297332 510,18 1168,2724 694,8496
2002 614 550 376996 320500 337700 551,38 4379,7924 4564,3536
2003 656 586 430336 343396 384416 594,64 10440,7524 12281,0724
2004 699 635 488601 403225 443865 638,93 22855,3924 24059,1121
2005 748 686 559504 470596 513128 689,4 40876,7524 42263,1364
∑ 6021 5322 3443083 2738798 306521 163917,6364 156396,3274
5

n=11
n=11
∑ y i=532 2
n=11

∑ x i ∙ y i=3065215=20550 0
∑ x i=6021 i =1
i =1
/ i =1

n=11


n=11
y i2=2738798
∑ 2
x =3443083
i i =1
n=11

∑ xi
i =1
i=1 6021
x= = =547,36
n 11
n=11

∑ yi
5322
i =1
y= =
=483,82
n ^ 11
a) β 0=∝= y− ^β 1 x ⟺∝=4

n=11

∑ x ∙ y −n x y 3065215−11 ∙547,36 ∙ 483,82


^β 1= i=1
= =1,032 ⟺ ^β1=1,03
n=11
3443083−11∙ 299606,9504
∑ xy−−n^β 1xx ⟺∝=483,82−1,03 ∙ 547,36=−81,14
^β =∝=
0
2 2

i=1

^y = β^ 0 − ^β1 x i ⟺ ^y =−81,14+1,03 x i
b) Qual será o custo da produção se a quantidade de produção for de 12 unidade.

x i=12

^y = β^ 0 − ^β1 x i ⟺ ^y =−81,14+1,03 x i

^y =−81,14+1,03 ∙12

^y =−81,14+12,36=−68,68

R: Se a quantidade da produção for de 12 unidades o custo de produção será de -68,68.


c) Determine o coeficiente de determinação e interprete.

y i= y − y

SQR=∑ ( ^y − y ) =156396,3274
2
2 SQR
R=
SQT
SQT =∑ ( yi − y )2=163917,6364

SQR 156396,3274
R 2= = =0,104
SQT 163917,6364

5. n=1 4

n=14 n=14 n=14 n=14

∑ x i=140 ∑ y i=728 ∑ x i ∙ y i=7505 ∑ y i2=39424


i=1 i=1 i=1 i=1

n=14

∑ x i2=1456 ∑ ( y −^y )2=689,3


i=1

a) Achar o coeficiente de determinação e interprete o resultado.


2 2
R =? R =¿¿

2
2 (7505) 56325025
R= = =0,981
1456 ∙39424 57401344
b) Estimar o modelo que relaciona y e x

^y = β^ 0 − ^β1 x i n=14 n=14

∑ xi
140
∑ yi
728
i=1 i=1
x= = =10 y= = =52
n 14 n 14
n=14

∑ x ∙ y−n x y 7505−14 ∙10 ∙ 52 225


^β 1= i=1
= = ⟺ ^β1=4,02
n=14
1456−14 ∙ 102 56
∑ x 2−n x 2
^β 0= y − ^β 1 x ⟺ β^ 0=52−4,02 ∙10 ⟺ ^β 0=11,8

^y = β^ 0 − ^β1 x i

^y =11,8−4,02 x i

c) Estimar o intervalo que pertence a pentente ( ^β ¿ ¿ 1)¿


d) Estimar a variância dos resíduos

2
Var ( ε )= σ^ =
∑ ( y− ^y )2
n−2

Var ( ε )= σ^ =

( y− ^y )2 689,3
2
= =57,4 4
n−2 4−2
c) Teste de hipótese ao nível de 5% que ^β 1=0

H 0 : ^β 1=0 β^ 1−β 1
T obs =

H 1 : ^β1 ≠ 0

√ √
1

σ2 σ2
Sβ = =
1
∑ ( x i−x )2 ∑ x i2−n x 2

√∑ √ √
2
σ 57,44 57,44
Sβ = = = =√ 1,025=1,013
1 2
xi −n x
2
1456−14 ∙ 10
2
56

S β =1,01 3
1

β^ 1−β 1 4,0 2−0


T obs = = =3,557 ⟺T obs =3,5 6
Sβ 1
1,013
6. 6

6. São dados os seguintes valores, obtidos de uma amostra aleatória de com 10 observacoes.

x
y
x2
2
y
x∙ y
( x−x )2
2,5 3,5 6,25 12,25 8,75 1,69
1 3 1 9 3 0,4
2 4 4 16 8 0,64
0 2 0 4 0 1,44
0,5 1,5 0,25 2,25 0,75 1,49
∑ 6 14 11,5 43,5 20,5 4,66

n=5 n=5 n=5 n=5 n=5


∑ x i=6 ∑ yi =14 ∑ x i2=11,5 ∑ yi2=43,5 ∑ x i ∙ y i=20,5
i=1 i=1 i=1 i=1 i=1

n=5

∑ xi
n=5

i=1 6 ∑ yi 14
x= = =1,2 y=
i=1
= =2,8
a) n 5 n 5
n=5

∑ x ∙ y−n x y 20,5−5∙ 1,2 ∙2,8 20,5−21 −0,5


^β = i=1 = = = ⟺ ^β1 =−0,12
1 n=5
11,5−5 ∙1,2
2
11,5−7,2 4,3
∑ x 2−n x 2
i=1
^β 0= y − ^β 1 x ⟺ β^ 0=2,8−(−0,12)∙ 1,2⟺ ^β 0=2,94

^y = β^ 0 − ^β1 x i ^y =2,94−(−0,12 ) x i ⟺ ^y =2,94+0,12 x i

b) Determine o coeficiente de correlação e interprete.


n=5 n=5 n=5
n ∑ x i ∙ y i−∑ x i ∙ ∑ y i
i=1 i=1 i=1
R=

√√ ∑ ( )√ ( )
n=5 n=5 2 n=5 n=5 2
xi − ∑ x i ∙ n ∑ y i − ∑ y
n∙ 2 2

5 ∙ 20,5−6
i=1 ∙ 14
i=1 i=1 18,5
i=1 18,5
R= = = =0,86
5 ∙11,5−( 6 ) ∙ √ 5(43,5)−14 √ 21,5∙ √ 21,5 21,5
2 2

 Coeficiente de determinação:

(∑ )
n=5 2

xi ∙ yi 2
2 i=1 20,5 2 420,25
R = n=5 ⟹R = =
n=5
(11,5 ) ∙ ( 43,5 ) 500,25
∑ x
2
c) Teste de hipótese
i ∙ ∑ Hy0i
2
: β 1 =0 H 1 : β 1 >0
i=1 i=1


H 0 : ^β 1=0 β^ −β σ2
T obs = 1 1 Sβ =
H 1 : ^β1 >0
Sβ 1
1
∑ ( x i−x )2
n=5 n=5

∑ y i2 − ^β1 ∑ x i ∙ y i
43,5+0,12 ∙20,5 45,66
σ = i=1
2 i=1
= = =15,22
n−2 5−2 3
Sβ =
15,22
4,66
1

= √ 3,27=1,8 1

(
t 1−

2 )
, n−2 =t ( 5 % , 5−2 ) =t ( 5 % , 3 ) =2,3534

1 [ (
∝ ∝
)
I . C ^β : β^ 1− 1− , n−2 ∙ S β ; ^β1 + 1− , n−2 ∙ S β
2 2 1 ( ) 1
]
d) Teste de hipótese H 0 : ^β 0=1 contra H 1 : ^β0 ≠ 0

{ H 0 : β^ 0 =1
H 1 : ^β0 ≠ 0 T 0 bs=
β^ 0 − ^β 0

'

0
Sβ = σ
0

√( 2 1
+
x
n ∑ ( x i−x )2 )
√( )√ ( ) √ ( )
2 2
1 x 1 (1,2) 4,66+7,2
Sβ = σ 2 + = 15,22 + = 15,22 = √ 15,22 ∙ 0,51=√ 7,76=2,79
0
n ∑ ( x i−x ) 2
5 4,66 23,3

2,94−1 1,94
T 0 bs= = =0,69
2,79 2,79

(
t 1−

2 )
, n−2 =t ( 1% ,5−2 )=t ( 1 % , 3 )=4,5407

Você também pode gostar