We will use the example of data on prior work experience of participants in a lateral training program. Experience is measured in number of years.
Import the required libraries:
import matplotlib.pyplot as pltimport numpy as np