You are on page 1of 11

ME323

Assignment - 2
Group - 02
Members :-
Abhay Pratap Singh, 160103002
Abhishek Tiwari, 160103003
Abhishek Verma, 160103004
Solution 1
MATLAB Code for Q1.
Solution 2 : Plot
Solution 2
Given, sum of numbers on the two dices and their frequencies.

Lets, take x = [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]

and f = [32 100 116 168 212 220 184 156 116 88 48]

Now, mean,

and standard deviation,

For the data given in question, mean = 6.9861 and standard deviation = 2.4712

Then, lets define a normal distribution with the above mean and standard deviation

as
Show test is true at 99% confidence
level.
Using Chi-Square Goodness of Fit,

Taking the Null Hypothesis : the frequencies match,

And the Alternative Hypothesis : the do not match,

Then,

Here, v = k - 1 = 11 - 1 = 10.
Sum Observed Frequency, Expected Frequency, Absolute Difference
O E

2 32 40 8

3 100 80 20

4 116 120 4

5 168 160 8

6 212 200 12

7 220 240 20

8 184 200 16

9 156 160 4

10 116 120 4

11 88 80 8

12 48 40 8
For 99% Confidence level, significance = 1.00 - 0.99 = 0.01

Now,

And,

Since,

The test is TRUE at 99% Confidence Level.


Solution 3 : part 1
Using t-Statistic for small size sample, n = 14.

We find mean and standard deviation,

Also, using

Where,

Now, for 95 % Confidence Level, significance = 1.00 - 0.95 = 0.05


So, The confidence interval will be

With,
With,

We get,

Or
Solution 3 : part 2
Taking Null Hypothesis,

And alternative hypothesis

We have,

I.e

Now, with 99% Confidence Level

Also,

Since,

Null Hypothesis is TRUE.

You might also like