Linear Regression
Plot a graph
Press New DocumentPress 4. Add list and spreadsheet
Name the column
A: Quantity x
B: Quantity y
enter all the data into the spreadsheet
add a page by pressing control +doc.
select add graph to have a plot
select menu
specify the graph by pressing option 3:graph type
select option 4:scatter plot
then we use the var button
assign x as x quantity
assign y as y quantity
points are then being plotted
To see all the data point, we select the menu
select option 4: window/zoom
we are doing statistics, so we select option 9: zoom on data
Then all the datapoint will be automatically zoom
Line of best fit: Regression Line
select our previous page for our spreadsheetplace the blanket into column C first row, then press menu and select option 4: statistics
We want option 1: stat calculations
we are interested in option 4: linear regression (mx+b)
X list as quantity x
Y list as quantity y
save equation to f1: that corresponds to the first equation, line of best fit
after that, press ok
all the things have been calculated
m = gradient
b = y-intercept
r = Pearson correlation coefficient
Add another function
To add another function, we select the menu, then graph type and functionwe have function 2 of x, press up once, function 1 of x will appear
press enter our line of best fit will appear
zoom it out by selecting option 4:window zoom and zoom out
We have learnt
- how to plot a graph
- how to find the line of best fit/linear regression
- add another function