1. Home
  2. Explore
  3. Statistics
  4. R Statistics and Machine Learning

Study methods

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

R Statistics and Machine Learning

  • 117Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Programming Rationale
The ability to understand, process, extract value from, visualize, and communicate data is described as an increasingly important
.

117 questions

  1. 1
    The ability to understand, process, extract value from, visualize, and communicate data is described as an increasingly important
    _____
    .
    Hint

    Think of a capability that helps people make useful sense of information.

    Answer

    skill

    Explanation

    The speaker emphasizes analytic skill as important across professional, college, and school settings because people need to understand data and extract value from it.

  2. 2
    In evidence-based and open science practice, research procedures and results should be
    _____
    so that they can be checked and repeated.
    Hint

    Consider whether another researcher could follow the same process and obtain the results.

    Answer

    reproducible

    Explanation

    Reproducibility means making the analysis process clear enough that the work can be repeated using the data and procedures.

  3. 3
    Using one programming language to combine data preprocessing and analysis can improve the
    _____
    of research results.
    Hint

    A unified workflow helps others repeat the same steps.

    Answer

    reproducibility

    Explanation

    Programming can bring data preprocessing and analysis together in one workflow, helping ensure that procedures and results can be reproduced.

  4. 4
    Programming can reduce repetitive menu-based work by enabling the
    _____
    of preprocessing, analysis, and graph creation.
    Hint

    This benefit is especially useful when repeating analyses for subgroups or complex methods.

    Answer

    automation

    Explanation

    Automation lets a program run repeated preprocessing, analyses, and graph creation without requiring the user to repeat the same clicks.

  5. 5
    A programming script communicates the analysis steps more clearly than relying on a researcher to remember a sequence of software menu
    _____
    .
    Hint

    Think of the repeated actions involved in menu-based software.

    Answer

    clicks

    Explanation

    A script records the process, making it easier for others to see how results were obtained and to run the analysis themselves.

  6. 6
    R is free and
    _____
    source, meaning people can contribute to its development.
    Hint

    The missing word describes software whose code and development are openly accessible.

    Answer

    open

    Explanation

    R is free and open source; the speaker notes that contributions from the community help develop the language and its tools.

  7. 7
    The large R user community makes it easier to find solutions to problems and access newly contributed packages and statistical
    _____
    .
    Hint

    These contributions can include recently developed approaches for analyzing data.

    Answer

    methodology

    Explanation

    A large community contributes updates, packages, and statistical methodology, and users can often find solutions to problems online.

  8. 8
    R's scripting nature supports communication, reproducibility, and
    _____
    of repeated analysis tasks.
    Hint

    This is the benefit of having a script execute a procedure for you.

    Answer

    automation

    Explanation

    Because R is a scripting programming language, it can document procedures, make them repeatable, and automate them.

  9. 9
    R is highly flexible because users can customize its behavior and write new functions or
    _____
    .
    Hint

    These are step-by-step computational methods that can be implemented in a project.

    Answer

    algorithms

    Explanation

    The speaker describes R as flexible and extensible: users can customize it and implement new functions or algorithms.

  10. 10
    R was written specifically for
    _____
    purposes, making it suitable for the workshop's statistical analyses.
    Hint

    This field focuses on collecting, analyzing, and interpreting data.

    Answer

    statistics

    Explanation

    R is presented as a language specifically written for statistics, which makes it a good fit for the analyses in the workshop.

  11. 11
    R's availability on Mac, Windows, and Linux allows researchers to use a shared platform and reduce errors at the
    _____
    level.
    Hint

    The speaker links this type of error reduction to everyone being able to run the same software across operating systems.

    Answer

    systematic

    Explanation

    R runs on multiple operating systems, allowing researchers to work with the same platform and potentially reduce systematic-level errors.

  12. 12
    Although Python was ranked above R in one cited survey, the speaker notes that survey rankings can depend on the
    _____
    being surveyed.
    Hint

    Different groups of practitioners may report different tool preferences.

    Answer

    community

    Explanation

    The speaker says rankings vary between surveys and depend on the community; the broader point is that R and Python are commonly used in data science.

  13. 13
    R is a programming language, while RStudio is an integrated development
    _____
    that brings development tools together in one interface.
    Hint

    The initials IDE refer to this kind of software environment.

    Answer

    environment

    Explanation

    R itself is a scripting language; RStudio is an interactive development environment that integrates tools for working with R.

  14. 14
    RStudio is useful because it provides an interface for working with R rather than requiring all work to be done only through the
    _____
    .
    Hint

    This is the text-based interface where users enter commands directly.

    Answer

    command line

    Explanation

    R is a scripting language without its own application interface, so RStudio provides a more integrated way to work with commands and scripts.

  15. 15
    The RStudio pane where users write and edit scripts without directly running each line as they type is the
    _____
    .
    Hint

    This pane behaves like a text file for writing code.

    Answer

    Text Editor

    Explanation

    The Text Editor is where users can enter and edit script text; the Console is where R commands are executed.

  16. 16
    The RStudio pane that accepts and executes commands written in the R language is the
    _____
    .
    Hint

    It functions as R's command-line window.

    Answer

    Console

    Explanation

    The Console is the command-line interface in which users enter R commands and receive results.

  17. 17
    In RStudio, the
    _____
    displays variables in the global environment.
    Hint

    This area gives information about variables that have been created or loaded.

    Answer

    Workspace

    Explanation

    The Workspace shows information about variables in the global environment, as well as related information such as paths.

  18. 18
    RStudio's Files, Help, and
    _____
    Window can display plots and other outputs.
    Hint

    This pane is where visual output appears.

    Answer

    Plotting

    Explanation

    The Files, Help, and Plotting Window includes an area where plots and other outputs can be viewed.

  19. 19
    In R, entering an arithmetic expression in the Console and pressing Enter returns the
    _____
    .
    Hint

    For example, adding 14 and 3 produces this value.

    Answer

    result

    Explanation

    R can act like a calculator: when an arithmetic expression is entered in the Console, it evaluates the expression and returns its result.

  20. 20
    In R, the operator used to raise a number to a power is
    _____
    .
    Hint

    The speaker demonstrates it by raising 3 to the third power.

    Answer

    ^

    Explanation

    The caret operator performs exponentiation in R; for example, 3 raised to the third power evaluates to 27.

  21. 21
    The R function used to calculate a square root is
    _____
    .
    Hint

    Its name abbreviates the mathematical operation it performs.

    Answer

    sqrt

    Explanation

    The sqrt function calculates a square root; the speaker demonstrates it with a numeric input.

  22. 22
    In R, the expression 50 == 50 + 1 evaluates to
    _____
    because the two sides are not equal.
    Hint

    The double-equals operator checks equality.

    Answer

    False

    Explanation

    The equality test is false because 50 is not equal to 51.

  23. 23
    R's case sensitivity means that X and x are treated as
    _____
    names.
    Hint

    Changing capitalization can cause R to look for a different object.

    Answer

    different

    Explanation

    R distinguishes uppercase and lowercase letters, so an object named X is not the same as an object named x.

  24. 24
    R is described as an object-oriented programming language with two broad object types: data and
    _____
    .
    Hint

    These objects act on data and produce results.

    Answer

    functions

    Explanation

    The speaker introduces data objects for storing information and function objects that act on data to produce results.

  25. 25
    An R object used to store information, such as a person's height, is a
    _____
    .
    Hint

    Values can be assigned to a named container of this kind.

    Answer

    variable

    Explanation

    A variable stores information in R; later commands can use that stored value.

  26. 26
    The c function in R combines or
    _____
    multiple values into a vector.
    Hint

    It gathers values together into one object.

    Answer

    concatenates

    Explanation

    The c function combines values, such as several heights, into a vector.

  27. 27
    A vector in R contains values of the same
    _____
    .
    Hint

    For example, a vector can contain several character strings or several numeric values.

    Answer

    type

    Explanation

    A vector is a one-dimensional object whose elements share the same data type.

  28. 28
    The names Peter, John, Mary, and Kate form a vector of
    _____
    values in R.
    Hint

    These values are text strings rather than numbers.

    Answer

    character

    Explanation

    Names enclosed as text are character values, and the class function identifies the names vector as character.

  29. 29
    The class function is used to determine an R object's data
    _____
    .
    Hint

    It can report whether an object is, for example, character, numeric, or matrix.

    Answer

    class

    Explanation

    The class function reports the class of an R object, helping users identify the kind of data they are working with.

  30. 30
    A list can combine vectors of
    _____
    types into one object.
    Hint

    For example, one list can contain both names and IQ scores.

    Answer

    different

    Explanation

    Unlike a vector, a list can bring together objects with different types, such as a character vector and a numeric vector.

  31. 31
    In the example list containing names and IQ scores, the first element contains the
    _____
    vector.
    Hint

    It includes Peter, John, Mary, and Kate.

    Answer

    names

    Explanation

    The example list has the names vector as its first element and the IQ scores as its second element.

  32. 32
    A matrix is important in R statistics because many statistical functions, including regression and machine learning models, operate on
    _____
    .
    Hint

    This structure organizes values into rows and columns.

    Answer

    matrix

    Explanation

    The workshop emphasizes matrices because many statistical functions and models use this data structure.

  33. 33
    Unlike a vector, a matrix has row and column attributes that let users locate a particular
    _____
    .
    Hint

    Its position can be identified using its row and column.

    Answer

    data point

    Explanation

    A matrix organizes values by rows and columns, making it possible to locate individual data points.

  34. 34
    A data frame presents variables and observations in a table, with each variable typically represented as a
    _____
    .
    Hint

    In the example, names and IQ scores are separate table fields.

    Answer

    column

    Explanation

    A data frame is a table-like object in which variables are arranged as columns and observations as rows.

  35. 35
    The data.frame function creates a table-like
    _____
    in R.
    Hint

    It can combine columns such as names and IQ scores.

    Answer

    data frame

    Explanation

    The data.frame function creates a data frame, which stores related variables together in a table.

  36. 36
    A user-defined R function consists of a function name, arguments, and an
    _____
    describing what to do with the inputs.
    Hint

    This part specifies the operations the function performs.

    Answer

    expression

    Explanation

    In the basic function structure, arguments are the inputs and the expression specifies the actions performed on them.

  37. 37
    In a function definition,
    _____
    are the input variables or data supplied to the function.
    Hint

    A function with no such inputs can be called with empty parentheses.

    Answer

    arguments

    Explanation

    Arguments provide the input data that a function uses when carrying out its expression.

  38. 38
    A function that prints Hello World! without requiring input has no
    _____
    .
    Hint

    Its greeting command can be called using empty parentheses.

    Answer

    arguments

    Explanation

    The greeting example defines a function with no arguments, so it can print its message without receiving input.

  39. 39
    In R, a text string such as Hello World! must be enclosed in quotation marks so it is not interpreted as a
    _____
    .
    Hint

    Without quotation marks, R would treat the text as a name to look up.

    Answer

    variable

    Explanation

    Quotation marks identify text as a character string rather than as a variable name.

  40. 40
    The speaker's BMI function uses weight divided by height squared, with height measured in
    _____
    .
    Hint

    The function expects a metric unit rather than centimeters.

    Answer

    meters

    Explanation

    The BMI example requires height in meters when applying the formula of weight divided by height squared.

  41. 41
    The BMI function example shows that a custom function can calculate a value and also print a related
    _____
    .
    Hint

    The example can report whether a person's weight is normal or outside a given range.

    Answer

    message

    Explanation

    A user-defined function can do more than return a number: it can test conditions and print a message related to the result.

  42. 42
    An if statement runs its associated action when its
    _____
    is fulfilled.
    Hint

    It is the logical test checked by the statement.

    Answer

    condition

    Explanation

    The if statement checks a condition and carries out an action when that condition is true.

  43. 43
    An else if statement checks another condition when the preceding if condition is not
    _____
    .
    Hint

    It offers an additional test in a conditional sequence.

    Answer

    fulfilled

    Explanation

    The speaker describes else if as a way to check another condition when the previous if test is not fulfilled.

  44. 44
    In the two-integer function example, the sum is calculated with addition and the product is calculated with
    _____
    .
    Hint

    The product of 5 and 10 is 50.

    Answer

    multiplication

    Explanation

    The example assigns the sum using addition and the product using multiplication, then prints both results.

  45. 45
    When writing a multi-line R function, putting separate commands such as the sum and product assignments on separate
    _____
    helps the program interpret them correctly.
    Hint

    The speaker warns against placing all commands in the same line.

    Answer

    lines

    Explanation

    Starting each command on a new line clearly separates the function's instructions and helps prevent parsing problems.

  46. 46
    The R function that calculates the arithmetic mean of a vector is
    _____
    .
    Hint

    It is named after the statistic it computes.

    Answer

    mean

    Explanation

    The mean function calculates the mean of the values in a vector.

  47. 47
    The function used to calculate a vector's standard deviation in the workshop example is
    _____
    .
    Hint

    Its name is an abbreviation of the statistic.

    Answer

    sd

    Explanation

    The sd function calculates standard deviation, and the workshop suggests using it in a user-defined summary function.

  48. 48
    In the optional-median function example, the default setting print.median = FALSE means the median is not printed unless the user explicitly sets the argument to
    _____
    .
    Hint

    This logical value enables the optional output.

    Answer

    TRUE

    Explanation

    The function's default disables median printing; setting print.median to TRUE requests the median as well.

  49. 49
    The data model begins by
    _____
    raw data before the data can be cleaned, analyzed, and communicated.
    Hint

    This is the step of bringing data into the workflow.

    Answer

    importing

    Explanation

    Import is the first stage of the described workflow, followed by tidying, transforming, visualizing, modeling, and communicating.

  50. 50
    In the data model, tidying and transforming include cleaning the dataset and preparing it in a form suitable for
    _____
    .
    Hint

    The transformed table is structured for the next analytical steps.

    Answer

    analysis

    Explanation

    Tidying and transforming clean the data and reshape it into a table suited to the intended analysis.

  51. 51
    The data model uses
    _____
    to help reveal concepts and insights from a transformed table.
    Hint

    This step turns data into figures that people can inspect.

    Answer

    visualization

    Explanation

    Visualizing transformed data helps people see patterns and gain insight before or alongside modeling.

  52. 52
    After visualization, the data model can use a statistical
    _____
    such as a regression model to investigate the data.
    Hint

    This step includes fitting a linear model to the data.

    Answer

    model

    Explanation

    Modeling applies methods such as regression or linear models to obtain further insight from data.

  53. 53
    The data model may repeat analysis steps until the researcher obtains a useful
    _____
    .
    Hint

    The workflow is iterative rather than necessarily one-pass.

    Answer

    result

    Explanation

    After examining model results, researchers may conduct additional analyses and repeat the process until they have a result to communicate.

  54. 54
    The R package tidyverse is a collection of packages for manipulating, checking, and
    _____
    data.
    Hint

    It helps prepare data for analysis.

    Answer

    transforming

    Explanation

    The tidyverse groups packages that support data manipulation, checking, and transformation.

  55. 55
    In R, the library function loads a package that has already been
    _____
    on the computer.
    Hint

    Loading and installing are separate steps.

    Answer

    installed

    Explanation

    A package must first be installed; library then loads it for use in the current R session.

  56. 56
    Within the tidyverse, readr is used for data
    _____
    .
    Hint

    It includes functions for reading files such as CSVs.

    Answer

    import

    Explanation

    The speaker identifies readr as the tidyverse component used for importing data.

  57. 57
    Within the tidyverse, dplyr is used to
    _____
    data tables.
    Hint

    It supports operations such as filtering observations.

    Answer

    manipulate

    Explanation

    The workshop describes dplyr as a package for manipulating data tables.

  58. 58
    Within the tidyverse, tidyr is useful for
    _____
    data.
    Hint

    It helps tidy up the structure of a dataset.

    Answer

    cleaning

    Explanation

    The speaker describes tidyr as useful for cleaning up data.

  59. 59
    The Gapminder dataset described in the workshop has six variables, including country, year, population, continent, life expectancy, and GDP per
    _____
    .
    Hint

    The variable name is gdpPercap.

    Answer

    capita

    Explanation

    The dataset includes the variables country, year, pop, continent, lifeExp, and gdpPercap, where GDP is expressed per capita.

  60. 60
    The dim function reports the dimensions of a data table, including its number of rows and
    _____
    .
    Hint

    The example dataset has six of these.

    Answer

    columns

    Explanation

    The dim function reports the dimensions of an object; for a data table, these include rows and columns.

  61. 61
    The head function displays the first
    _____
    rows of a data table by default.
    Hint

    It is useful for previewing a large table.

    Answer

    six

    Explanation

    The workshop states that head returns the first six rows, giving a quick preview of a dataset.

  62. 62
    The tail function displays the
    _____
    rows of a data table by default.
    Hint

    It previews the opposite end of the dataset from head.

    Answer

    last six

    Explanation

    Tail returns the last six rows of a table, while head returns the first six.

  63. 63
    The names function can be used to inspect the names of a table's
    _____
    .
    Hint

    These are the fields such as country, year, and population.

    Answer

    variables

    Explanation

    The names function returns variable names, which correspond to the data table's columns.

  64. 64
    In R, NA represents missing or
    _____
    data.
    Hint

    It indicates that a value is absent.

    Answer

    not available

    Explanation

    The speaker explains that NA means missing data or data that is not available.

  65. 65
    By default, calculating a mean from a vector containing NA does not remove the missing value, so the result cannot be calculated as an ordinary
    _____
    .
    Hint

    The default behavior can be changed using the na.rm argument.

    Answer

    mean

    Explanation

    A missing value in a vector prevents mean from returning the usual numeric mean unless missing values are removed.

  66. 66
    Setting the na.rm argument to TRUE tells the mean function to
    _____
    missing values during calculation.
    Hint

    The argument name abbreviates this action.

    Answer

    remove

    Explanation

    With na.rm set to TRUE, mean excludes NA values when calculating the result; its default setting is FALSE.

  67. 67
    The filter function can create a dataset containing only observations from a specified year, continent, or population
    _____
    .
    Hint

    The speaker gives the example of selecting populations larger than ten million.

    Answer

    range

    Explanation

    Filtering selects observations that satisfy specified conditions, such as year equals 2007, continent equals Asia, or population exceeding a threshold.

  68. 68
    Data visualization is useful because people often process visual information more readily than long reports or
    _____
    .
    Hint

    These are written descriptions that can be complex to interpret.

    Answer

    texts

    Explanation

    The speaker argues that visualization conveys concepts quickly and vividly compared with lengthy reports or text.

  69. 69
    In ggplot2, a graph is built by adding visual components
    _____
    by layer.
    Hint

    The package's approach is described as a series of additions to a plot.

    Answer

    layer

    Explanation

    ggplot2 uses a layered approach: users begin with a plot specification and add graphical elements to it.

  70. 70
    In the example plot, aes maps GDP per capita to the horizontal axis and life expectancy to the
    _____
    axis.
    Hint

    This is the y-axis.

    Answer

    vertical

    Explanation

    The example maps gdpPercap to x and lifeExp to y, so life expectancy appears on the vertical axis.

  71. 71
    In the point-layer example, an alpha value of 0.5 makes the points partly
    _____
    .
    Hint

    The setting controls how see-through the points appear.

    Answer

    transparent

    Explanation

    Alpha controls transparency; the speaker explains that 0.5 makes points half transparent, while 1 is not transparent.

  72. 72
    Mapping color to continent makes the plot show which
    _____
    each data point belongs to.
    Hint

    The variable supplies a separate color category for each group.

    Answer

    continent

    Explanation

    Using continent as the color aesthetic visually distinguishes observations by their continent.

  73. 73
    A box plot can summarize a distribution across groups, including a group's median and how its values
    _____
    .
    Hint

    The speaker compares life expectancy across continents using this plot.

    Answer

    distribute

    Explanation

    A box plot displays information about a distribution, including its median and spread, making group comparisons possible.

  74. 74
    In the life-expectancy box plot described, Africa has a lower life expectancy than the other
    _____
    .
    Hint

    The graph compares groups such as Africa, Asia, Europe, and the Americas.

    Answer

    continents

    Explanation

    The speaker interprets the box plot as showing lower life expectancy in Africa than in the other continents.

  75. 75
    A histogram displays the count of observations across values of a
    _____
    variable.
    Hint

    The example shows counts at different life expectancy values.

    Answer

    numeric

    Explanation

    The histogram groups numeric values into ranges and shows how many observations fall into each range.

  76. 76
    In the example relationship plot, higher GDP per capita is associated with higher
    _____
    .
    Hint

    This is the variable mapped to the vertical axis.

    Answer

    life expectancy

    Explanation

    The speaker interprets the scatter plot as showing that life expectancy tends to increase as GDP per capita increases.

  77. 77
    The summary function gives descriptive information about each variable in a
    _____
    .
    Hint

    It can summarize variables such as population, life expectancy, and GDP per capita.

    Answer

    dataset

    Explanation

    Summary provides information about variables in a dataset, including statistics such as means and medians for numeric variables.

  78. 78
    The by function can apply a summary separately for each group identified by an
    _____
    variable.
    Hint

    The speaker uses continent to divide the dataset into groups.

    Answer

    index

    Explanation

    By can apply a function such as summary within groups specified by an index, such as continent.

  79. 79
    The dollar-sign operator in an expression such as gapminder$country selects one
    _____
    from a data frame.
    Hint

    In a table, it corresponds to a named field or column.

    Answer

    variable

    Explanation

    The speaker explains that the dollar sign selects a particular variable from a data frame.

  80. 80
    The unique function identifies the distinct
    _____
    in a variable.
    Hint

    For a country variable, it returns the different country names.

    Answer

    values

    Explanation

    Unique returns the distinct values present in a variable, such as the countries represented in the dataset.

  81. 81
    The length function can count how many elements are in a
    _____
    returned by unique.
    Hint

    It counts the entries in an object such as the list of distinct countries.

    Answer

    vector

    Explanation

    Unique returns a vector of distinct values, and length gives the number of elements in that vector.

  82. 82
    The Gapminder dataset discussed in the workshop contains
    _____
    countries.
    Hint

    This count is obtained by applying length to the unique country values.

    Answer

    142

    Explanation

    The speaker reports that the dataset represents 142 countries.

  83. 83
    The R function cor calculates the
    _____
    between two variables.
    Hint

    The example compares life expectancy with GDP per capita.

    Answer

    correlation

    Explanation

    The cor function is used to calculate the correlation between two numeric variables.

  84. 84
    The workshop reports a correlation of approximately 0.58 between life expectancy and GDP per
    _____
    .
    Hint

    This is the economic variable paired with life expectancy.

    Answer

    capita

    Explanation

    The speaker reports an approximate correlation of 0.58 between life expectancy and GDP per capita.

  85. 85
    A t-test can assess whether the mean life expectancy differs between two
    _____
    .
    Hint

    The example compares Europe and Asia.

    Answer

    continents

    Explanation

    The workshop filters the data to Europe and Asia and then uses a t-test to compare their life expectancies.

  86. 86
    In the Europe-versus-Asia comparison described, the negative t-value indicates that Europe has a
    _____
    life expectancy than Asia.
    Hint

    The direction of the difference is interpreted from the sign of the statistic.

    Answer

    longer

    Explanation

    The speaker interprets the negative t-value in this comparison as indicating longer life expectancy in Europe than in Asia.

  87. 87
    To compare the same units across 2002 and 2007, the workshop uses a paired-sample
    _____
    .
    Hint

    The command specifies that the observations are paired.

    Answer

    t-test

    Explanation

    The paired argument is set to TRUE to perform a paired-sample t-test comparing the two years.

  88. 88
    The workshop converts year to a categorical variable with as.factor before comparing years because year is initially
    _____
    .
    Hint

    The values 2002 and 2007 are initially represented as numbers.

    Answer

    numeric

    Explanation

    The speaker uses as.factor to convert numeric year values into a factor so they are treated as categories in the comparison.

  89. 89
    In the linear-model example, lm fits a
    _____
    model.
    Hint

    The function's name abbreviates the model type.

    Answer

    linear

    Explanation

    The lm function fits a linear model, which the example uses to predict life expectancy.

  90. 90
    The example linear model predicts life expectancy from population, GDP per capita, and
    _____
    .
    Hint

    This predictor represents when the observations were collected.

    Answer

    year

    Explanation

    The model includes population, GDP per capita, and year as predictors of life expectancy.

  91. 91
    In the model summary, residuals represent the variation that remains
    _____
    by the model.
    Hint

    They are the differences not accounted for by the fitted model.

    Answer

    unexplained

    Explanation

    The speaker describes residuals as the unexplained variance in the model.

  92. 92
    The adjusted R-squared in the example is about 0.4392, which the speaker interprets as the model explaining about
    _____
    percent of variance.
    Hint

    Round the reported proportion to a whole percentage.

    Answer

    44

    Explanation

    An adjusted R-squared of 0.4392 corresponds to approximately 44 percent of the variance explained by the model.

  93. 93
    The speaker notes that model coefficients can be extracted in R using the model's
    _____
    component.
    Hint

    These values correspond to the predictors' estimated effects.

    Answer

    coefficients

    Explanation

    The example calls the coefficients component to obtain estimates for population, GDP per capita, and year.

  94. 94
    Adding comments to an R script helps explain what a command does without causing the comment itself to
    _____
    .
    Hint

    Comments describe code but are not executable instructions.

    Answer

    run

    Explanation

    Comments document the purpose of commands in a script; they do not perform an analysis when the code is run.

  95. 95
    R Markdown can combine a document with
    _____
    so that results can be included in the document.
    Hint

    The speaker compares it to creating a document that incorporates code.

    Answer

    programming

    Explanation

    R Markdown allows users to create a document that includes programming and can incorporate results.

  96. 96
    In the speaker's description, experimental datasets often have many subjects but relatively few
    _____
    .
    Hint

    The speaker labels the number of subjects N and this dimension P.

    Answer

    variables

    Explanation

    The contrast is that experiments typically collect data from many subjects on a smaller number of variables.

  97. 97
    Compared with many experimental datasets, big data often contains many variables but comparatively fewer
    _____
    .
    Hint

    This is the number of cases or observations represented in the dataset.

    Answer

    subjects

    Explanation

    The speaker contrasts many-subject, few-variable experimental data with big data that can have many variables and comparatively fewer subjects.

  98. 98
    When datasets contain a very large number of variables, machine learning can help reduce or select
    _____
    for prediction and analysis.
    Hint

    These are the measured inputs used by an algorithm.

    Answer

    features

    Explanation

    The speaker says that feature reduction or selection can be needed when working with high-dimensional big data.

  99. 99
    Examples of big data sources mentioned include brain scans, human genes, wearable devices, and
    _____
    networks.
    Hint

    Facebook, Instagram, and Twitter are examples.

    Answer

    social

    Explanation

    The speaker identifies social networks as another source of large amounts of data, alongside brain scans, genes, and wearable devices.

  100. 100
    An fMRI or EEG brain scan can generate large datasets because the brain is represented as a three-dimensional set of
    _____
    .
    Hint

    These are the small units used to represent brain images.

    Answer

    voxels

    Explanation

    The speaker describes the brain as a 3D voxel image and notes that each brain contains more than two million voxels.

  101. 101
    Machine learning algorithms are generally designed to learn patterns from data rather than being written for one specific
    _____
    or question.
    Hint

    The algorithms are generic rather than tailored to a single subject area.

    Answer

    phenomenon

    Explanation

    The speaker characterizes machine learning as using generic algorithms that learn from data instead of being preset for a particular phenomenon or question.

  102. 102
    In the speaker's description, machine-learning performance can improve as the algorithm receives more
    _____
    .
    Hint

    This refers to what the algorithm can learn from its data.

    Answer

    information

    Explanation

    The speaker states that more information can allow an algorithm to learn more and achieve higher performance.

  103. 103
    Machine-learning algorithms learn from experience provided by
    _____
    rather than only following a preset program.
    Hint

    This is the information from which the algorithm learns patterns.

    Answer

    data

    Explanation

    The speaker contrasts learning from data with a preset program that dictates in advance what the system should do.

  104. 104
    The machine-learning task of assigning an observation to one of several known groups is called
    _____
    .
    Hint

    It determines which class an observation belongs to based on its features.

    Answer

    classification

    Explanation

    Classification identifies the class or category to which an instance or observation belongs.

  105. 105
    A machine-learning task that predicts an outcome for new samples from previously observed examples is called
    _____
    .
    Hint

    The speaker relates this task to prediction using features and a model.

    Answer

    regression

    Explanation

    Regression builds a model from existing samples and applies it to new data to predict an outcome.

  106. 106
    A method that searches for hidden patterns or structure by grouping similar samples is called
    _____
    .
    Hint

    It groups data based on similarity rather than known category labels.

    Answer

    clustering

    Explanation

    Clustering looks for hidden patterns and structure by organizing samples according to similarity and difference.

  107. 107
    Classification and regression are examples of
    _____
    learning because they use input and output information to build predictive models.
    Hint

    The model learns from examples with known outcomes.

    Answer

    supervised

    Explanation

    Supervised learning uses input data along with output data to develop a predictive model; classification and regression are examples.

  108. 108
    Clustering is an example of
    _____
    learning because it groups and interprets data using input data without using output labels for prediction.
    Hint

    The method searches for structure without known outcome labels.

    Answer

    unsupervised

    Explanation

    Unsupervised learning identifies groups or structure from input data without using output data to guide predictions.

  109. 109
    Classical statistics is especially useful for inference, which uses a mathematical model of the data-generating process to test hypotheses or understand how a
    _____
    behaves.
    Hint

    The model helps formalize understanding of the process being studied.

    Answer

    system

    Explanation

    The speaker describes inference as modeling the data-generation process to test hypotheses or formalize understanding of system behavior.

  110. 110
    Machine learning is often especially useful for
    _____
    unobserved outcomes or future behavior.
    Hint

    This goal concerns forecasting what has not yet been observed.

    Answer

    predicting

    Explanation

    The speaker emphasizes prediction as a particular strength of machine learning, while noting that the boundary with classical statistics is not clear-cut.

  111. 111
    The Google Flu Trends example shows that more data is not automatically
    _____
    data.
    Hint

    The quality and meaning of the data matter, not only its quantity.

    Answer

    better

    Explanation

    The speaker uses Google Flu Trends to show that collecting more data does not necessarily produce better data or more accurate predictions.

  112. 112
    After Google Flu Trends received publicity, more people searched for flu-related terms, changing the search behavior on which its predictions were
    _____
    .
    Hint

    The system used search activity as an indicator of flu prevalence.

    Answer

    based

    Explanation

    Public awareness affected search behavior, so the system's input data changed and its predictions became less aligned with the CDC's documentation.

  113. 113
    The Google Flu Trends example illustrates that models using online behavior should account for how public attention can change the data being
    _____
    .
    Hint

    The behavior being measured can be influenced by knowledge of the prediction system.

    Answer

    collected

    Explanation

    The system's publicity encouraged extra searches, showing that researchers must consider how their data features are generated and affected by external events.

  114. 114
    The speaker presents big data as a
    _____
    to traditional data collection and analysis, not a replacement.
    Hint

    It can add to existing approaches rather than make them unnecessary.

    Answer

    supplement

    Explanation

    The speaker cautions that big data and machine learning complement rather than replace traditional data collection and analysis.

  115. 115
    The speaker favors using big data to generate novel hypotheses and then conducting experiments for hypothesis
    _____
    .
    Hint

    This later step checks whether an initial idea is supported.

    Answer

    confirmation

    Explanation

    The speaker suggests that big data can reveal insights for novel hypotheses, which can then be tested through experiments.

  116. 116
    When using big data, researchers should carefully consider the legitimacy of the
    _____
    they are using.
    Hint

    This concerns whether the analytical approach is sound and appropriate.

    Answer

    method

    Explanation

    The speaker advises researchers to assess the legitimacy of their methods rather than assuming that large datasets guarantee valid conclusions.

  117. 117
    For reproducible research and open science practice, the speaker recommends R as a useful
    _____
    .
    Hint

    This is the overall recommendation in the take-home message.

    Answer

    choice

    Explanation

    The speaker concludes that R provides a good environment for reproducible research, an important part of open science practice.

1 of 117
Question 1 of 117

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent