Question

The Rio data set includes the top 10 medal winning countries from the Rio 2016 Olympics...

The Rio data set includes the top 10 medal winning countries from the Rio 2016 Olympics and how many total medals they won. The data set can be found in the excel file Rio with a variable Medal.

Use RStudio to create a frequency and relative frequency distribution of the variable Medal. Combine both of these distributions in a single table.

Use RStudio to create a frequency bar graph of the medal data. Label the axes properly.

Describe the distribution of top 10 medal winning countries from the Rio 2016 Olympics.

here is data

Medal
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
USA
Australia
Australia
Australia
Australia
Australia
Australia
Australia
Australia
Australia
Australia
Australia
Australia
Australia
Australia
Australia
Australia
Australia
Australia
Australia
Australia
Australia
Australia
Australia
Australia
Australia
Australia
Australia
Australia
Australia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Russia
Canada
Canada
Canada
Canada
Canada
Canada
Canada
Canada
Canada
Canada
Canada
Canada
Canada
Canada
Canada
Canada
Canada
Canada
Canada
Canada
Canada
Canada
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
Japan
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
China
Italy
Italy
Italy
Italy
Italy
Italy
Italy
Italy
Italy
Italy
Italy
Italy
Italy
Italy
Italy
Italy
Italy
Italy
Italy
Italy
Italy
Italy
Italy
Italy
Italy
Italy
Italy
Italy
France
France
France
France
France
France
France
France
France
France
France
France
France
France
France
France
France
France
France
France
France
France
France
France
France
France
France
France
France
France
France
France
France
France
France
France
France
France
France
France
France
France
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Germany
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
Britain
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Sol:

output is

medals.freq medals.relfreq
Canada 22 0.042
Italy 28 0.054
Australia 29 0.056
Japan 41 0.079
France 42 0.081
Germany 42 0.081
Russia 56 0.108
Britain 67 0.129
China 70 0.135
USA 121 0.234

barplot is

Canada Haly AustrBlie Japan France Russia Brite.in China

Rcode is

read thae dta:

Riodata <- read_excel("C:/Riodata.xlsx"

ibrary(MASS)

# load the MASS package

medals= Riodata$Medal

medals.freq = sort(table(medals))

medals.freq

barplot(medals.freq)

colors = c("red", "yellow", "green", "violet", "orange", "blue", "pink", "cyan")

  

barplot(medals.freq, names.arg=c(

"Canada ",

" Italy",

"Australia ",

"Japan",

"France ",

"Germany",

"Russia",

"Britain ",

"China",

"USA"

), ylim=c(0,125), col=colors ,ylab="Number of medals") # apply the barplot function

sum(medals.freq)

22/518

28/518

medals.relfreq = medals.freq / nrow(Riodata)

medals.relfreq

old = options(digits=2)

medals.relfreq

cbind(medals.freq,medals.relfreq)

Add a comment
Know the answer?
Add Answer to:
The Rio data set includes the top 10 medal winning countries from the Rio 2016 Olympics...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 3. The table contains the unemployment rates for 20 countries for August 2014. Construct the following in a single...

    3. The table contains the unemployment rates for 20 countries for August 2014. Construct the following in a single table. Frequency distribution of unemployment rate. b. Relative frequency distribution of unemployment rate. c. Cumulative relative frequency distribution of unemployment rate. a. Use five classes, as follows: 1.00-3.49, 3.50-5.99, 6.00-8.49, 8.50-10.99, 11.00 13.49. Unemployment rate Country Unemployment rate Country 3.7 Britain 6.4 Japan 4.8 Canada 7.0 Mexico 6.2 4.1 Pakistan China 7.0 10.2 Philippines Poland France 12.0 6.7 Germany 4.9 Russia...

  • 3. The table contains the unemployment rates for 20 countries for August 2014. Construct the following in a single...

    3. The table contains the unemployment rates for 20 countries for August 2014. Construct the following in a single table. Frequency distribution of unemployment rate. b. Relative frequency distribution of unemployment rate. c. Cumulative relative frequency distribution of unemployment rate. a. Use five classes, as follows: 1.00-3.49, 3.50-5.99, 6.00-8.49, 8.50-10.99, 11.00 13.49. Unemployment rate Country Country Unemployment rate 3.7 Britain 6.4 Japan Mexico 4.8 Canada 7.0 6.2 4.1 Pakistan China 7.0 10.2 Philippines Poland France 12.0 6.7 Germany 4,9 Russia...

  • 6. The table below contains data on income inequality and infant mortality for 21 OECD countries....

    6. The table below contains data on income inequality and infant mortality for 21 OECD countries. Income inequality is measured as the 20:20 income ratio, which compares the average income for the top 20% of earners to the average income for the bottom 20%. The infant mortality rate refers to infant deaths in the first vear of life. It is measured as the rate per 1,000 live births in the population. Does inequality affect infant mortality across OECD countries? For...

  • Country Suicides/ 100,000 Guatemala 2.5 United Arab Emirates 2.9 Venezuela, RB 3 Algeria 3.1 Lebanon 3.1...

    Country Suicides/ 100,000 Guatemala 2.5 United Arab Emirates 2.9 Venezuela, RB 3 Algeria 3.1 Lebanon 3.1 Myanmar 4.3 Greece 4.3 Mexico 5 Israel 5.5 Tunisia 5.5 Peru 5.8 Malta 6 Colombia 6.1 Brazil 6.3 Kenya 6.5 Ghana 6.9 Ecuador 7.5 Italy 7.9 Ethiopia 8.4 Spain 8.5 United Kingdom 8.5 Turkey 8.7 Burkina Faso 9.2 Nicaragua 9.5 China 10 Norway 10.9 Luxembourg 11.1 Ireland 11.7 Australia 11.8 New Zealand 11.9 Denmark 12.2 Canada 12.3 Netherlands 12.6 Iceland 13.1 Germany 13.4 Portugal...

  • Q: The table shows the 2013 per capita total expenditure on health in 3535 countries with...

    Q: The table shows the 2013 per capita total expenditure on health in 3535 countries with the highest gross domestic product in that year. Health expenditure per capita is the sum of public and private heath expenditure (in PPP, international $) divided by population. Health expenditures include the provision of health services, family‑planning activities, nutrition activities, and emergency aid designated for health but exclude the provision of water and sanitation. Per capita total expenditure on health (international dollars) Country Dollars...

  • The table showe the 2013 per capita total expenditure on health in 35 countries with the...

    The table showe the 2013 per capita total expenditure on health in 35 countries with the highest gross domestic product tn that year Health expenditure per capita is the eum of public and private heath expenditure (tn PFF, intermational $) divided by population. Health expendituree include the provision of health services, farmily planning actrvities, nutrition activities, and emergency aid deei gnated for health but exclude the provision of water and sanitation. Per capita total expenditure on health (international dollars) Country...

  • HI, I need help with this question. Please answer in details. The data set is found below for eac...

    HI, I need help with this question. Please answer in details. The data set is found below for each countries sugar consumption. Thanks! Country,Sugar, GDP, Continent Albania,15.3,4556.144342, Europe Argentina, 38.1,13693.70379, South America Armenia, 33.2,3421.704509, Europe Australia, 34.1, 62080.98242, Europe Austria, 37.9,49485.48219, Europe Azerbaijan,13.9,7189.691229, Europe Belarus,31.8,6305.773662, Europe Belgium, 41.4,46463.60378, Europe Bosnia and Herzegovina,13.4,4754.197861, Europe Brazil, 36.5,12576.19559, South America Canada, 31.3,51790.56695, North America Chile, 41.7,14510.9661, South America China, 6.2,5447.309378,Asia Colombia,23.2, 7124.54892, South America Czech Republic, 30.6,20584.92655, Europe Denmark, 38,59911.90466,Europe Egypt, 26.4,2972.583516,Africa Estonia,31.4,16982.30031,...

  • a) Why do you think we choose to measure emissions per person rather than total CO2...

    a) Why do you think we choose to measure emissions per person rather than total CO2 emissions for each country? b) Make a stemplot to display the data. c) Describe shape, center, spread of the distribution d) Use the 1.5xIQR rule to determine the possible outliers. List the outliers. Show all work. e) No visually, using the stemplot you created, what are the additional outlier(s)? Discusses why you chose these outlier(s) f) In this case, is it better to use...

  • Below are descriptions of some research studies. Each description contains sufficient information to determine the correct...

    Below are descriptions of some research studies. Each description contains sufficient information to determine the correct statistical test to use. Your task is 1) to determine which is the correct test, 2) to perform that test using our five-step hypothesis testing procedure, and 3) to make a decision about the null hypothesis using the results of the test. Choose your tests from these options: single-sample i test dependent-measures / test independent-measures t test Please report your answers in the following...

  • HI, I need help with answering these questions. Please explain and answer all parts. Data for all...

    HI, I need help with answering these questions. Please explain and answer all parts. Data for all the countries and then the question at the bottom. Sugar Consumption Per Capita.csv Country Albania Argentina Armenia Australia Austria Azerbaijan Belarus Belgium Bosnia and Herzegovina 13.4 4754.197861 Europe Brazil Canada Chile China Colombia Czech Republic Denmark Egypt Estonia Finland France Georgia Germany Ghana Greece Hungary Iceland India Indonesia Iran Sugar GDP Continent 15.3 4556.144342 Europe 38.1 13693.70379 South America 33.2 3421.704509 Europe 34.1...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT