Discovering Mathematics Week 9 – Unit 6 Graphs MU123 Dr. Hassan Sharafuddin.

Slides:



Advertisements
Similar presentations
Probabilistic & Statistical Techniques Eng. Tamer Eshtawi First Semester Eng. Tamer Eshtawi First Semester
Advertisements

Chapter 6: Exploring Data: Relationships Lesson Plan
Copyright © 2012 Pearson Education, Inc. 2.3 Another Look at Linear Graphs ■ Graphing Horizontal Lines and Vertical Lines ■ Graphing Using Intercepts ■
REFRESHER Linear Graphs.
Linear Equations in Two Variables
Quadrant II (x 0) Quadrant I (x > 0, y>0) ( -5, 3) x-axis Origin ( 0,0 ) Quadrant IV (x>0, y
Rectangular Coordinate System
Linear functions 1. From the figure, we can find that the values of f(x) are in the interval [−1,∞[ 2.
Objectives Determine whether a function is linear.
§ 2.4 Linear Functions and Slope.
Describing the Relation Between Two Variables
Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 1 of 71 Chapter 1 Linear Equations and.
Chapter 6 (cont.) Regression Estimation. Simple Linear Regression: review of least squares procedure 2.
1 Simple Linear Regression 1. review of least squares procedure 2. inference for least squares lines.
Linear Equations Objectives: Find slope Graph Lines
Chapter one Linear Equations
Linear Regression.
Linear Equations and Functions
Relationship of two variables
1 Preliminaries Precalculus Review I Precalculus Review II
Chapter 13 Statistics © 2008 Pearson Addison-Wesley. All rights reserved.
Chapter 6: Exploring Data: Relationships Lesson Plan Displaying Relationships: Scatterplots Making Predictions: Regression Line Correlation Least-Squares.
Chapter 6 & 7 Linear Regression & Correlation
1. Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Graphing Linear Equations and Inequalities CHAPTER 4.1The Rectangular.
Part One: Introduction to Graphs Mathematics and Economics In economics many relationships are represented graphically. Following examples demonstrate.
§ 2.4 Linear Functions and Slope. Blitzer, Intermediate Algebra, 5e – Slide #2 Section 2.4 x - and y -Intercepts 127 Using Intercepts to Graph Ax + By.
2.4 Linear Functions and Slope. Blitzer, Algebra for College Students, 6e – Slide #2 Section 2.4 Linear Functions All equations of the form Ax + By =
Gradient and Intercept 06 October 2015 Lesson Objective: To Plot the graphs of simple linear functions, and also find the equation of a straight line -
4.1 Coordinates Objective: To plot points and name points in the coordinate plane. A coordinate plane is formed by two real number lines that intersect.
Unit 4 Seminar GRAPHS 4.1 Variation 4.2 Linear Inequalities
© 2008 Pearson Addison-Wesley. All rights reserved Chapter 1 Section 13-6 Regression and Correlation.
Ch4 Describing Relationships Between Variables. Section 4.1: Fitting a Line by Least Squares Often we want to fit a straight line to data. For example.
Graphing Linear Equations
Correlation Analysis. A measure of association between two or more numerical variables. For examples height & weight relationship price and demand relationship.
Linear Equations in Two Variables
1  The Cartesian Coordinate System  Straight Lines  Linear Functions and Mathematical Models  Intersection of Straight Lines  The Method of Least.
1.2 Slopes and Intercepts Objectives: Graph a linear equation. Write a linear equation for a given line in the coordinate plane. Standards: K Apply.
Chapter 1 Linear Functions. Slopes and Equations of Lines The Rectangular Coordinate System – The horizontal number line is the x-axis – The vertical.
Relationships If we are doing a study which involves more than one variable, how can we tell if there is a relationship between two (or more) of the.
© 2010 Pearson Education, Inc. All rights reserved Constructions, Congruence, and Similarity Chapter 12.
1. Interpret graphs. 2. Write a solution as an ordered pair. 3. Decide whether a given ordered pair is a solution of a given equation. 4. Complete ordered.
Rate of Change and Slope
Chapter 8 Linear Regression. Slide 8- 2 Fat Versus Protein: An Example The following is a scatterplot of total fat versus protein for 30 items on the.
Examining Bivariate Data Unit 3 – Statistics. Some Vocabulary Response aka Dependent Variable –Measures an outcome of a study Explanatory aka Independent.
CORRELATION. Correlation key concepts: Types of correlation Methods of studying correlation a) Scatter diagram b) Karl pearson’s coefficient of correlation.
Simple Linear Regression In the previous lectures, we only focus on one random variable. In many applications, we often work with a pair of variables.
PS 225 Lecture 17 Correlation Line Review. Scatterplot (Scattergram)  X: Independent Variable  Y: Dependent Variable  Plot X,Y Pairs Length (in)Weight.
Creating a Residual Plot and Investigating the Correlation Coefficient.
Section 2.6 – Draw Scatter Plots and Best Fitting Lines A scatterplot is a graph of a set of data pairs (x, y). If y tends to increase as x increases,
CHAPTER 5 CORRELATION & LINEAR REGRESSION. GOAL : Understand and interpret the terms dependent variable and independent variable. Draw a scatter diagram.
1 Data Analysis Linear Regression Data Analysis Linear Regression Ernesto A. Diaz Department of Mathematics Redwood High School.
EXCEL DECISION MAKING TOOLS BASIC FORMULAE - REGRESSION - GOAL SEEK - SOLVER.
LINEAR EQUATIONS & THEIR GRAPHS CHAPTER 6. INTRODUCTION We will explore in more detail rates of change and look at how the slope of a line relates to.
EXCEL DECISION MAKING TOOLS AND CHARTS BASIC FORMULAE - REGRESSION - GOAL SEEK - SOLVER.
Section 1.4 Linear Functions and Slope. Intro The Slope of a Line Slope describes steepness of a line. It compares the vertical change (rise) to the.
Slope of a Line Slope Slope describes the slant or direction of a line.
Section 7.1 The Rectangular Coordinate System and Linear Equations in Two Variables Math in Our World.
Section 1.4 Linear Functions and Slope
Linear Regression Essentials Line Basics y = mx + b vs. Definitions
Department of Mathematics
1.2 Slopes and Intercepts equation for a given line in the coordinate
Chapter 1 Linear Equations and Graphs
Correlation & Regression
Chapter 1 Linear Equations and Graphs
Chapter 5 STATISTICS (PART 4).
Section 7.1 Math in Our World
Chapter 1 Linear Equations and Graphs
Algebra Review The equation of a straight line y = mx + b
Section 3.1 Graphs of Linear Equations.
Presentation transcript:

Discovering Mathematics Week 9 – Unit 6 Graphs MU123 Dr. Hassan Sharafuddin

Learning Outcomes This unit includes the following: -Plotting graphs -Characteristics of straight-line -Equations of straight lines -Linear models from data -Reviewing straight line graphs Week 9

This unit is about relationship between two quantities. This section shows you how to plot a graph to illustrate an equation or formula involving two variables. Why do we need to graph equations? (Let students answer this?) There are many many use: For example: Money - just about every use of money can be graphed, and should be, because it can help you analyze what is happening. Marketing - companies use graphs to show trends in sales and success, so they can keep track of what they need to be doing. Government - the government analyzes graphs to see where they should make certain requirements and laws based on patterns and populations and trends of people. 1. Plotting Graph 1.1 Graph axes and coordinates

Write down the coordinates of the points A, B, C and D shown below. 1. Plotting Graph Mark the following points on a graph. (i)E(−1,−3) (ii)F(0.5, 2.75) (iii) G(−3.5, 3.5) (iv) H(4,−1) (v)I(0,-3) (vi)J(-4,0) (vii)K((3, -3) 1.1 Graph axes and coordinates (1.5, 1) (x, y) (-2, 3) (-3.5,-2)(2.5,-3.5)

You can plot a graph to illustrate an equation that relates the variables x and y by first choosing some values of x and working out the corresponding values of y. 1. Plotting Graph 1.2 Graphs of equations XY ? -3? -Determine whether each of the following points lies on the above line (a) (8,7) (b) (−8,−3) - Solve actvity 4, page 67

1.3 Scatterplots: Scatterplots are used to plot data points on a horizontal and a vertical axis in the attempt to show how much one variable is affected by another. The following is an example for a negative relationship between price P and quantity Q: 1. Plotting Graph 1.3 Scatterplots Exercise: Prepare a scatterplot for the following data. Determine from your graph whether there is a correlation between the number of hours spent in the mall and the number of dollars spent. Hours in mall: Dollars spent:

2.1 Gradient: One of the main characteristics of a straight line is how steep it is. The steepness of a line is measured by its gradient (slope). The gradient of the line can be calculated by dividing the rise by the run. Consider the following line which passes through the points (1, 2) and (3, 8). Moving from point (1,2) to point (3,8), the x- coordinate increases from 1 to 3, which is an increase of 2, and the y-coordinate increases from 2 to 8, which is an increase of 6. So the run is 2 and the rise is 6. Therefore the gradient is 6/2 = 3 2. Characters of straight-line graphs 2.1 Gradient

Lines that slope up from left to right have a positive gradient. Lines that slope down from left to right have a negative gradient. Activity 6: Calculate the gradients of the line shown below: 2. Characters of straight-line graphs 2.1 Gradient calculate the gradient of the line that passes through following pairs of points. (i) A(2, 2) and B(−2, 2) (ii) A(2, 2) and C(−1.5,−2.5) Solve activity 8 (home assignment)

2.2 A formula for gradient: In general, the gradient of a graph tells you the amount that the variable on the vertical axis changes when the variable on the horizontal axis increases by one unit. 2. Characters of straight-line graphs 2.3 Interpreting gradient Activity 9: Graph (a) shows the distance travelled by a car plotted against the amount of fuel used, find the gradient and explain what it measures.

The points (0, 0) and (30, 600) lie on the line, so its gradient is (y2 – y1) = (600 – 0) (X2 – X1) = (30 – 0) Gradients = 20km/l. 2. Characters of straight-line graphs 2.3 Interpreting gradient The gradient measures the number of kilometers travelled per litre of fuel. In other words, the gradient is the rate of fuel consumption. Interpreting the sign of the gradient of a graph A positive gradient indicates that the quantity on the vertical axis increases as the quantity on the horizontal axis increases. A negative gradient indicates that the quantity on the vertical axis decreases as the quantity on the horizontal axis increases. A zero gradient indicates that the quantity on the vertical axis remains constant as the quantity on the horizontal axis increases.

2.4 Intercepts The value on the axis scale where a straight-line graph crosses one of the graph axes is called an intercept. 2. Characters of straight-line graphs 2.4 Intercepts the x- and y-intercepts of the line shown are −3 and 2, respectively. The points corresponding to these intercepts are (−3, 0) and (0, 2).

3. Equations of straight lines The points that lie on the line are the points whose coordinates (x, y) satisfy this equation. What is the gradient of the this line? It is 2 So every point whose y-coordinate is twice its x-coordinate lies on the line. Then the equation of the line is y = 2x. 3 Equations of straight lines 3.1 Lines that pass through the origin

3.3 The general equation of a straight line: Nearly every straight line that you can draw on a graph is described by an equation of the form y = mx + c, where m is the coefficient of x and c is constant. REMEMBER: 3 Equations of straight lines 3.3 The general equation of a straight line Let us solve some exercises..

Activity 16: Write down the gradients and y-intercepts of the line : (i) y = 2x−1 (ii) y = -3x +4 Answer: (i)The coefficient of x is 2, so the gradient is 2. The constant is −1, so the y-intercept is −1. When you find y- intercept, put x = 0 and solve the equation. (ii)The coefficient of x = -3, the gradient is -3, the constant = 4 3 Equations of straight lines 3.3 The general equation of a straight line

Activity 16: Write down the equations of the following lines. (i) The line with gradient 4 and y-intercept −10 (ii) The line with gradient −1 and y-intercept 5 Answer: (i)y = 4x -10 (ii)y = - x + 5 Find the x-intercept of the line with equation y = 4x−3. The x-intercept is the value of x when y = 0, put y = 0 4x – 3 = 0, 4x = 3, x = ¾ Find the x-intercepts of the line: y = −3x = -3x + 4, = - 3x +4 -4, -4 = - 3x, x = 3/4 3 Equations of straight lines 3.3 The general equation of a straight line

To draw the line y = mx + c from its equation, Find the coordinates of two points on the line, by choosing two values of x and substituting them into the equation to find the corresponding values of y. Exercise: Draw the graphs of the equation: y = −2x Equations of straight lines 3.4 Drawing lines from their equations

Sometimes you might have different information about a line, and want to determine its equation. For example, you might have a graph of the line, or you might know the coordinates of two points on the line. 3 Equations of straight lines 3.5 Finding the equations of lines Example: Find the equation of this line: 1) Calculate the gradient: Choose two points lie on the line: (0, -2), (4, 0) Gradient = ½ 2) Find the vertical intercept which is -2 3) Find the equation line: p = 1/2q – 2 (why p and q? )

Find the equations of the lines shown below. 3 Equations of straight lines 3.5 Finding the equations of lines 1) Calculate the gradient: Choose two points lie on the line: (0, 1), (1, -2), Gradient = -3 2) Find the vertical intercept which is 1 3) Find the equation line: y = -3 x + 1

Find the equation of the line that has gradient −2 and passes through the point (1, 3). Answer: The gradient is -2, then the equation is: y = -2 x + c The point (1, 3) lies on the line, so its coordinates satisfy the condition: y=3 and x=1: 3 = −2×1 + c; that is, 3 = −2 + c Adding 2 to both sides gives c = 5 Now, the equation of the line is y =−2x Equations of straight lines 3.5 Finding the equations of lines

3 Equations of straight lines 3.5 Finding the equations of lines

4 Linear models from data: This section shows how to find the equation of the best line to fit a set of data, and how to measure how good a fit the line is. 4.1 Regression line: Regression analysis allows you to model, examine, and explore spatial relationships, and can help explain the factors behind observed spatial patterns. Regression analysis is also used for prediction. Let us analyze the following case: 4 Linear models

4 Regression analysis: The local ice cream shop keeps track of how much ice cream they sell versus the temperature on that day, their figures for the last 12 days are shown in the margin: Let us plot these figures using Excel, insert scatter, we get the following scatterplot 4 Linear models 4.1 Regression line Ice Cream Sales vs Temperature Temperature °C Ice Cream Sales 14.2°$ °$ °$ °$ °$ °$ °$ °$ °$ °$ °$ °$408 You can easily see that warmer weather leads to more sales, the relationship is good and gives nearly straight line.

You can use Excel to find the regression line equation as follow: Insert → Data → Data analysis (from the menu, select Regression) Follow the steps and you will get the following regression report: 4 Linear models 4.1 Regression line SUMMARY OUTPUT Regression Statistics Multiple R R Square Adjusted R Square Standard Error Observations12 ANOVA dfSSMSFSignificance F Regression E-06 Residual Total CoefficientsStandard Errort StatP-valueLower 95%Upper 95%Lower 95.0%Upper 95.0% Intercept X Variable E If you need help on how to use Excel, you may visit the following link:

4 Linear models 4.1 Regression line

4 Linear models 4.2 Correlation coefficients 4.2 Correlation coefficients: How well a regression line fits its data points? Statisticians have developed a measure known as the correlation coefficient, which is a number calculated from the data pairs, and is often denoted by R. Excel will calculate this for you and it is shown in the previous report (slide 23) (Ice cream case). R = positive correlation. (How did we know that it is positive correlation? (Gradient is +) which means that one of the quantities tends to increase as the other increases. In this case, the quantities are said to have a positive correlation.

4 Linear models 4.2 Correlation coefficients Perfect correlation (r = 1). Strong correlation (r close to 0)Weak correlationZero correlation Types of correlations:

5 Reviewing straight-line graphs Fill in the blanks in the incomplete diagram below, starting with the equation y = −32x + 6 in the middle. Gradient is 3 because the coefficient of x is the value of m. Y-intercept is 6 because when x=0, y = 6 The graph is: (0,6) (4,0) y x

Thank you Do not forget to solve activities In Unit 6