0% found this document useful (0 votes)
237 views3 pages

MNK Excel

The document describes the method of least squares using MS Excel. It involves: 1) Entering data into a table 2) Creating an XY scatter plot graph of the data and customizing its appearance 3) Adding a trendline to the graph using the Chart -> Add Trendline option 4) Selecting a linear regression trendline type 5) Using the INTERCEPT and SLOPE functions to determine the equation of the best fit line in the form y = a + bx and obtain the values of a and b.

Uploaded by

K
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
237 views3 pages

MNK Excel

The document describes the method of least squares using MS Excel. It involves: 1) Entering data into a table 2) Creating an XY scatter plot graph of the data and customizing its appearance 3) Adding a trendline to the graph using the Chart -> Add Trendline option 4) Selecting a linear regression trendline type 5) Using the INTERCEPT and SLOPE functions to determine the equation of the best fit line in the form y = a + bx and obtain the values of a and b.

Uploaded by

K
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Metoda najmanjih kvadrata

Metoda najmanjih kvadrata uz pomo MS Excel


1. Unesite u eljene podatke u obliku tablice

Slika 1. Tablica sa podacima

2. Nacrtajte graf za zadane podatke, odaberite vrstu grafa XY Scatter, po elji uredite izgled grafa

Slika 2. Odabir grafikog prikaza podataka

3. Najbolji pravac (Trendline) ukljuite u graf odabirom opcije u izborniku ChartAdd Trendline

Slika 3. Dodavanje linije aproksimacije (Trendline)

Metoda najmanjih kvadrata

4. Kada aktivirate liniju trenda, preostaje vam samo da odaberete vrstu linije, dakle za sluaj pravca odaberite linernu regresiju

Slika 4. Odabir linearne aproksimacije (Linear Trendline)

Nakon potvrivanja odabira dobit ete sljedei rezultat

Slika 5. Konani izgled grafa

Metoda najmanjih kvadrata

5. Obzirom da vas zanima pravac zapisan u obliku y a b x , za dobivanje samo vrijednosti a i b koriste se Excel funkcije INTERCEPT i SLOPE Za odreivanje odsjeka na osi y ( a ) koristi se funkcija:
INTERCEPT(known_y's,known_x's) Known_y's je zavisni set podataka y. Known_x's je nezavisni set podataka x.

Za koeficijent smjera b koristi se funkcija:


SLOPE(known_y's,known_x's) Known_y's je zavisni set podataka y Known_x's je nezavisni set podataka x.

You might also like