Question:

Question 5 The objective of this question is to give

Last updated: 4/12/2023

Question 5 The objective of this question is to give

Question 5 The objective of this question is to give practice with writing a function with several arguments and creating local objects a Write a function called z prop which calculates the z statistic given the following values arguments x the number of successes n the number of trials p0 the hypothesized population proportion Hint As a reminder the z statistic is given by the formula 2 p Po Po 1 Po where p denotes the sample proportion How is p related to the input arguments b Suppose that 60 of residents in the city of Pawnee Indiana prefer waffles over pancakes Out of a sample of 13 Pawnee residents 10 of them prefer waffles Use your z prop function from a to calculate the z statistic for this sample Hint The input argument p0 is a proportion not a percentage c Interpret the value of the z statistic from b in the context of the data Hint This is a Stats 10 12 13 question d For the same population of Pawnee residents another sample is observed Out of a sample of 39 Pawnee residents 30 of them prefer waffles Use your z prop function from a to calculate the 2 statistic for this How Wh b stiatio abangad12