1. Home
  2. Explore
  3. Statistics
  4. Descriptive Statistics in R

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Descriptive Statistics in R

  • 25Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Summary Statistics
In the lesson, summary functions are also called
statistics.

25 questions

  1. 1
    In the lesson, summary functions are also called
    _____
    statistics.
    Hint

    This term describes statistics that summarize observed data.

    Answer

    descriptive

    Explanation

    Summary functions produce descriptive statistics, such as averages, maximum values, and counts.

  2. 2
    A calculation that represents the average value of a column is the
    _____
    .
    Hint

    Think of the arithmetic average of the values.

    Answer

    mean

    Explanation

    The mean is used to calculate the average value in a column.

  3. 3
    To identify the largest value in a column, calculate its
    _____
    .
    Hint

    It is the value at the high end of the observed data.

    Answer

    maximum

    Explanation

    The maximum function returns the largest value in a column.

  4. 4
    A summary statistic that reports how many records are present is a
    _____
    .
    Hint

    It answers the question, “How many?”

    Answer

    count

    Explanation

    A count reports the number of records or observations.

  5. 5
    Descriptive statistics are commonly used in education, government, and
    _____
    .
    Hint

    This is the business sector outside government.

    Answer

    private industry

    Explanation

    The lesson notes that descriptive statistics are widely used in education, government, and private industry.

  6. 6
    In the R data-frame workflow shown, summary operations are generally performed on
    _____
    .
    Hint

    These are the vertical parts of a data frame, rather than its horizontal records.

    Answer

    columns

    Explanation

    The examples select columns and calculate summary statistics down those columns.

  7. 7
    The OECD fertility data was imported from an Excel file using the
    _____
    package.
    Hint

    This R package is used to read Excel files.

    Answer

    readxl

    Explanation

    The lesson loads readxl to import the Excel dataset.

  8. 8
    To skip the three header records in the Excel file, the import used a skip value of
    _____
    .
    Hint

    The value is the number of initial records to leave out.

    Answer

    3

    Explanation

    The import skipped the first three records because the file contained header material before the data.

  9. 9
    The import was limited to 42 records using the argument called
    _____
    .
    Hint

    This argument sets the maximum number of rows to read.

    Answer

    n_max

    Explanation

    Setting n_max to 42 reads the 42 data observations while avoiding footer records.

  10. 10
    The second column was renamed to
    _____
    .
    Hint

    This column identifies the nation associated with each row.

    Answer

    country

    Explanation

    The second column was renamed country so the dataset had a meaningful label for each country.

  11. 11
    The selected dataset contained the country column and five decade columns, from 1970 through
    _____
    .
    Hint

    This is the latest decade shown in the selected data.

    Answer

    2010

    Explanation

    The selected decade columns were 1970, 1980, 1990, 2000, and 2010, in addition to country.

  12. 12
    After preparation, the OECD dataset had 42 observations and
    _____
    variables.
    Hint

    There was one country variable plus five decade variables.

    Answer

    six

    Explanation

    The prepared dataset had 42 observations and six variables: country and five decades.

  13. 13
    In dplyr, the function used to create summary values such as a maximum or mean is
    _____
    .
    Hint

    It reduces data to one or more summary results.

    Answer

    summarize()

    Explanation

    The lesson uses dplyr's summarize() function to calculate summary statistics.

  14. 14
    The maximum fertility rate in the 2000 column was approximately
    _____
    .
    Hint

    This is the largest 2000 value reported in the example.

    Answer

    3.12

    Explanation

    Summarizing the 2000 column with the maximum function returned approximately 3.12.

  15. 15
    The country associated with the maximum 2000 fertility rate of about 3.12 was
    _____
    .
    Hint

    It is the country identified by filtering for the maximum value.

    Answer

    India

    Explanation

    Filtering the rows to those whose 2000 value equaled the maximum identified India.

  16. 16
    A summary containing only the maximum value does not identify its country; applying filter() with that maximum can retrieve the matching
    _____
    .
    Hint

    This is the row containing the country and its values.

    Answer

    record

    Explanation

    The maximum summary returned a value but not the corresponding country, so the data was filtered to find the matching record.

  17. 17
    The filter() condition for finding the country at the maximum uses the 2000 value equal to the calculated
    _____
    .
    Hint

    Compare each row's value with the largest value already calculated.

    Answer

    maximum

    Explanation

    The example filters for rows where the 2000 value equals the maximum calculated for that column.

  18. 18
    The average fertility rate in the 2000 column was approximately
    _____
    .
    Hint

    This is the mean reported for all values in that column.

    Answer

    1.76

    Explanation

    Applying the mean function to the 2000 column returned approximately 1.76.

  19. 19
    To find countries below the 2000 average fertility rate, compare each value with the mean using the
    _____
    operator.
    Hint

    This comparison selects values smaller than the average.

    Answer

    less than

    Explanation

    The example uses a less-than comparison to select 2000 values below the mean.

  20. 20
    Comparing each 2000 value to the mean with equality would generally return no rows because the mean is unlikely to equal an observed
    _____
    .
    Hint

    It is one of the entries in the original column.

    Answer

    value

    Explanation

    The mean is calculated from the column and usually is not exactly equal to any individual observed value, so equality is not suitable for finding values below average.

  21. 21
    There were
    _____
    countries below the average fertility rate for 2000.
    Hint

    This is the number of rows returned by the below-average filter.

    Answer

    26

    Explanation

    The filter for 2000 values below the mean returned 26 countries out of 42.

  22. 22
    The arrange() function was used after filtering to order the results by the
    _____
    column.
    Hint

    The same decade column was used for the below-average comparison.

    Answer

    2000

    Explanation

    The filtered results were arranged using the 2000 fertility values.

  23. 23
    In the demonstrated summary, the n() function was used to count the number of
    _____
    .
    Hint

    Each counted item corresponds to a row in the selected data.

    Answer

    records

    Explanation

    The lesson uses n() in summarize() to count records.

  24. 24
    Counting the records in the selected 2000 column returned
    _____
    .
    Hint

    The result matches the number of country observations in the dataset.

    Answer

    42

    Explanation

    The count was 42, matching the dataset's 42 observations.

  25. 25
    Long-term fertility trends can help inform policy outlooks and
    _____
    .
    Hint

    This involves estimating future patterns based on data.

    Answer

    forecasting

    Explanation

    The lesson describes fertility trends as a useful metric for long-term policy outlooks and forecasting.

1 of 25
Question 1 of 25

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent