Analysis · 4 steps

Machine learning

Fit a predictive model such as a random forest and read how well it predicts.

Step by step

Before you start: Load the Iris sample: Data › Sample data › Iris. Getting started shows how.

  1. Choose Random Forest

    Click Multivariate & ML in the menu bar; under Machine Learning choose Random Forest.

  2. Fill in the form

    In What you want to predict, choose species. In Columns that may explain it, choose sepal length (cm), sepal width (cm), petal length (cm) and petal width (cm). Leave the options at their defaults unless you need otherwise.

  3. Run the analysis

    Press Run analysis. The Result Card opens on the Results tab: what to know first, then the interpretation in words and the Key Results.

  4. Find the chart

    Scroll down the Results tab to the chart.

What you should see

A Random Forest card on the Results tab: what to know first, the interpretation in words, the Key Results and, further down, the chart.

Common problems

Results change slightly between runs.

Tree ensembles use random sampling; the card records the settings used. Compare models with Cross-Validated Model Comparison in the Regression menu.

Understand the statistics

Ask Oobi

Type one of these into Ask Oobi beside your data:

  • Which measurements best identify a penguin's species, and how accurate is the prediction on penguins the model never saw?
  • Which measurements best predict a penguin's species, and how accurate is a boosted-tree model on penguins it has never seen?

Last reviewed November 16, 2026.

Report an unclear step