# 2.6.1: Understand and Create Line Graphs

• • Contributed by CK12
• CK12

## Line Graphs

Before you continue to explore the concept of representing data graphically, it is very important to understand the meaning of some basic terms that will often be used in this concept. The first such definition is that of a variable. In statistics, a variable is simply a characteristic that is being studied. This characteristic assumes different values for different elements, or members, of the population, whether it is the entire population or a sample. The value of the variable is referred to as an observation, or a measurement. A collection of these observations of the variable is a data set.

Variables can be quantitative or qualitative. A quantitative variable is one that can be measured numerically. Some examples of a quantitative variable are wages, prices, weights, numbers of vehicles, and numbers of goals. All of these examples can be expressed numerically. A quantitative variable can be classified as discrete or continuous. A discrete variable is one whose values are all countable and does not include any values between 2 consecutive values of a data set. An example of a discrete variable is the number of goals scored by a team during a hockey game. A continuous variable is one that can assume any countable value, as well as all the values between 2 consecutive numbers of a data set. An example of a continuous variable is the number of gallons of gasoline used during a trip to the beach.

qualitative variable is one that cannot be measured numerically but can be placed in a category. Some examples of a qualitative variable are months of the year, hair color, color of cars, a person’s status, and favorite vacation spots. The following flow chart should help you to better understand the above terms. Variables can also be classified as dependent or independent. When there is a linear relationship between 2 variables, the values of one variable depend upon the values of the other variable. In a linear relation, the values of y depend upon the values of x. Therefore, the dependent variable is represented by the values that are plotted on the y-axis, and the independent variable is represented by the values that are plotted on the x-axis.

Linear graphs are important in statistics when several data sets are used to represent information about a single topic. An example would be data sets that represent different plans available for cell phone users. These data sets can be plotted on the same grid. The resulting graph will show intersection points for the plans. These intersection points indicate a coordinate where 2 plans are equal. An observer can easily interpret the graph to decide which plan is best, and when. If the observer is trying to choose a plan to use, the choice can be made easier by seeing a graphical representation of the data.

### Describing Variables

Select the best descriptions for the following variables and indicate your selections by marking an ‘x’ in the appropriate boxes.

Variable Quantitative Qualitative Discrete Continuous
Number of members in a family
A person’s marital status
Length of a person’s arm
Color of cars
Number of errors on a math test

The variables can be described as follows:

Variable Quantitative Qualitative Discrete Continuous
Number of members in a family x   x
A person’s marital status   x
Length of a person’s arm x     x
Color of cars   x
Number of errors on a math test x   x

### Creating a Table of Values

Sally works at the local ballpark stadium selling lemonade. She is paid $15.00 each time she works, plus$0.75 for each glass of lemonade she sells. Create a table of values to represent Sally’s earnings if she sells 8 glasses of lemonade. Use this table of values to represent her earnings on a graph.

The first step is to write an equation to represent her earnings and then to use this equation to create a table of values.

y=0.75x+15, where y represents her earnings and x represents the number of glasses of lemonade she sells. Number of Glasses of Lemonade Earnings
0 $15.00 1$15.75
2 $16.50 3$17.25
4 $18.00 5$18.75
6 $19.50 7$20.25
8 $21.00 The dependent variable is the money earned, and the independent variable is the number of glasses of lemonade sold. Therefore, money is on the y-axis, and the number of glasses of lemonade is on the x-axis. From the table of values, Sally will earn$21.00 if she sells 8 glasses of lemonade. Now that the points have been plotted, the decision has to be made as to whether or not to join them. Between every 2 points plotted on the graph are an infinite number of values. If these values are meaningful to the problem, then the plotted points can be joined. This type of data is called continuous data. If the values between the 2 plotted points are not meaningful to the problem, then the points should not be joined. This type of data is called discrete data. Since glasses of lemonade are represented by whole numbers, and since fractions or decimals are not appropriate values, the points between 2 consecutive values are not meaningful in this problem. Therefore, the points should not be joined. The data is discrete.

### Interpreting a Graph The following graph represents 3 plans that are available to customers interested in hiring a maintenance company to tend to their lawn. Using the graph, explain when it would be best to use each plan for lawn maintenance. From the graph, the base fee that is charged for each plan is obvious. These values are found on the y-axis. Plan A charges a base fee of $200.00, Plan C charges a base fee of$100.00, and Plan B charges a base fee of $50.00. The cost per hour can be calculated by using the values of the intersection points and the base fee in the equation y=mx+b and solving for m. Plan B is the best plan to choose if the lawn maintenance takes less than 12.5 hours. At 12.5 hours, Plan B and Plan C both cost$150.00 for lawn maintenance. After 12.5 hours, Plan C is the best deal, until 50 hours of lawn maintenance is needed. At 50 hours, Plan A and Plan C both cost $300.00 for lawn maintenance. For more than 50 hours of lawn maintenance, Plan A is the best plan. All of the above information was obvious from the graph and would enhance the decision-making process for any interested client. ## Example ### Example 1 The local arena is trying to attract as many participants as possible to attend the community’s “Skate for Scoliosis” event. Participants pay a fee of$10.00 for registering, and, in addition, the arena will donate $3.00 for each hour a participant skates, up to a maximum of 6 hours. Create a table of values and draw a graph to represent a participant who skates for the entire 6 hours. How much money can a participant raise for the community if he/she skates for the maximum length of time? The equation for this scenario is y=3x+10, where y represents the money made by the participant, and x represents the number of hours the participant skates. Numbers of Hours Skating Money Earned 0$10.00
1 $13.00 2$16.00
3 $19.00 4$22.00
5 $25.00 6$28.00

The dependent variable is the money made, and the independent variable is the number of hours the participant skated. Therefore, money is on the y-axis, and time is on the x-axis as shown below: A participant who skates for the entire 6 hours can make $28.00 for the "Skate for Scoliosis" event. The points are joined, because the fractions and decimals between 2 consecutive points are meaningful for this problem. A participant could skate for 30 minutes, and the arena would pay that skater$1.50 for the time skating. The data is continuous.

## Review

1. What term is used to describe a data set in which all points between 2 consecutive points are meaningful?
1. discrete data
2. continuous data
3. random data
4. fractional data
2. What type of variable is represented by the number of pets owned by families?
1. qualitative
2. quantitative
3. independent
4. continuous
3. What type of data, when plotted on a graph, does not have the points joined?
1. discrete data
2. continuous data
3. random data
4. independent data
4. Select the best descriptions for the following variables and indicate your selections by marking an ‘x’ in the appropriate boxes.
Variable Quantitative Qualitative Discrete Continuous
Men’s favorite TV shows
Salaries of baseball players
Number of children in a family
Favorite color of cars
Number of hours worked weekly

You are selling your motorcycle, and you decide to advertise it on the Internet on Walton’s Web Ads. He has 3 plans from which you may choose. The plans are shown on the following graph. Use the graph and explain when it is best to use each plan. 1. When would it be best to use Plan A?
2. When would it be best to use Plan B?
3. When would it be best to use Plan C?
4. What is the dependent variable in the following relationship? The time it takes to run the 100 yard dash and the fitness level of the runner.
a. fitness level
b. time
c. length of the track
d. age of the runner
5. If the relationship in question 8 were graphed on a coordinate grid, what variable would be on the x-axis?
6. If the relationship in question 8 were graphed on a coordinate grid, what variable would be on the y-axis?

## Vocabulary

Term Definition
bar chart A bar chart is a graphic display of categorical variables that uses bars to represent the frequency of the count in each category.
broken line graph A broken line graph is a graph that is used to show changes over time. A line is used to join the values but the line has no defined slope.
continuous variables A continuous variable is a variable that takes on any value within the limits of the variable.
data set A collection of these observations of the variable is a data set.
dependent variable The dependent variable is the output variable in an equation or function, commonly represented by y or f(x).
discrete random variables Discrete random variables represent the number of distinct values that can be counted of an event.
independent variable The independent variable is the input variable in an equation or function, commonly represented by x.
qualitative variable A qualitative variable is one that cannot be measured numerically but can be placed in a category.
quantitative variable A quantitative variable is a variable that takes on numerical values that represent a measurable quantity. Examples of quantitative variables are the height of students or the population of a city.
variable In statistics, a variable is simply a characteristic that is being studied.
{"ft_lang_label":"__label__en","ft_lang_prob":0.9114068,"math_prob":0.97771305,"size":10902,"snap":"2021-31-2021-39","text_gpt3_token_len":2429,"char_repetition_ratio":0.15112865,"word_repetition_ratio":0.1517572,"special_character_ratio":0.22592185,"punctuation_ratio":0.09863786,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9835484,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18],"im_url_duplicate_count":[null,null,null,3,null,3,null,3,null,3,null,3,null,3,null,3,null,3,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-22T20:29:23Z\",\"WARC-Record-ID\":\"<urn:uuid:c6cd7652-5b98-4ecc-9b83-80450331c929>\",\"Content-Length\":\"123321\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:f8c7abe8-36f0-4f5e-9592-21a379d22ec2>\",\"WARC-Concurrent-To\":\"<urn:uuid:dc6ee35f-28b6-4749-b3a4-a40010d58de2>\",\"WARC-IP-Address\":\"13.249.38.111\",\"WARC-Target-URI\":\"https://k12.libretexts.org/Bookshelves/Mathematics/Statistics/02%3A_Visualizing_Data_-_Data_Representation/2.06%3A_Line_Graphs/2.6.01%3A_Understand_and_Create_Line_Graphs\",\"WARC-Payload-Digest\":\"sha1:XPEE6LZPRFK4HZLIQSRK56VRACTOF5RI\",\"WARC-Block-Digest\":\"sha1:XN57WJBBPVIOFRU7YPZMEPY7T3JYQL4D\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780057388.12_warc_CC-MAIN-20210922193630-20210922223630-00602.warc.gz\"}"}