Practicals 2 1. Import the people data frame (used in the first practicals) in R again. Compute means, variances of heights for all people and then for each group defined by the combination of eye color and sex. Compute standard errors of the means for all of the means computed. 2. Imagine, you measure plant height in a field measurement. Population mean is 25.5 cm and standard deviation is 2.4. You take 10 measurements on randomly selected individuals. Simulate this process in R and report the values of sample mean with its standard error and sample variance. What happens with the mean, its standard error and variance if you misplace the decimal point and multiply one of the sampled values by 10. What happens with median? How would the situation look like if the sample was 10 x larger (i.e. 100 measurements were taken)? 3. You toss a coin three times and get head in all cases. What is the likelihood that the coin is fair? If the coin is fair, what is the probability of getting eagle in the next toss. ---------- AB. Imagine that the mean life expectancy in Czech Republic is a normally distributed random variable with mean = 81 and SD = 9. A. What is the probability of each citizen to achieve the age of 100? B. What is the probability to die before 50? CDEF. Assume that height of students follows the normal distribution with mean = 179 cm and variance = 121. C. You are a chair designer. For which height range you should design chairs to be suitable for 99% of students (and the remaining 1% was distributed symmetrically, i.e. the chairs were too small for 0.5% and too big for 0.5%.)? D. You are a chair designer. For which height range you should design chairs not to be too small for 95% of students? E. How many potential basket-ball players (height equal or higher than 200 cm) would you expect in a sample of 550 students? F. What is the probability that a randomly selected student will be tall between 170 and 190 cm? G Assume that the time needed to reach the Brno train station by walking is a normally distributed random variable with mean = 40 and variance = 6. How many minutes before your train leaves, you must leave the campus to have 90% probability to catch the train?