Sample Data Sets
Statistics and Machine Learning Toolbox™ software includes the sample data sets in the following table.
To load a data set into the MATLAB® workspace, type:
filename is one of the files listed in the
Data sets contain individual data variables, description variables with references, and dataset arrays encapsulating the data set and its description, as appropriate.
|File||Description of Data Set|
|Chemical reaction data with correlated predictors|
|Cardiac arrhythmia data from the UCI machine learning repository|
|Sensor data (voltage, current, and temperature) and state of charge for a Li-ion battery; a subset of the data in |
|Measurements of cars, 1970–1982|
|Subset of |
|Adult data from the UCI machine learning repository|
|Breakfast cereal ingredients|
|Quality of life ratings for U.S. metropolitan areas|
|A version of |
|Exam grades on a scale of 0–100|
|Fisher's 1936 iris data|
|Google Flu Trends estimated ILI (influenza-like illness) percentage for various regions of the US, and CDC weighted ILI percentage based on sentinel provider reports|
|Gasoline prices around the state of Massachusetts in 1993|
|Heat of cement vs. mix of ingredients|
|Bacteria counts in different shipments of milk|
|Simulated hospital data|
|Human activity recognition data of five activities: sitting, standing, walking, running, and dancing|
|1985 Auto Imports Database from the UCI repository|
|Ionosphere dataset from the UCI machine learning repository|
|Four-dimensional clustered data|
|Grade point average and LSAT scores from 15 law schools|
|Mileage data for three car models from two factories|
|Biochemical oxygen demand on five predictors|
|Recognition of Morse code distinctions by non-coders|
|Natural language processing data extracted from the MathWorks® documentation|
|Grouped observations on 4000 predictors |
|Dimensional run-out on 36 circular parts|
|Sample data for polynomial fitting|
|Popcorn yield by popper type and brand|
|Reaction kinetics for Hougen-Watson model|
|NIR spectra and octane numbers of 60 gasoline samples|
|Simulated stock returns|
 Kollmeyer, Phillip, Carlos Vidal, Mina Naguib, and Michael Skells. "LG 18650HG2 Li-ion Battery Data and Example Deep Neural Network xEV SOC Estimator Script." Mendeley 3 (March 2020). https://doi.org/10.17632/CP3473X7XV.3.
 Conrads, Thomas P., Vincent A. Fusaro, Sally Ross, Don Johann, Vinodh Rajapakse, Ben A. Hitt, Seth M. Steinberg, et al. "High-Resolution Serum Proteomic Features for Ovarian Cancer Detection." Endocrine-Related Cancer 11 (2004): 163–78.
 Petricoin, Emanuel F., Ali M. Ardekani, Ben A. Hitt, Peter J. Levine, Vincent A. Fusaro, Seth M. Steinberg, Gordon B. Mills, et al. “Use of Proteomic Patterns in Serum to Identify Ovarian Cancer.” The Lancet 359, no. 9306 (February 2002): 572–77.