The car data are observations from cars selling on North American market. Five variables were collected for each car: Weight,…