Statistic homework

see the attachments.