Reference no: EM132852491
Generate 120 data from a random function using R or Excel. Assume these 120 data are the population data. Select a sample of any 40 data from the 120 data you have just generated.
Run the following R codes in RStudio to generate data randomly. Take the image of data values obtained in RStudio and write the values of the population and sample obtained in a table like the following. Put the image of data values in your solution script.
Generate Population Data runif(120, min=1000000, max=9999999)
Take a photo of the population data obtained in RStudio and display the population data.
Sample Data
Randomly select any 40 data from the 120 you have just generated using R Codes. Display the values of the 40-sample data. Based on the 120-population data and 40 sample data, please answer the following questions:
1. Calculate and display the mean for the 120-population data and the 40-sample data
2. Calculate and display the variance for the 120-population data and the 40-sample data
Please use the above information to solve the following questions
A researcher estimates that the average revenue of the largest businesses in Malaysia is greater than (RMXXXXXXX-This is the mean of 120 population data). A sample of 40 companies is selected, and the revenues are shown in the 40-sample data taken from the 120-population data. At α=0.05, is there enough evidence to support the researcher's claim? Obtain the relevant information from (1) and (2). Please display your answer based on the following structure.
a. State the hypotheses and identify the claim.
b. Find the critical value(s).
c. Compute the test value.
d. Make a decision.
e. Summarize the results.