Data Frame and Hubble's Plot

Slides:



Advertisements
Similar presentations
Objective - To graph linear equations using the slope and y-intercept.
Advertisements

Like Terms, I Add Them Adding Polynomials. Like terms are terms that contain the same variables, with corresponding variables having the same power. Example:
Equation of a line y = m x + b
The table and graph suggest another method of graphing a linear equation. This method is based on two numbers. The SLOPE This is the coefficient of x.
1.3 Linear Equations in Two Variables
Graph a linear equation Graph: 2x – 3y = -12 Solve for y so the equation looks like y = mx + b - 3y = -2x – 12 Subtract 2x to both sides. y = x + 4 Divide.
3-5 Lines in the coordinate plane M11. B
Linear Equations Review. Find the slope and y intercept: y + x = -1.
Warm Up Find the slope of the line containing each pair of points.
Writing equations in slope intercept form
The slope-intercept form of a linear equation of a non-vertical line is given by: Slope-Intercept Form of a Linear Equation.
1.2 Linear Equations in Two Variables
3.3 Slope.
Writing Equations of Lines. Find the equation of a line that passes through (2, -1) and (-4, 5).
. 5.1 write linear equation in slope intercept form..5.2 use linear equations in slope –intercept form..5.3 write linear equation in point slope form..5.4.
7.3 Linear Equations and Their Graphs Objective: To graph linear equations using the x and y intercepts To graph horizontal and vertical lines.
Algebra 1 Section 5.6 Write linear equations in standard form Recall: Forms of linear equations Standard Slope-intercept Point-slope Graph 4x – 3y = 6.
1. Write the equation in standard form.
F-IF.C.7a: Graphing a Line using Slope-Intercept, Part 1
Quick Graphs of Linear Equations
3.3: Point-Slope Form.
Point-Slope Form of a Linear Equation
Geometry Creating Line Equations Part 1
F-IF.C.7a: Graphing a Line using Slope-Intercept, Part 2
STANDARD FORM OF A LINEAR EQUATION
Lines in the Coordinate Plane
How do we graph linear equations?
#2 Review of Writing Linear Equation
Using Excel to Graph Data
Linear Equations in two variables
Objective- To use slope and y-intercept to
Equations of Lines in the Coordinate Plane
Statistics Correlation
Literacy Research Memory Skill Practice Stretch!
The Total Record Catches For Hines Ward
Warm up #5.
Objectives Graph a line and write a linear equation using point-slope form. Write a linear equation given two points.
Reading a CSV file in R.
Graphing Linear Equations
5-4 Point Slope Form.
PARENT GRAPH FOR LINEAR EQUATIONS
Polynomial Fit in R.
5.3: Slope-Intercept Form
Standard Form of a Linear Equation
2.5 Linear Equations.
What is the x-intercept?
Slope Intercept Form Lesson 6-2.
Writing Linear Equations in Standard Form
Translations of Linear Functions
EXIT TICKET: Graphing Linear Equations 11/17/2016
Lesson 3-4 Equations of Lines
Meaning of Slope for Equations, Graphs, and Tables
5.6 – point slope formula Textbook pg. 315 Objective:
Write the equation for the following slope and y-intercept:
Write the equation of the line.
Graphing and Writing Equations in Standard Form
Using Excel to Graph Data
Chapter 1 Graphs.
7.3 Linear Equations and Their Graphs
Graphing with X- and Y-Intercepts
Lesson 2.2 Linear Regression.
Find the y-intercept and slope
Write an Equation Given Two Points
Even better… write it as y = 3x – 6
Objectives: To graph lines using the slope-intercept equation
5-5 Vocabulary 8.) x-intercept 9.) Standard form of a linear equation.
Intercepts of a Line Intercepts are the points at which the graph intersects the x-axis or the y-axis. Since an intercept intersects the x-axis or the.
1: Slope from Equations Y = 8x – 4 B) y = 6 – 7x
WARM UP 3 WRITING EQUATIONS Write in slope-intercept form the equation of the line that passes through the given point and has the given slope. (Lesson.
Graphing using Slope-Intercept Form
Presentation transcript:

Data Frame and Hubble's Plot

We can combine vectors into a spreadsheet-like format that R calls a data.frame (copy and paste) dist = c(0.032,0.034,0.214,0.263,0.275,0.275,0.45,0.5,0.5, 0.63,0.8,0.9, 0.9,0.9,0.9,1,1.1,1.1,1.4,1.7,2,2,2,2) vel = c(170, 290, -130, -70,-185,-220, 200, 290, 270, 200, 300, -30, 650, 150, 500, 920, 450, 500, 500, 960, 500, 850, 800, 1090) hubble = data.frame(dist, vel)

Result

Plot the Hubble Data

Result of plotting Hubble Data

Note we can export the plot

Fitting the Hubble data.frame to a linear model

Summary of linear model from R and the linear fit from Excel for comparison The intercept and slope are the “coefficients”.

Using abline() to add linear model result to plot

Get help on a function

Adding the equation to the plot Text(middle_x, middle_y, text_to_display) Note that 0.5 is near the middle of the displayed equation horizontally And that 800 is near the middle of the displayed equation vertically