Question

In: Physics

Having data of two independent variables and a dependent variable, how do I plot a linear...

Having data of two independent variables and a dependent variable, how do I plot a linear graph (trendline fit)? (Linear equation) Possible to use excel.

Solutions

Expert Solution

The final graph is at the end.

It's probably better to do a graph in pencil first, then in pen.

  1. Collect your data. After you have it all in one place, you should have one independent variable (like time) and one dependent variable (like something you measure as a function of time). Here are some points we will use as an example; we've measured position of a ball as a function of time:
    time (s)  position (cm)
      1           3.0
      2           3.4
      3           4.8
      4           5.0
      5           5.3
    
  2. Determine the range of your data. In order to determine how big a graph to make, we need to determine how much the numbers vary. In this case, time varies from 1 to 5 seconds, and position varies from 3.0 to 5.3 cm. We have to make sure that there is enough space on the graph to fit all the data. NOTE THAT YOU DO NOT HAVE TO USE THE WHOLE SHEET OF PAPER FOR YOUR GRAPH!It's perfectly acceptable to use only part of the page. The independent variable (time, in this case) will go on the x-axis (the one parallel to the bottom of the page), and the dependent variable (position, in this case) will go on the y-axis (parallel to the left hand side of the page). So, draw axes that are big enough for all the data. (see example.)
  3. Label your graph and your axes. THIS IS VERY IMPORTANT! When presented with your graph, other people should be able to figure out what is plotted without asking you.
    Titles of graphs are usually "Y versus X"; so in this case, our title is "Position versus Time." (NOT position divided by time, or position minus time.)
    Labels on the axes must have units! So, in this case, the label on the x axis (the one on the bottom) should be "Time (seconds)" and the label on the y axis (the one on the left) should be "Position (centimeters)."
    Remember to write the numbers on the graph, too. The numbers should be evenly and logically spaced - what I mean by this is the following: for our position data here, the y-axis should be marked off in increments like (1,2,3,4,5,6) or (2,4,6,8), NOT (1.3, 2.6, 4.8,...) or anything else weird.
  4. Plot your data. Now, go ahead and place your data points on the graph. Make them big enough to be seen, but not big enough to look like you were eating pizza while making your graph.
  5. Draw a "line of best fit." THIS DOES NOT MEAN CONNECT THE DOTS! Only rarely will a graph need to have the data points connected by a jagged line. Usually, it is best to guess at a (straight) line that goes as near as possible to as many points as possible. (See example.) THE ORIGIN IS NOT ALWAYS INCLUDED AS A POINT! And, sometimes there will be a LOT of scatter and it might not be clear where a line should go.

    Now you're done with your graph, but you're not finished yet.

  6. Think about what your graph means. The slope of the line that you drew describes how fast your line rises (or falls). To find the slope of your line, pick two points on the line, as far apart as possible. These two points are described as (x1,y1) and (x2, y2). In our example, two points our line intersects are (x1,y1) = (1, 2.8) and (x2, y2)=(4, 5). The slope of the line is given by (y2-y1)/(x2-x1), which here is (5-2.8)/(4-1) = 2.2/3 = 0.73
    What do you think the units of the slope are? In this case, y's have units of cm, and x's have units of seconds. So, the units of the slope are cm/s, or in this case, 0.73 centimeters per second (cm/s). So for every second that we were watching it, the ball moved about 0.73 centimeters.

This sheet describes some good techniques for creating almost any kind of graph. There are many other ways to analyze a graph, and you will probably run into them in school

.


Related Solutions

Given here are the data from a dependent variable and two independent variables. The second independent...
Given here are the data from a dependent variable and two independent variables. The second independent variable is an indicator variable with several categories. Hence, this variable is represented by x2, x3, and x4. How many categories are there for this independent variable? Use a computer to perform a multiple regression analysis on this data to predict y from the x values. Discuss the output and pay particular attention to the dummy variables. y x1 x2 x3 x4 11 1.9...
Consider the following data for a dependent variable and two independent variables, and . x1= 30...
Consider the following data for a dependent variable and two independent variables, and . x1= 30 46 24 50 41 51 74 36 60 77. x2 = 13 11 17 17 6 20 8 12 13 16. y = 95 109 112 178 94 176 170 117 142 212 Round your all answers to two decimal places. Enter negative values as negative numbers, if necessary. a. Develop an estimated regression equation relating to y to x1 . Predict y if...
how to interpret log-linear coefficient? Follow is the independent variables and their coefficient Dependent variable: EXPORT...
how to interpret log-linear coefficient? Follow is the independent variables and their coefficient Dependent variable: EXPORT Constant= 11.96 Adoption rate=0.03 approval process=5.12 risk assessment=-3.6 labeling = -2.03 international agreement= 0.44
In a multi linear regression case study, the dependent variable is house_value, the independent variables are...
In a multi linear regression case study, the dependent variable is house_value, the independent variables are house_age, crime_rate, tax_rate, trying to build a model to predict the house value, how to state model assumptions? What's the assumption in this case? Thanks!
Consider the following data for a dependent variable y and two independent variables, x2 and x1....
Consider the following data for a dependent variable y and two independent variables, x2 and x1. x1 x2 y 30 12 94 46 10 109 24 17 113 50 17 179 41 5 94 51 19 175 75 8 171 36 12 118 59 13 143 77 17 212 Round your all answers to two decimal places. Enter negative values as negative numbers, if necessary. a. Develop an estimated regression equation relating y to x1 . Predict y if x1=45....
Consider the following data for a dependent variable y and two independent variables, x1 and x2.
You may need to use the appropriate technology to answer this question. Consider the following data for a dependent variable y and two independent variables, x1 and x2. x1 x2 y 30 12 93 47 10 108 25 17 112 51 16 178 40 5 94 51 19 175 74 7 170 36 12 117 59 13 142 76 16 211 The estimated regression equation for these data is ŷ = −18.89 + 2.02x1 + 4.74x2. Here, SST = 15,276.0,...
Consider the following data for a dependent variable y and two independent variables, x1 and x2....
Consider the following data for a dependent variable y and two independent variables, x1 and x2. x1 x2 y 30 12 94 47 10 108 25 17 112 51 16 178 40 5 94 51 19 175 74 7 170 36 12 117 59 13 142 76 16 209 The estimated regression equation for these data is ŷ = −17.02 + 1.99x1 + 4.70x2. Here, SST = 14,902.9, SSR = 13,773.1, sb1 = 0.2470, and sb2 = 0.9480. (1a) Test...
Consider the following data for a dependent variable y and two independent variables, x1 and x2....
Consider the following data for a dependent variable y and two independent variables, x1 and x2. x1 x2 y 30 13 95 46 10 108 25 18 113 50 16 179 40 5 95 51 20 176 74 7 170 36 12 117 59 13 142 77 16 211 Round your all answers to two decimal places. Enter negative values as negative numbers, if necessary. a. Develop an estimated regression equation relating y to x1. ŷ =_________ +___________ x1 Predict...
Consider the following data for a dependent variable y and two independent variables, x1 and x2....
Consider the following data for a dependent variable y and two independent variables, x1 and x2. x1 x2 y 30 12 95 47 10 108 25 17 112 51 16 178 40 5 94 51 19 175 74 7 170 36 12 117 59 13 142 76 16 212 The estimated regression equation for these data is ŷ = −18.52 + 2.01x1 + 4.75x2. Here, SST = 15,234.1, SSR = 14,109.8, sb1 = 0.2464, and sb2 = 0.9457. (a)Test for...
Consider the following data for a dependent variable y and two independent variables, x1and x2. x...
Consider the following data for a dependent variable y and two independent variables, x1and x2. x 1 x 2 y 29 13 94 47 10 109 24 17 113 50 16 178 40 6 95 52 20 176 75 7 171 37 13 118 59 14 142 77 17 211 Round your all answers to two decimal places. Enter negative values as negative numbers, if necessary. a. Develop an estimated regression equation relating y to x1. ŷ =  +  x1 Predict y...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT