If all the values of the data are not equally important, a weighted arithmetic mean is calculated after assigning appropriate…