Line chart

Intermediate

What you need first. Nothing else on this path comes first. This page is part of Data analysis.

In data analysis, a line chart is a frequency graph that draws a line of height equal to the frequency at each value of a discrete variable. A discrete variable is often summarised by how often each value occurs. A line chart draws that count as the length of a line standing on the value. [1] [2]

Line chart

Line chart
Fact Value
Topic Data analysis
Listed on Data analysis
Worked example 1

Motivating example

A die is thrown 20 times and the face 6 appears 4 times, the face 1 appears 2 times, and the other faces fill out the rest. A line chart puts the faces 1 through 6 along the horizontal axis and draws a vertical line at 6 whose length is 4. The line is a frequency, not a probability, until a model is added. [1] [1]

Intuition

The chart is a frequency table drawn instead of written. Each possible value gets one line. Taller lines are more common values. Because the variable is discrete, the lines stand on separated points rather than filling a bar of width. [1] [2]

Definition

A line chart is a frequency graph for a discrete variable. The values lie on the horizontal axis. Over each value xix_i a line is drawn whose length is the absolute frequency nin_i, or the relative frequency fif_i. [1] A frequency is the number of times a value has been observed, and a relative frequency is that count divided by the number of observations. [2] [2]

A frequency distribution is a display that organises those counts so they can be read. [2]

Properties

If the lines show absolute frequencies, their lengths sum to the number of observations. If they show relative frequencies, the lengths sum to 1. [1] [1]

The chart does not connect the tips into a curve that pretends the variable is continuous. The lines stay on the discrete values. [1] [2]

Statistical use

The chart is a descriptive display. It answers which values occurred and how often. It does not, by itself, estimate a probability or test a hypothesis. A probability mass function is a model for those relative frequencies, not a second copy of the chart. [1] [3]

Worked example

Five households have sizes 2, 2, 3, 4, 2. The value 2 has absolute frequency 3, the value 3 has frequency 1, and the value 4 has frequency 1. A line chart has lines of lengths 3, 1, and 1 at 2, 3, and 4. The relative-frequency chart uses 3/53/5, 1/51/5, and 1/51/5. Those three relative frequencies sum to 1. [1] [2]

Your turn. One more household of size 3 is added. What are the absolute frequencies of 2 and of 3, and what is the new relative frequency of 2?

There are now six households. The value 2 still appears three times, and 3 appears twice. The relative frequency of 2 is 3/6 = 1/2.

Common misconceptions

A line chart of frequencies is not a line drawn through a time series. The horizontal axis is the value of a discrete variable, not a date. Joining the tips and reading the slope between two values invents values the variable does not take. [1] [2]

A bar chart uses a column for each category, or for each ungrouped discrete value. A line chart instead draws a line whose length is the frequency, standing on the value itself. [2] [1]

Assumptions and limits

The chart needs a discrete variable with a list of values. A continuous measurement has to be grouped before a frequency line makes sense, and the grouping is then part of the display. Empty values, if they are possible and did not occur, are lines of length zero, not omitted categories that the reader cannot see. [1] [2]

Connections

Counts of the sort collected in summary statistics are the lengths of the lines. A variable supplies the horizontal axis. A histogram is the grouped picture for a numerical measurement. The probability mass of a discrete distribution is the model analogue of the relative-frequency lines. [1] [2]

Check yourself

Try these questions before opening an answer.

A new household

Sizes 2, 2, 3, 4, 2 gain one more household of size 3. What is the absolute frequency of 3?

The value 3 appears twice.

Relative frequency of 2

After that addition there are six households and the value 2 still appears three times. What is the relative frequency of 2?

The relative frequency is 3/6 = 1/2.

History

Drawing a frequency as the length of a line is one of the older ways to show a discrete count without a table. The chart remains a description of the observations that were kept. [1] [1]

See also

Apriori algorithm · Asymptotic analysis · Average treatment effect · Base rate · Bayesian inference · Bayesian model · Bayesian probability · Bayesian statistics

Glossary and index

References

  1. ^ a b c d e f g h i j k l m n o p a. (p. 316) b. (p. 316) c. (p. 208) d. (p. 316) e. (p. 316) f. (p. 208) g. (p. 316) h. (p. 316) i. (p. 316) j. (p. 316) k. (p. 316) l. (p. 316) m. (p. 316) n. (p. 316) o. (p. 316) p. (p. 518) Dodge, Yadolah (2008). The Concise Encyclopedia of Statistics. Springer. https://doi.org/10.1007/978-0-387-32833-1
  2. ^ a b c d e f g h i j k a. (Glossary, “Frequency”) b. (Glossary, “Frequency distribution”) c. (Glossary, “Absolute frequency”) d. (Glossary, “Relative frequency”) e. (Glossary, “Frequency distribution”) f. (Glossary, “Discrete variable”) g. (Glossary, “Relative frequency”) h. (Glossary, “Discrete variable”) i. (Glossary, “Bar chart”) j. (Glossary, “Continuous variable”) k. (Glossary, “Frequency distribution”) Australian Bureau of Statistics (2023). Statistical terms and concepts glossary. Australian Bureau of Statistics. https://www.abs.gov.au/statistics/understanding-statistics/statistical-terms-and-concepts/statistical-terms-and-concepts-glossary
  3. ^ (Glossary, “model”) Heckert, N. A., Filliben, J. J., Croarkin, C. M., Hembree, B., Guthrie, W. F., Tobias, P. & Prinz, J. (2002). Handbook 151: NIST/SEMATECH e-Handbook of Statistical Methods, Glossary. National Institute of Standards and Technology. https://www.itl.nist.gov/div898/handbook/glossary.htm
Cite this page
Plain text
StatWiki (2026). "Line chart." StatWiki. Last updated 2 December 2026. https://www.statwiki.io/articles/line-chart.html
BibTeX
@misc{statwiki_line_chart,
  author = {{StatWiki}},
  title = {{Line chart}},
  year = {2026},
  url = {https://www.statwiki.io/articles/line-chart.html},
  urldate = {2026-12-02},
  note = {StatWiki, last updated 2 December 2026}
}