Download presentation

Presentation is loading. Please wait.

Published byFrances Dalton Modified over 3 years ago

1
Advanced Higher STATISTICS Linear Regression To see if there is a relationship between two variables, we draw a scatter-graph. It is then possible to draw a ‘best-fit’ line through the points on the graph. To draw the straight line, we try to have as many points as possible on either side of the line. This is pretty difficult so we calculate a line of regression instead: this is called linear regression.

2
Advanced Higher STATISTICS The formula for drawing the linear regression The equation for a straight line is Y = a + bX ‘a’ is known as the ‘intercept’. o It is given by the formula: a = ӯ - bẊ ‘b’ is the ‘regression coefficient’ It is given by the formula: b = ∑(Ẋ-X)(y-ӯ) ∑(X-Ẋ) 2

3
Advanced Higher STATISTICS First: draw yourself a scatter-graph to show the relationship between two variables SiteDischarge M3/sec Suspended load g/m3 10.4510.8 20.429.7 30.5111.2 40.5511.3 50.6812.5 60.7512.8 70.8913.0 80.7612.7 90.9613.0 101.2617.4 Increasing river discharge Increasing suspended load Scatter graph showing the relationship between discharge and suspended on the River Farg

4
Advanced Higher STATISTICS Second: complete Pearsons Product to get the values you need for ‘b’ b = ∑(Ẋ-X)(y-ӯ) ∑(X-Ẋ) 2 SiteDischarge M3/sec Suspended load g/m3 10.4510.8 20.429.7 30.5111.2 40.5511.3 50.6812.5 60.7512.8 70.8913.0 80.7612.7 90.9613.0 101.2617.4

5
Advanced Higher STATISTICS Second: complete Pearsons Product to get the values you need for ‘b’ b = ∑(Ẋ-X)(y-ӯ) ∑(X-Ẋ) 2 b = 4.65 0.62 b = 7.5

6
Advanced Higher STATISTICS Third: calculate ‘a’ using the formula a = 12.44 – (7.5 x 0.723) a = 7.02 a = ӯ - bẊ

7
Advanced Higher STATISTICS Fourth: figure out some ‘x’ & ‘y’ values To draw the straight line you have to calculate the values of ‘y’ for values of ‘x’ that you choose. For example, if x = 0, then y = a + (b x 0) For example, if x = 20, then y = a + (b x 20) To draw the straight line you have to calculate the values of ‘y’ for values of ‘x’ that you choose. if x = 0, then y = 7.02 + (7.5 x 0) = 7.02 if x = 0.6, then y = 7.02 + (7.5 x 0.6) = 11.52 if x = 1.2, then y = 7.02 + (7.5 x 1.2) = 16.02 b = 7.5 a = 7.02 if x = 0, y = 7.02 if x = 0.6, y = 11.52 if x = 1.2, y = 16.02

8
Advanced Higher STATISTICS Fifth: plot your straight line! if x = 0, y = 7.02 if x = 0.6, y = 11.52 if x = 1.2, y = 16.02

Similar presentations

OK

Warm Up Write the equation of the line passing through each pair of passing points in slope-intercept form. 1. (5, –1), (0, –3) 2. (8, 5), (–8, 7) Use.

Warm Up Write the equation of the line passing through each pair of passing points in slope-intercept form. 1. (5, –1), (0, –3) 2. (8, 5), (–8, 7) Use.

© 2018 SlidePlayer.com Inc.

All rights reserved.

To ensure the functioning of the site, we use **cookies**. We share information about your activities on the site with our partners and Google partners: social networks and companies engaged in advertising and web analytics. For more information, see the Privacy Policy and Google Privacy & Terms.
Your consent to our cookies if you continue to use this website.

Ads by Google

Ppt on object-oriented technologies Ppt on 2nd world war memorial washington Ppt on product marketing Ppt on limits and continuity solutions Ppt on training and development in india 1st grade ppt on main idea Skeletal muscle anatomy and physiology ppt on cells Ppt on work and energy class 9th Ppt on latest gadgets used at home Download ppt on tsunami