Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In the US, 12.15% of the total population lives in CA, 8.62% in TX, 6.38% in FL, 6.11% in NY, 3.96% in IL, the rest

image text in transcribed

In the US, 12.15% of the total population lives in CA, 8.62% in TX, 6.38% in FL, 6.11% in NY, 3.96% in IL, the rest 62.78% in the other 45 states. (Source: https://www.civicdashboards.com/stateew-york-04000US36/percent_of_us_population) A sample of population has been taken from all over the country. The ratio of people in the sample from different states is as follows: 7% from CA, 2% from TX, 6% from FL, 7% from NY, 2% from IL and 76% from the other states. We need to verify whether the selection of people in the sample is random. a. You will need to create random samples based on the categorical distribution. Which function you will use to generate random samples based on the categorical distribution? Write the function with proper arguments b. You need a statistical parameter to compare the categorical distribution in the samples with the categorical distribution of the population. What will be the appropriate statistical parameter for this purpose? Calculate the value of that parameter for the actual sample that we have. C. You need to repeat the above process for several thousand times. At the end, you will have a plot that will help you to make decision about the actual sample (whether it is random or not). What type of plot is that? d. What will be your decision if the outcomes of your data analysis is: The p-value for the value of the statistic that you calculated in step bis 0.4% The p-value for the value of the statistic that you calculated in step bis 35% In the US, 12.15% of the total population lives in CA, 8.62% in TX, 6.38% in FL, 6.11% in NY, 3.96% in IL, the rest 62.78% in the other 45 states. (Source: https://www.civicdashboards.com/stateew-york-04000US36/percent_of_us_population) A sample of population has been taken from all over the country. The ratio of people in the sample from different states is as follows: 7% from CA, 2% from TX, 6% from FL, 7% from NY, 2% from IL and 76% from the other states. We need to verify whether the selection of people in the sample is random. a. You will need to create random samples based on the categorical distribution. Which function you will use to generate random samples based on the categorical distribution? Write the function with proper arguments b. You need a statistical parameter to compare the categorical distribution in the samples with the categorical distribution of the population. What will be the appropriate statistical parameter for this purpose? Calculate the value of that parameter for the actual sample that we have. C. You need to repeat the above process for several thousand times. At the end, you will have a plot that will help you to make decision about the actual sample (whether it is random or not). What type of plot is that? d. What will be your decision if the outcomes of your data analysis is: The p-value for the value of the statistic that you calculated in step bis 0.4% The p-value for the value of the statistic that you calculated in step bis 35%

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Accounting questions

Question

What is the speed v T O of the plane as it takes off?

Answered: 1 week ago