English

Cross-Sectional, Time Series, and Panel Data: Differences and Examples

Cross-sectional data are observations of many units at one point in time (for example, chili prices in 20 markets in January 2026).

Cross-Sectional, Time Series, and Panel Data: Differences and Examples
Contents
  1. Why does the type of data matter?
  2. What is cross-sectional data?
  3. What is time series data?
  4. What is panel data?
  5. What do the three data types look like in a table?
  6. 1. Cross-sectional: many markets, one period (January 2026)
  7. 2. Time series: one market, many periods (Market A)
  8. 3. Panel: many markets, many periods
  9. More examples of cross-sectional and time series data
  10. Balanced panel, unbalanced panel, and pooled cross-sections
  11. How to choose the right data type for a research question
  12. Frequently asked questions
  13. What is cross-sectional data in simple terms?
  14. What is the difference between time series and cross-sectional data?
  15. Is questionnaire data cross-sectional?
  16. What is the difference between panel data and time series data?
  17. How many observations does a panel dataset have?
  18. References

Versi bahasa Indonesia: Contoh data cross section, data time series dan data panel

Short answer: cross-sectional data are observations of many units at one point in time (for example, chili prices in 20 markets in January 2026). Time series data are observations of one unit over many periods (chili prices in one market from 2010 to 2025). Panel data combine both: many units observed over many periods (chili prices in 20 markets from 2010 to 2025). The type of data determines which assumptions matter and which analysis is appropriate.

AspectCross-sectionalTime seriesPanel
Number of unitsManyOneMany
Number of periodsOneManyMany
ExampleIncome of 100 farmers in 2025National inflation, 2000 to 2025Regional GDP of 34 provinces, 2015 to 2025
Typical assumption problemHeteroscedasticityAutocorrelation, non-stationarityBoth, depending on the structure
Common methodsOLS regression, correlation, tests of differenceARIMA, SARIMA, VAR, forecastingPooled, fixed effect, and random effect models

Why does the type of data matter?

Data are the raw material of every empirical study, and the structure of the data shapes every decision that follows. A research question about differences between farmers requires many farmers; a question about how prices evolve requires many periods; a question about how a policy changes behavior across regions over time requires both. Choosing the wrong structure leads either to an analysis that cannot answer the question or to an analysis that violates its own assumptions. Thus, identifying the data type is the first methodological step, before any software is opened.

Data can also be classified by measurement scale (nominal, ordinal, interval, and ratio). That classification concerns how a single variable is measured. The classification discussed here concerns how the observations are arranged across units and time, which is the dimension that determines the choice between regression, time series models, and panel models.

What is cross-sectional data?

Cross-sectional data are collected from many units in a single period. The units can be individuals, households, farms, firms, markets, villages, or countries. Examples include the price of chili in several markets of one city in the same month, the financial ratios of 30 banks in 2024, the yield of rice in 50 villages in the same planting season, and the regional GDP of all districts in one province in a given year.

A morning in a city market illustrates the idea. An enumerator walks from one stall to the next with a notebook, recording the price of chili at each of twenty traders before noon. By the time the notebook is closed, a cross-section has been created: twenty observations, one moment in time. The same exercise repeated in five other markets on the same day simply widens the cross-section.

The main strength of cross-sectional data is the absence of time trends. Because all observations come from the same period, inflation, seasonal swings, and long-run growth do not contaminate the comparison. Consequently, cross-sectional data are well suited for studying relationships between variables using correlation, regression, and tests of difference between groups. However, cross-sectional data often show unequal variance across units, since large farms or large firms tend to vary more than small ones. Heteroscedasticity is therefore the assumption that most often needs attention.

In short, cross-sectional data have many units and one period.

What is time series data?

Time series data follow a single unit over many periods. Examples include the monthly price of chili in one market from 2000 to 2025, the daily exchange rate of a currency, the annual national rice production since 1990, the monthly rainfall recorded at one weather station, and the daily closing price of one company’s shares.

Time series data are the natural material for forecasting. They reveal trends, seasonal patterns, cycles, and irregular shocks, and they allow the future to be projected from the past. Typical methods include decomposition, exponential smoothing, ARIMA and SARIMA, VAR models, and ARCH or GARCH models for volatility. However, time series data bring their own problems. Observations close in time tend to resemble one another (autocorrelation), and many economic series wander without a fixed mean (non-stationarity). Regressing one trending series on another can produce a very high R-squared without any real relationship. Thus, stationarity testing usually precedes any time series regression.

What is panel data?

Panel data, also called longitudinal data, combine both dimensions: many units, each observed over several periods. Examples include chili prices in 20 markets from 2000 to 2025, the regional GDP of all districts in a province from 2015 to 2025, and a household survey that revisits the same families every two years.

The first advantage of panel data is the number of observations. Twenty sub-districts observed over five years yield 20 × 5 = 100 observations, far more than either 20 cross-sectional or 5 time series observations. The second and more important advantage is the ability to control for characteristics that differ between units but do not change over time, such as soil quality, distance to the capital, or management culture. A fixed effect model removes these unobserved but constant differences, so the estimated effect of a variable is based on changes within each unit. Consequently, panel data provide stronger evidence about causal relationships than a single cross-section.

Panel data are analyzed with panel regression: the pooled (common effect) model, the fixed effect model, and the random effect model. The Chow test compares pooled and fixed effect models, the Hausman test compares fixed and random effect models, and the Breusch-Pagan Lagrange multiplier test compares pooled and random effect models.

What do the three data types look like in a table?

The difference becomes clear when the same topic, the retail price of bird’s eye chili, is arranged in three ways. The numbers below are illustrative.

1. Cross-sectional: many markets, one period (January 2026)

MarketPrice (USD/kg)
Market A3.20
Market B2.95
Market C3.35
Market D3.05

2. Time series: one market, many periods (Market A)

YearPrice (USD/kg)
20222.50
20232.78
20242.87
20253.08

3. Panel: many markets, many periods

MarketYearPrice (USD/kg)
Market A20242.87
Market A20253.08
Market B20242.68
Market B20252.84
Market C20242.99
Market C20253.23

The panel table is arranged in long format: each row is one combination of a unit and a period. This is the layout expected by EViews, Stata, R (plm, fixest), and Python (linearmodels). A wide layout, with one column per year, must be reshaped into long format before estimation.

More examples of cross-sectional and time series data

Cross-sectional dataTime series data
Questionnaire results from 150 students (one survey round)Daily exchange rate against the US dollar, 2020 to 2025
Rice yield in 50 villages in the same seasonAnnual national rice production, 1990 to 2025
Financial ratios of 30 banks in 2024Monthly share price of one company
Regional GDP of all districts in one province in 2025Monthly rainfall at one weather station
Household income from one national survey yearMonthly number of international tourist arrivals

Balanced panel, unbalanced panel, and pooled cross-sections

A balanced panel contains every unit in every period, for example 20 markets × 5 years = 100 complete observations. An unbalanced panel has missing unit-period combinations, for example a market that closed in 2023. Panel estimators handle unbalanced panels, yet the reason for the missing observations should be stated in the methodology, since missing data that are related to the outcome can bias the results.

Pooled cross-sections are different from panel data. They combine several survey rounds, but the units are not the same in each round, for example a farmer survey in 2023 and another in 2025 with different respondents. Pooled cross-sections can show how average conditions changed, yet they cannot follow the same unit over time. Thus, fixed effect estimation is not possible with pooled cross-sections.

How to choose the right data type for a research question

The research question decides the data type, not the other way round. A question of the form “Do farmers with more extension contact earn more?” compares units and is answered with cross-sectional data. A question of the form “Will the price rise next month?” concerns the path of one unit and is answered with time series data. A question of the form “Did the fertilizer subsidy raise yields across provinces after it was introduced?” involves both differences between units and changes over time, and panel data provide the most convincing answer. Consequently, the data collection plan, the sample size calculation, and the analysis plan in a proposal should all follow from this first decision.

Related guides on Catatan Budi: ACF and PACF for SARIMA, heteroscedasticity: detection and fixes, auto ARIMA in Python, and the Granger causality test.

Frequently asked questions

What is cross-sectional data in simple terms?

Cross-sectional data are a snapshot: information collected from many individuals, firms, or regions at the same point or period in time.

What is the difference between time series and cross-sectional data?

Cross-sectional data compare many units at one time, whereas time series data follow one unit across many periods. Cross-sectional data suit the study of relationships between variables; time series data suit the study of trends and forecasting.

Is questionnaire data cross-sectional?

Yes. A questionnaire administered once to a group of respondents produces cross-sectional data. When the same questionnaire is repeated with the same respondents in several periods, the data become panel data.

What is the difference between panel data and time series data?

Time series data have one unit, while panel data have many units, each observed over several periods. Panel data therefore provide many more observations and allow differences between units to be controlled.

How many observations does a panel dataset have?

A balanced panel has N × T observations, where N is the number of units and T the number of periods. For example, 20 sub-districts observed for 5 years give 100 observations.

References

  • Baltagi, B. H. (2021). Econometric Analysis of Panel Data (6th ed.). Springer.
  • Gujarati, D. N., and Porter, D. C. (2009). Basic Econometrics (5th ed.). McGraw-Hill.
  • Wooldridge, J. M. (2020). Introductory Econometrics: A Modern Approach (7th ed.). Cengage.

How to cite this article: Agung Budi Santoso (2026). Cross-Sectional, Time Series, and Panel Data: Differences and Examples. Catatan Budi. https://agungbudisantoso.com/en/cross-sectional-time-series-panel-data/

Photo of Agung Budi Santoso

Written by

Agung Budi Santoso

Lecturer in Management & Agribusiness · Universitas Sumatera Utara

A lecturer and researcher who turns statistics, econometrics, and agribusiness research methods into practical, step-by-step notes for students and researchers.

Discussion

No comments yet. Have a question about this topic? Write it below and I will do my best to answer.

Leave a comment

Your email address will not be published.