BaşlayınÜcretsiz Başlayın

Mean vs. median

In the video, you learned that the mean is the sum of all the data points divided by the total number of data points, and the median is the middle value of the dataset where 50% of the data is less than the median, and 50% of the data is greater than the median. In this exercise, you'll compare these two measures of center.

The dplyr and ggplot2 libraries are loaded and food_consumption is available.

Bu egzersiz

Introduction to Statistics in R

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

food_consumption %>%
  # Filter for rice food category
  ___ %>%
  # Create histogram of co2_emission
  ggplot(aes(___)) +
    geom_histogram()
Kodu Düzenle ve Çalıştır