Descriptive Statistics in R
- 25Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
25 questions
- 1In 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.
- 2A 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.
- 3To 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.
- 4A 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.
- 5Descriptive 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.
- 6In 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.
- 7The 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.
- 8To 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.
- 9The 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.
- 10The 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.
- 11The 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.
- 12After 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.
- 13In 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.
- 14The 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.
- 15The 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.
- 16A 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.
- 17The_____
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.
- 18The 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.
- 19To 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.
- 20Comparing 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.
- 21There 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.
- 22The_____
arrange()function was used after filtering to order the results by thecolumn.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.
- 23In 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.
- 24Counting 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.
- 25Long-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.

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