Statistics and Maths, Study notes of Statistics

Matrices, Probability, Optimization

Typology: Study notes

2025/2026

Uploaded on 03/04/2026

norman-nigel
norman-nigel ๐Ÿ‡ฎ๐Ÿ‡ณ

4 documents

1 / 8

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Solved examples on Analysis of Variance (ANOVA)
One Way ANOVA
If there are three samples ๐‘‹1,๐‘‹2 and ๐‘‹3 having values as follows:
๐‘ฟ๐Ÿ
๐‘ฟ๐Ÿ
๐‘ฟ๐Ÿ‘
๐‘ฅ11
๐‘ฅ21
๐‘ฅ31
๐‘ฅ12
๐‘ฅ22
๐‘ฅ32
๐‘ฅ13
๐‘ฅ23
๐‘ฅ33
โ‹ฎ
โ‹ฎ
โ‹ฎ
To test the null hypothesis ๐ป0:๐œ‡1= ๐œ‡2= ๐œ‡3 , we compute the following values.
1.
๐‘‡ = โˆ‘ โˆ‘๐‘ฅ๐‘–๐‘—
๐‘—๐‘– (๐‘ ๐‘ข๐‘š ๐‘œ๐‘“ ๐‘Ž๐‘™๐‘™ ๐‘กโ„Ž๐‘’ ๐‘’๐‘›๐‘ก๐‘Ÿ๐‘–๐‘’๐‘ )
Total Sum
2.
๐‘†๐‘†๐‘‡ = โˆ‘โˆ‘ ๐‘ฅ๐‘–๐‘—
2
๐‘—๐‘– โˆ’๐‘‡2
๐‘
(๐‘ = ๐‘ก๐‘œ๐‘ก๐‘Ž๐‘™ ๐‘›๐‘ข๐‘š๐‘๐‘’๐‘Ÿ ๐‘œ๐‘“ ๐‘‘๐‘Ž๐‘ก๐‘Ž)
Total sum of squares of
variation
3.
๐‘†๐‘†๐ถ =(โˆ‘๐‘ฅ1๐‘—๐‘— )2
๐‘›1+(โˆ‘๐‘ฅ2๐‘—๐‘— )2
๐‘›2+(โˆ‘๐‘ฅ3๐‘—๐‘— )2
๐‘›3โˆ’๐‘‡2
๐‘
(๐‘›๐‘–= ๐‘›๐‘ข๐‘š๐‘๐‘’๐‘Ÿ ๐‘œ๐‘“ ๐‘‘๐‘Ž๐‘ก๐‘Ž ๐‘–๐‘› ๐‘‹๐‘–)
Sum of square of variation
between the columns
4.
๐‘†๐‘†๐ธ =๐‘†๐‘†๐‘‡ โˆ’๐‘†๐‘†๐ถ
Sum of squares of
variation within the
columns
ANOVA TABLE
Source of
variation
Sum of
squares
Mean squares
๐‘ญ
Between Samples
๐‘†๐‘†๐ถ
๐‘€๐‘†๐ถ = ๐‘†๐‘†๐ถ
๐œˆ1
๐น๐‘๐‘Ž๐‘™ =๐‘€๐‘†๐ถ
๐‘€๐‘†๐ธ
Within samples
(Errors)
๐‘†๐‘†๐ธ
๐‘€๐‘†๐ธ = ๐‘†๐‘†๐ธ
๐œˆ2
We use the following table to find the table value of ๐น at ๐œˆ1,๐œˆ2 degrees of freedom.
If ๐น๐‘๐‘Ž๐‘™ < ๐น0.05(๐œˆ1,๐œˆ2), then we accept the null hypothesis (i.e., ๐œ‡1= ๐œ‡2= ๐œ‡3) at 5% LOS.
Otherwise, we reject the null hypothesis.
pf3
pf4
pf5
pf8

Partial preview of the text

Download Statistics and Maths and more Study notes Statistics in PDF only on Docsity!

Solved examples on Analysis of Variance (ANOVA)

One Way ANOVA

If there are three samples ๐‘‹

1

2

and ๐‘‹

3

having values as follows:

๐Ÿ

๐Ÿ

๐Ÿ‘

11

21

31

12

22

32

13

23

33

To test the null hypothesis ๐ป 0

1

2

3

, we compute the following values.

๐‘–๐‘—

๐‘– ๐‘—

Total Sum

๐‘–๐‘—

2

๐‘– ๐‘—

2

Total sum of squares of

variation

๐‘— 1 ๐‘—

2

1

๐‘— 2 ๐‘—

2

2

๐‘— 3 ๐‘—

2

3

2

๐‘–

๐‘–

Sum of square of variation

between the columns

Sum of squares of

variation within the

columns

ANOVA TABLE

Source of

variation

Sum of

squares

Degrees of freedom Mean squares ๐‘ญ

Between Samples ๐‘†๐‘†๐ถ

1

1 ๐น

๐‘๐‘Ž๐‘™

Within samples

(Errors)

2

2

We use the following table to find the table value of ๐น at ๐œˆ 1

2

degrees of freedom.

If ๐น

๐‘๐‘Ž๐‘™

  1. 05

1

2

), then we accept the null hypothesis (i.e., ๐œ‡

1

2

3

) at 5% LOS.

Otherwise, we reject the null hypothesis.

Challenge 0 2 : To test the significance of variation of retail prices of a commodity in three

principal cities: Mumbai, Kolkata and Delhi, four shops were chosen at random

from each city and prices observed in rupees were as follows:

Do the data indicate that the prices of the commodity in the three cities are

significantly different.

Solution: Null Hypothesis ๐ป 0

1

2

3

Totalโ†’ 58 48 38

i. ๐‘‡ = โˆ‘ โˆ‘ ๐‘ฅ

๐‘– ๐‘— ๐‘–๐‘—

ii. ๐‘†๐‘†๐‘‡ =

๐‘–๐‘—

2

๐‘– ๐‘—

๐‘‡

2

๐‘

144

2

12

iii. ๐‘†๐‘†๐ถ =

(โˆ‘ ๐‘ฅ

๐‘— 1 ๐‘—

)

2

๐‘›

1

(โˆ‘ ๐‘ฅ

๐‘— 2 ๐‘—

)

2

๐‘›

2

(โˆ‘ ๐‘ฅ

๐‘— 3 ๐‘—

)

2

๐‘›

3

๐‘‡

2

๐‘

58

2

4

48

2

4

38

2

4

iv. ๐‘†๐‘†๐ธ = ๐‘†๐‘†๐‘‡ โˆ’ ๐‘†๐‘†๐ถ = 136 โˆ’ 50 = 86.

ANOVA TABLE

Source of

variation

Sum of

squares

Degrees of freedom Mean squares ๐‘ญ

Between Samples ๐‘†๐‘†๐ถ = 50

1

1

๐‘๐‘Ž๐‘™

Within samples

(Errors)

2

= 3 ร— 3 = 9

2

Now, ๐น

  1. 05

( 2 , 9 ) = 4. 26. Here ๐น

๐‘๐‘Ž๐‘™

  1. 05

We accept the null hypothesis. Hence, the prices of the commodity in the three

cities are not significantly different.

More problems on One Way ANOVA.

  1. Three samples each of size 5 were drawn and the following data was observed. Test the

hypothesis that the population mean are equal.

Challenge 0 1: A farmer applies three types of fertilisers on 4 separate plots. The figures on yield

per acre are tabulated as following.

Find out if the plots are materially different and if the fertilisers make any

material difference.

Solution: Null hypothesis ๐ป 0

: a) Plots do not differ materially

b) The fertilisers do not differ materially.

i. ๐‘‡ = โˆ‘ โˆ‘ ๐‘ฅ

๐‘– ๐‘— ๐‘–๐‘—

ii. ๐‘†๐‘†๐‘‡ =

๐‘–๐‘—

2

๐‘– ๐‘—

๐‘‡

2

๐‘

84

2

12

iii. ๐‘†๐‘†๐ถ =

(โˆ‘ ๐‘ฅ ๐‘— 1 ๐‘—

)

2

๐‘›

1

(โˆ‘ ๐‘ฅ ๐‘— 2 ๐‘—

)

2

๐‘›

2

(โˆ‘ ๐‘ฅ ๐‘— 3 ๐‘—

)

2

๐‘›

3

(โˆ‘ ๐‘ฅ ๐‘— 4 ๐‘—

)

2

๐‘›

4

๐‘‡

2

๐‘

21

2

3

15

2

3

24

2

3

24

2

3

iv. ๐‘†๐‘†๐‘… =

(โˆ‘ ๐‘ฅ

๐‘– ๐‘– 1

)

2

๐‘š

1

(โˆ‘ ๐‘ฅ

2 ๐‘– 2

)

2

๐‘š

2

(โˆ‘ ๐‘ฅ

๐‘– ๐‘– 3

)

2

๐‘š

3

๐‘‡

2

๐‘

24

2

4

28

2

4

32

2

4

v. ๐‘†๐‘†๐ธ = ๐‘†๐‘†๐‘‡ โˆ’ ๐‘†๐‘†๐ถ โˆ’ ๐‘†๐‘†๐‘… = 36 โˆ’ 18 โˆ’ 8 = 10.

ANOVA TABLE

Source of

variation

Sum of

squares

Degrees of freedom Mean squares ๐‘ญ

Between Samples ๐‘†๐‘†๐ถ = 18

1

1

๐‘

๐‘Ÿ

Between the rows ๐‘†๐‘†๐‘… = 8

2

2

Within samples

(Errors)

2

3

Now, ๐น

  1. 05

= 4. 76 and ๐น

  1. 05

Here ๐น

๐‘

  1. 05

( 3 , 6 ) and ๐น

๐‘Ÿ

  1. 05

( 2 , 6 ). Hence we accept the null hypothesis.

Plots

Fertilisers

๐‘จ ๐‘ฉ ๐‘ช ๐‘ซ Total

More problems:

  1. Set up a two-way ANOVA table for the following per hectare yield for 4 varieties of

yield of rice on 3 plots.

Yield

Plot