Prac 4 QP

You might also like

You are on page 1of 2

SVKM’S NARSEE MONJEE INSTITUTE OF MANAGEMENTS STUDIES (NMIMS) School of Mathematics,

B.Sc Data Science Year II, Semester IIII (2023-24)

Testing and C.I for difference between the population mean and Equality of population
proportion
1.The IQ levels among individuals in two different cities are known to be normally
distributed each with population standard deviations of 15.
City A = 82, 84, 85, 89, 91, 91, 92, 94, 99, 99,105, 109, 109, 109, 110, 112, 112, 113, 114, 114
City B = 90, 91, 91, 91, 95, 95, 99, 99, 108, 109,109, 114, 115, 116, 117, 117, 128, 129, 130,
133
Use Two sample z test to test the mean IQ level is different between the two cities.
2. Lets take IQ levels among boys and girls in 10th class are known to be normally
distributed each with population standard deviations of 25.A teacher wants to know if the
mean IQ level between girls and boys in class are different, so she selects a two random
samples of boys and girls each of size 40 from the class and records their IQ levels. Perform
the two sample z-test in R to determine if the mean IQ level is different between boys and
girls with 5% level of significance.
boys_dataset=79,118,99,117,98,102,112,111,102,73,114,97,114,122,90,115,84,105,84,126,
83,96,111,151,147,103,104,118,132,108,95,118,121,88,94,92,94,109,105,123
girls_dataset=99,128,89,107,99,104,119,112,105,93,84,91,113,129,100,105,94,115,114,106,
113,116,116,131,117,123,134,128,112,101,105,89,101,118,124,72,104,119,145,133
3. The two independent populations taken from two shops in a small town.The first shop A
sells “traditional” lime juice. However the second shop B is selling “Special” Mojito. We
selects the two random sample of sales for each drink(shop) and records their sales for 35
days to determine if sales for “Special” Mojito out performed sales of “traditional” lime juice
at 5% level of significance. The population variances for lime juice sales is 15 and for Mojito
is 12.
lime_juice_sales=56,65,37,47,66,76,75,31,80,45,34,42,42,23,67,47,45,50,45,42,59,34,50,48,
65,41,53,41,36,39,51,69,30,52,42
mojito_sales =51,47,53,40,70,49,63,71,47,62,65,62,56,74,49,33,80,60,46,
65,48,61,54,67,65,48,46,66,52,65,62,59,63,44,50

You might also like