encyclopegia.org

Iris flower data set

of the data set The Iris flower data set or Fisher's Iris data set is a multivariate data set used and made famous by the British statistician and biologist Ronald Fisher in his 1936 paper The use of multiple measurements in taxonomic problems as an example of linear discriminant analysis.[src] It is sometimes called Anderson's Iris data set because Edgar Anderson collected the data to quantify the morphologic variation of Iris flowers of three related species.[src] Two of the three species were collected in the Gaspé Peninsula "all from the same pasture, and picked on the same day and measured at the same time by the same person with the same apparatus".[src] The data set consists of 50 samples from each of three species of Iris (Iris setosa, Iris virginica and Iris versicolor).[src] Four features were measured from each sample: the length and the width of the sepals and petals, in centimeters.[src] Based on the combination of these four features, Fisher developed a linear discriminant model to distinguish each species.[src] Fisher's paper was published in the Annals of Eugenics (today the Annals of Human Genetics).[src]

of the data set]] The Iris flower data set or Fisher's Iris data set is a multivariate data set used and made famous by the British statistician and biologist Ronald Fisher in his 1936 paper The use of multiple measurements in taxonomic problems as an example of linear discriminant analysis.[src] It is sometimes called Anderson's Iris data set because Edgar Anderson collected the data to quantify the morphologic variation of Iris flowers of three related species.[src] Two of the three species were collected in the Gaspé Peninsula "all from the same pasture, and picked on the same day and measured at the same time by the same person with the same apparatus".[src] The data set consists of 50 samples from each of three species of Iris (Iris setosa, Iris virginica and Iris versicolor).[src] Four features were measured from each sample: the length and the width of the sepals and petals, in centimeters.[src] Based on the combination of these four features, Fisher developed a linear discriminant model to distinguish each species.[src] Fisher's paper was published in the Annals of Eugenics (today the Annals of Human Genetics).[src] ==Use of the data set== (the data cannot be clustered into the known classes) and actual species visualized using ELKI ]] Originally used as an example data set on which Fisher's linear discriminant analysis was applied, it became a typical test case for many statistical classification techniques in machine learning such as support vector machines.[src] The use of this data set in cluster analysis however is not common, since the data set only contains two clusters with rather obvious separation.[src] One of the clusters contains Iris setosa, while the other cluster contains both Iris virginica and Iris versicolor and is not separable without the species information Fisher used.[src] This makes the data set a good example to explain the difference between supervised and unsupervised techniques in data mining: Fisher's linear discriminant model can only be obtained when the object species are known: class labels and clusters are not necessarily the same.[src] Nevertheless, all three species of Iris are separable in the projection on the nonlinear and branching principal component.[src] The data set is approximated by the closest tree with some penalty for the excessive number of nodes, bending and stretching.[src] Then the so-called "metro map" is constructed.[src] The data points are projected into the closest node.[src] For each node the pie diagram of the projected points is prepared.[src] The area of the pie is proportional to the number of the projected points.[src] It is clear from the diagram (left) that the absolute majority of the samples of the different Iris species belong to the different nodes.[src] Only a small fraction of Iris-virginica is mixed with Iris-versicolor (the mixed blue-green nodes in the diagram).[src] Therefore, the three species of Iris (Iris setosa, Iris virginica and Iris versicolor) are separable by the unsupervising procedures of nonlinear principal component analysis.[src] To discriminate them, it is sufficient just to select the corresponding nodes on the principal tree.[src] ==Data set== ]]The data set contains a set of 150 records under five attributes: sepal length, sepal width, petal length, petal width and species.[src] ]] ]] The iris data set is widely used as a beginner's data set for machine learning purposes.[src] The data set is included in R base and Python in the machine learning library scikit-learn, so that users can access it without having to find a source for it.[src] Several versions of the data set have been published.[src] ===R code illustrating usage=== The example R code shown below reproduce the scatterplot displayed at the top of this article: Show the data set iris Show the help page, with information about the data set ?iris Create scatterplots of all pairwise combination of the 4 variables in the data set pairs(iris[1:4], main="Iris Data (red=setosa,green=versicolor,blue=virginica)", pch=21, bg=c("red","green3","blue")[unclass(iris$Species)]) Alternatively using ggplot and ggally.[src] install.packages(c("ggplot2","GGally")) # install packages if you don't have it.[src] Load libraries.[src] library(ggplot2) library(GGally) Plot scatter plot matrix for the iris data set ggpairs(data = iris, # your iris data columns = 1:4, # columns for the scatter plot mapping = aes(colour = Species,fill = Species), title = 'Scatter Plot Matrix for Iris Data Set', ) + theme(plot.title = element_text(hjust = 0.5,face = 'bold')) + scale_color_brewer(palette = 'Set1') ===Python code illustrating usage=== from sklearn.datasets import load_iris iris = load_iris() print(iris) This code gives: {'data': array([[5.1, 3.5, 1.4, 0.2], [4.9, 3., 1.4, 0.2], [4.7, 3.2, 1.3, 0.2], [4.6, 3.1, 1.5, 0.2],...[src] 'target': array([0, 0, 0, ...[src] 1, 1, 1, ...[src] 2, 2, 2, ...[src] 'target_names': array(['setosa', 'versicolor', 'virginica'], dtype=' ==See also== Classic data sets List of datasets for machine-learning research ==References== ==External links==[src]

40 sentences · 40 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Iris flower data set." encyclopegia.org, 2026, https://encyclopegia.org/wiki/iris-flower-data-set. Accessed 30 November 2026.

Chicago

"Iris flower data set." encyclopegia.org. Accessed November 30, 2026. https://encyclopegia.org/wiki/iris-flower-data-set.

APA

encyclopegia.org. (2026). Iris flower data set. Retrieved November 30, 2026, from https://encyclopegia.org/wiki/iris-flower-data-set

Accessed November 30, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

flower

stub · references available

Iris Tabeling

stub · references available

Iris Kammerer

stub · references available

artificial flower

stub · references available

Iris spuria

stub · references available

digital data

stub · references available

Iris

stub · references available

Enhanced Data Rates for GSM Evolution

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1371261070 · 0.5 · snapshot enwiki-001371261070

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.