0% found this document useful (0 votes)
43 views7 pages

Assignement 2 Geo

This document describes an assignment on linear regression. It contains 3 sections: 1. An introduction to linear regression, which models the relationship between two variables by fitting a linear equation to observed data. 2. The main body shows calculations to estimate model parameters from sample data, including defining relevant summary quantities and the equation of least squares. 3. A conclusion stating the homework consolidated knowledge of finding values, building regression lines, and using Excel commands to calculate data.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views7 pages

Assignement 2 Geo

This document describes an assignment on linear regression. It contains 3 sections: 1. An introduction to linear regression, which models the relationship between two variables by fitting a linear equation to observed data. 2. The main body shows calculations to estimate model parameters from sample data, including defining relevant summary quantities and the equation of least squares. 3. A conclusion stating the homework consolidated knowledge of finding values, building regression lines, and using Excel commands to calculate data.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Reservoir modelling (Geostatistics)

Assignement 2
Linear Regression. Estimating Model parameters

Done by: Musataev Dias


Checked by: Abdukarimov Aibek Kenzhebekovich

Almaty 2022
Description

1. Introduction

2. Main body (Calculations)

3. Conclusion
1. Introduction

Linear regression is an attempt to model the relationship between two variables by fitting a
linear equation to observed data, where one variable is considered to be an explanatory
variable and the other as a dependent variable.

Linear Regression is the process of finding a line that best fits the data points available on
the plot, so that we can use it to predict output values for inputs that are not present in the
data set we have.
2. Main body (Calculations and result)

1)

Define the relevant summary quantities (Σxi , Σyi, Σx2i, Σxiyi, Σy2i, Sxx, Sxy) and define
the equation of least squares.

Solution:

∑ x i = 250+251,8 +….+ 249,14+244,1 = 4913,11


∑ y i = 111+124,4 +….+ 127,16+109,89= 2387,66
∑ x 2i =2502 +251,82 +..+249,14 2+244,12=1208994,645
∑ y 2i =1112 +124,4 2+..+127,162 +109,892 =285607,1926
∑ x i y i=250∗111+..+244,1∗109,89=586512,1613
∑ x i∗∑ yi 4913,11∗2387,66
S xy =∑ x i y i − =586512,1613− =−29,64983
n 20
2
2 (∑ xi ) 2
4913,11
S xx =∑ x −
i =1208994,645− =2062,151495
n 20
S xy
β 1= =−0,014378105
S xx
∑ y i−β 1 ∑ x i
β 0= =122,915060 5
n
The least square equation (linear regression equation):
y=β 0 + β 1 x =122, 9150605−0 , 014378105∗x

I wasn't able to overlay the graphs, but here we can trace the location of the points
and our regression line
2) Find Regression line equations from ∑x = 420, ∑y = 750, ∑ x 2= 3699, ∑ y 2= 12450, ∑xy
= 5500, n = 15.

Regression Line for y on x:


∑ x i∗∑ yi 420∗750
S xy =∑ x i y i − =5500− =−1550 0
n 15
2
2 (∑ xi ) ( 420 )2
S xx =∑ x −
i =3699− =−806 1
n 15
S xy −15500
β 1= = =192 3
S xx −8061
∑ y i−β 1 ∑ x i
β 0= =−3,838
n
β 0= y −β1 x ,=¿
y=β 1 x+ β 0 =1,923∗x−3,838

Regression Line for x on y:


β 0= y −β1 x ,=¿
y−β 0 y+ 3,838
x= =
β1 1,923

3)
Using the same formulas as in 1st task we get:
∑ x i = 2181,4
∑ y i = 814,6
∑ x 2i =334570,5
∑ y 2i =44329,94
∑ x i y i=117911,4
S xy =−553,143
S xx =17336,75
β 1=−0,03191
β 0=58,94662

The least square equation (linear regression equation):


y=β 0 + β 1 x =58,94662−0,03191∗x
3. Conclusion:

When doing my homework, I consolidated my knowledge in finding the necessary


values, building a progression line, and also got acquainted with some commands
in the Excel program for calculating data

You might also like