You are on page 1of 2

A researcher is interested in knowing whether the performance of the firms belonging to the

automobile sector is independent of the location of the firm. She developed a measure of
performance on a nominal scale from 1 to 3. 1 representing loss, 2 represents Break even and 3
represents profit. The location of the firm was put in one of the following category- 1 representing
low- and middle-income countries and 2 represents high income countries. The data on these two
variables, collected for 45 corporations for a particular year is give below:

Firm Location Performance Firm Location Performance


1 1 1 23 1 3
2 1 1 24 2 1
3 1 1 25 2 1
4 1 1 26 2 1
5 1 1 27 2 1
6 1 1 28 2 1
7 1 2 29 2 2
8 1 2 30 2 2
9 1 2 31 2 2
10 1 2 32 2 2
11 1 2 33 2 2
12 1 3 34 2 2
13 1 3 35 2 2
14 1 3 36 2 2
15 1 3 37 2 3
16 1 3 38 2 3
17 1 3 39 2 3
18 1 3 40 2 3
19 1 3 41 2 3
20 1 3 42 2 3
21 1 3 43 2 3
22 1 3 44 2 3
45 2 3

A reseracher wants ro find the relationship between the dependent and Independent variable. Age
was taken as the independent variable and choice of a drink as dependent variable.

Input data table

Sl.No Age Age code Soft drink Drink code


1 <15 1 Fruit juice 6
2 <15 1 Sprite 4
3 <15 1 Mirinda 3
4 <15 1 Pepsi 2
5 <15 1 Fruit juice 6
6 16-25 2 Coke 1
7 16-25 2 Slice 5
8 16-25 2 Coke 1
9 16-25 2 Pepsi 2
10 16-25 2 Mirinda 3
11 26-35 3 Slice 5
12 26-35 3 Sprite 4
13 26-35 3 Fruit juice 6
14 26-35 3 Pepsi 2
15 26-35 3 Slice 5
16 36-45 4 Mirinda 3
17 36-45 4 Fruit juice 6
18 36-45 4 Fruit juice 6
19 36-45 4 Slice 5
20 36-45 4 Pepsi 2
21 46-55 5 Coke 1
22 46-55 5 Sprite 4
23 46-55 5 Slice 5
24 46-55 5 Fruit juice 6
25 46-55 5 Slice 5
26 >55 6 Mirinda 3
27 >55 6 Coke 1
28 >55 6 Coke 1
29 >55 6 Pepsi 2
30 >55 6 Fruit juice 6

You might also like