You are on page 1of 2

Numerical analysis Fourth year, statistics

Sheet 8 1- Generate a random sample of size 4 from beta distribution with parameter (p=2, q=3). 2- Generate a random sample of size 5 from normal distribution with mean 4 and variance 9. 3- Machines produce bags of sugar whose weights are normally distributed with mean 1000 and variance 25. Generate a sample of size 10 from this population and calculate its mean and variance. 4- A coin is thrown 5 times independently. When we draw a sample of size 100 and calculate the number of heads in each sample we get the following results. Number of 0 1 2 3 heads Frequency 2 14 20 34 Does the number of heads follows a binomial distribution. 4 22 5 8

5- Generate a random sample of size 4 from binomial distribution (3, 0.4). 6- A coin is thrown 4 times and number of heads is calculated. if we have a sample of size 160.in each sample the observed number of heads was recorded as in the following table. Number of 0 heads frequency 6 Is the coin fair? 7- Using the following table ; Day Sun Mon Tue Wed Number of 23 18 10 25 defective products Can we say that this data follows a uniform distribution? Thu 24 total 100 1 43 2 69 3 34 4 8

8- If we distribute the employers over the new 4 departments A, B, C, and D. test the following H0: p1: p2: p3: p4 = 2/10: 2/10: 3/10: 3/10 H1: not H0

9- If 3 accidents happen every 5 hours on a high way, generate a random sample of size 5 for the number of accidents happen.

You might also like