Question
R question 4 Load the countries data set countries.csv. We want to test whether the population size in Africa is the same as the population
R question 4
Load the countries data set "countries.csv". We want to test whether the population size in Africa is the same as the population size in Europe using a two sample t-test. In order to just do the comparison, we will filter the dataset so it only includes Africa and Europe:
library(dplyr)
filtered_countries
a. One of the assumptions of a t-test is that variables are normally distributed. Plot a histogram of "total_population_in_thousands_2015" for both Europe and Africa. Are these normally distributed? WriteYESorNo
b. Let's transform these variables. Which transformation should we use for this data?
c. After applying the correct transformation, does the total population look normally distributed? WriteYESorNo
d. Do a t-test using the appropriate data, report the following values (for both means, report the mean after applying the antilog):
Mean Africa =
Mean Europe =
p-value =
e. Based on your results, look up the critical valueof this comparison. Do you reject or fail to reject the null hypothesis? WriteREJECTorFAIL TO REJECTin the following blank. This question is case sensitive
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started