Statistics is the branch of mathematics that deals with the process of collecting data and using or analyzing it to…