Exploratory Analysis and Data Wrangling
- 73Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What should typically begin a machine learning data analysis pipeline?
What should typically begin a machine learning data analysis pipeline?
73 questions
- 1
What should typically begin a machine learning data analysis pipeline?
- A
A removal of all observations with unusual values
- B
A transformation of every variable into numbers
- C
A clear definition of the target problem
- D
A selection of the most complex algorithm
Correct answer
CA clear definition of the target problem
Explanation
A data analysis pipeline should begin with a clear definition of the target problem, including its goal or hypothesis and the outcome of interest.
- A
- 2
Which set of considerations best represents the domain knowledge that should be examined before modeling?
- A
The order of presentation slides, publication venue, and researcher credentials
- B
Potential biases, reasonable assumptions, known predictors, and needed feature engineering
- C
Only the number of observations, number of classes, and model accuracy
- D
Only the preferred algorithm, software package, and file extension
Correct answer
BPotential biases, reasonable assumptions, known predictors, and needed feature engineering
Explanation
Useful domain knowledge includes possible sources of bias, assumptions, known predictors or covariates, and features that may need to be extracted or engineered.
- A
- 3
Which question is most directly related to determining whether collected data are suitable for a target problem?
- A
Do the available data contain information relevant to solving the problem?
- B
Does the data set contain exactly the same number of instances in every class?
- C
Can every feature be removed before model training?
- D
Can the model achieve perfect performance without evaluation data?
Correct answer
ADo the available data contain information relevant to solving the problem?
Explanation
During data collection, researchers should determine whether they have the right data and whether existing sources can address the target problem.
- A
- 4
Why must privacy and security be considered during biomedical data collection?
- A
Privacy rules determine which algorithm will always achieve the highest accuracy
- B
Patient identifiers automatically make every feature statistically irrelevant
- C
Security concerns eliminate the need to understand the data structure
- D
The data may contain patient identifiers requiring restricted access and protection
Correct answer
DThe data may contain patient identifiers requiring restricted access and protection
Explanation
Sensitive data, especially data containing patient identifiers, require appropriate storage, security, and restricted access.
- A
- 5
What may be required before researchers can access certain biomedical data?
- A
A decision to use only deep learning models
- B
A requirement that every feature be perfectly correlated
- C
A guarantee that all variables are normally distributed
- D
Special permissions, training, certifications, or approvals
Correct answer
DSpecial permissions, training, certifications, or approvals
Explanation
Data may be public or may require permissions, training, certifications, or approvals before access is granted.
- A
- 6
Why is it important to determine whether data are structured, semi-structured, or unstructured?
- A
The data format determines the exact number of training samples required
- B
The data format guarantees that the data contain no missing values
- C
The data format determines whether privacy concerns exist
- D
The data format affects what processing is needed before analysis
Correct answer
DThe data format affects what processing is needed before analysis
Explanation
Data structure and format influence the processing required before the data can be analyzed.
- A
- 7
If sufficient existing data do not exist, what additional planning is necessary?
- A
Automatic removal of all categorical variables
- B
A study design for collecting or generating new data
- C
Conversion of every observation into an outlier
- D
Replacement of the target problem with an easier one
Correct answer
BA study design for collecting or generating new data
Explanation
When adequate data do not already exist, researchers may need to generate new data and design an appropriate collection study.
- A
- 8
Which statement best describes the overall purpose of data preparation?
- A
It removes every feature except the outcome before exploratory analysis
- B
It focuses only on changing file extensions before algorithm selection
- C
It guarantees a perfect model by replacing all observations with simulated data
- D
It orients researchers to the data, makes data usable, reduces errors and bias, and retains informative features
Correct answer
DIt orients researchers to the data, makes data usable, reduces errors and bias, and retains informative features
Explanation
Data preparation helps researchers understand available data, convert it into usable formats, identify errors and bias, and retain a small informative feature set.
- A
- 9
Which example best illustrates noisy data?
- A
The same patient record appears twice by accident
- B
A category variable contains many possible labels
- C
A data set contains a missing value in one feature
- D
A feature contains misleading information that does not help distinguish the target outcome
Correct answer
DA feature contains misleading information that does not help distinguish the target outcome
Explanation
Noisy data include uninformative, conflicting, or misleading information with respect to the target problem.
- A
- 10
What makes a data set dirty?
- A
It contains features that accurately represent the raw measurements
- B
It contains missing values or errors that do not reflect the true collected values
- C
It contains a large number of legitimate categories
- D
It contains only observations from a minority class
Correct answer
BIt contains missing values or errors that do not reflect the true collected values
Explanation
Dirty data contain missing values or inaccurate values that fail to represent the true values at collection.
- A
- 11
Which situation is an example of sparse data as described in the content?
- A
A data set contains one feature that is perfectly correlated with another
- B
A variable contains a value that is impossible for the measured population
- C
A categorical feature such as ZIP code has a very large number of possible categories
- D
A feature has exactly two common categories and no missing values
Correct answer
CA categorical feature such as ZIP code has a very large number of possible categories
Explanation
Sparsity can involve a small sample size, many missing values, or categorical features with many possible categories, such as ZIP code.
- A
- 12
Which example best represents survivorship bias?
- A
A feature contained several unique geographic categories
- B
An identical record was accidentally entered twice
- C
Only patients who remained alive were available for data collection
- D
A measurement was entered incorrectly during data collection
Correct answer
COnly patients who remained alive were available for data collection
Explanation
Survivorship bias occurs when the available data include only individuals who survived or remained available for observation.
- A
- 13
What is duplicate data?
- A
A feature with values that are missing for every observation
- B
A valid independent sample with the same measured values as another sample
- C
Repeated instances or highly redundant features that occur accidentally
- D
A minority class that has been artificially increased
Correct answer
CRepeated instances or highly redundant features that occur accidentally
Explanation
Duplicate data can consist of accidentally repeated instances or redundant features, including features that are perfectly or highly correlated.
- A
- 14
Which combination is recommended for identifying and addressing bad data?
- A
Delete all unusual observations, oversample every minority class, and skip domain review
- B
Clearly define the problem, conduct exploratory analysis, and follow collection or cleaning best practices
- C
Choose a complex algorithm, encode all values numerically, and ignore missingness
- D
Increase the sample size, remove the outcome, and avoid examining feature distributions
Correct answer
BClearly define the problem, conduct exploratory analysis, and follow collection or cleaning best practices
Explanation
Understanding the target problem, applying exploratory analysis, and using best practices for data collection and cleaning help identify and address bad data.
- A
- 15
Why is there no single universal rule for the number of instances needed in machine learning?
- A
Sample size depends only on the number of feature names in the data set
- B
The required sample size is determined entirely by whether the data are biomedical
- C
Every machine learning problem requires exactly the same number of instances per class
- D
The needed sample size depends on problem complexity, algorithm complexity, data splits, and validation needs
Correct answer
DThe needed sample size depends on problem complexity, algorithm complexity, data splits, and validation needs
Explanation
Sample-size needs depend on the complexity of the problem and algorithm, the training-to-evaluation ratio, and whether data are reserved for replication or validation.
- A
- 16
What rough minimum training sample size per class was suggested for simpler machine learning models?
- A
About 10,000 samples per class
- B
About 10 samples per class
- C
About 100 samples per class
- D
About 1,000 samples per class
Correct answer
CAbout 100 samples per class
Explanation
A rough guideline given in the content is at least 100 samples per class for simpler models.
- A
- 17
What rough minimum training sample size per class was suggested for deep learning models?
- A
About 100,000 samples per class
- B
About 10 samples per class
- C
About 1,000 samples per class
- D
About 100 samples per class
Correct answer
CAbout 1,000 samples per class
Explanation
The content suggests roughly 1,000 samples per class as a minimum for more complex models such as deep learning.
- A
- 18
Which statement correctly describes the role of sample-size guidelines?
- A
They are strict requirements that apply equally to every algorithm and problem
- B
They are rough guidelines; simpler and cleaner problems may need fewer samples than complex and noisy problems
- C
They eliminate the need to evaluate model performance at different sample sizes
- D
They show that adding any amount of low-quality data always improves performance
Correct answer
BThey are rough guidelines; simpler and cleaner problems may need fewer samples than complex and noisy problems
Explanation
The sample-size recommendations are approximate. Simpler, cleaner problems may need fewer observations, while complex and noisy problems generally need more.
- A
- 19
Why is adding more data not always beneficial?
- A
Poor-quality or inconsistent observations may add noise rather than improve model performance
- B
More observations automatically create data leakage in every model
- C
Additional observations prevent the use of evaluation metrics
- D
Additional observations always reduce the number of available features
Correct answer
APoor-quality or inconsistent observations may add noise rather than improve model performance
Explanation
More data are not necessarily better if the added observations are poor quality or inconsistent.
- A
- 20
Which approach can help estimate an appropriate sample size using prior evidence?
- A
Using the number of missing values as the only determinant
- B
Examining published studies involving similar problems
- C
Matching the sample size to the number of rows in an unrelated data set
- D
Selecting the sample size from the number of file extensions
Correct answer
BExamining published studies involving similar problems
Explanation
Published research on similar problems can provide evidence about sample sizes that were effective previously.
- A
- 21
What is the purpose of exploratory data analysis, or EDA?
- A
To investigate data using summaries and visualizations to understand characteristics and discover patterns
- B
To guarantee that all observations are independent and normally distributed
- C
To replace the target outcome with a feature before model training
- D
To select a final algorithm without examining the data
Correct answer
ATo investigate data using summaries and visualizations to understand characteristics and discover patterns
Explanation
EDA uses summaries of data characteristics and visualizations to understand the data and discover patterns.
- A
- 22
Which activity is an appropriate use of EDA?
- A
Guaranteeing that a discovered association is causal
- B
Identifying anomalies, outliers, errors, and possible relationships among features and outcomes
- C
Ensuring that every class contains identical biological characteristics
- D
Replacing all missing values with the same numerical constant
Correct answer
BIdentifying anomalies, outliers, errors, and possible relationships among features and outcomes
Explanation
EDA can reveal patterns, anomalies, outliers, errors, and associations among features and outcomes.
- A
- 23
When should EDA be conducted in a machine learning pipeline?
- A
Only after the final model has been deployed
- B
Continuously throughout data preparation, both initially and before modeling
- C
Exactly once, before data collection begins
- D
Only after all potentially useful features have been deleted
Correct answer
BContinuously throughout data preparation, both initially and before modeling
Explanation
Different parts of EDA are useful at different stages, so it should be integrated throughout data preparation.
- A
- 24
Which statistic is an example of a feature summary that may be generated during EDA?
- A
The column position
- B
The interquartile range
- C
The patient authorization code
- D
The file extension
Correct answer
BThe interquartile range
Explanation
EDA may include summary statistics such as the mean, median, mode, range, variance, and interquartile range.
- A
- 25
What can examining feature and outcome types during EDA determine?
- A
Whether all observations were collected independently
- B
Whether variables are categorical, numeric, or of another relevant type
- C
Whether a model will achieve perfect accuracy
- D
Whether every association is causal
Correct answer
BWhether variables are categorical, numeric, or of another relevant type
Explanation
EDA can identify the types and counts of variables, including whether they are categorical or numeric.
- A
- 26
What does a feature-correlation heat map primarily help examine?
- A
The security level of patient identifiers
- B
Relationships or correlations among features
- C
The number of approvals needed to access a data source
- D
Whether a feature was collected before or after the outcome
Correct answer
BRelationships or correlations among features
Explanation
A correlation heat map visualizes relationships among features.
- A
- 27
How can EDA examine a univariate association with an outcome?
- A
By converting the outcome into a file extension
- B
By deleting the feature before calculating any summaries
- C
By applying an association test or creating a plot such as a bar plot or scatter plot
- D
By duplicating every instance in the relevant class
Correct answer
CBy applying an association test or creating a plot such as a bar plot or scatter plot
Explanation
Univariate associations can be examined with relevant statistical tests or visualizations such as bar and scatter plots.
- A
- 28
What is class imbalance in a classification data set?
- A
The outcome variable has been mistakenly included as a feature
- B
Every class contains exactly the same number of observations
- C
One class constitutes a much larger proportion of observations than another class
- D
A feature contains many possible categories but no outcome labels
Correct answer
COne class constitutes a much larger proportion of observations than another class
Explanation
Class imbalance occurs when one class is represented much more frequently than another.
- A
- 29
Why can class imbalance complicate machine learning analysis?
- A
It makes all features perfectly correlated with one another
- B
It prevents any statistical test from being conducted
- C
It can influence algorithm performance and the interpretation of evaluation results
- D
It guarantees that the minority class is measured incorrectly
Correct answer
CIt can influence algorithm performance and the interpretation of evaluation results
Explanation
Class imbalance can affect certain algorithms and can make standard model evaluation results misleading.
- A
- 30
What is undersampling in response to class imbalance?
- A
Randomly reducing the majority class to create a more balanced data set
- B
Removing every feature associated with the majority class
- C
Converting the outcome into a continuous numerical variable
- D
Randomly duplicating the minority class until it exceeds the majority class
Correct answer
ARandomly reducing the majority class to create a more balanced data set
Explanation
Undersampling randomly selects fewer observations from the majority class to make class proportions more balanced.
- A
- 31
What is the main disadvantage of undersampling?
- A
It prevents researchers from using appropriate evaluation metrics
- B
It necessarily creates artificial minority-class observations
- C
It makes the majority class larger than the minority class
- D
It reduces the overall sample size and may discard useful information
Correct answer
DIt reduces the overall sample size and may discard useful information
Explanation
Undersampling loses observations from the majority class, reducing sample size and potentially discarding useful information.
- A
- 32
What is oversampling in response to class imbalance?
- A
Randomly resampling the minority class to increase its size toward that of the majority class
- B
Removing all observations that belong to the minority class
- C
Randomly removing observations from the majority class
- D
Changing a classification problem into an unsupervised problem
Correct answer
ARandomly resampling the minority class to increase its size toward that of the majority class
Explanation
Oversampling increases the apparent size of the minority class by resampling its observations.
- A
- 33
Why should oversampling be used cautiously?
- A
It guarantees that all classes become biologically identical
- B
It eliminates the need to select appropriate evaluation metrics
- C
It always decreases the number of minority-class observations
- D
It can introduce bias by manufacturing or repeatedly reusing information to create balance
Correct answer
DIt can introduce bias by manufacturing or repeatedly reusing information to create balance
Explanation
Oversampling can add bias because it artificially increases the minority class rather than collecting genuinely new independent observations.
- A
- 34
What is data wrangling?
- A
Selecting a model without examining or changing the data
- B
Collecting only data that already have a balanced outcome
- C
Removing every feature that is not normally distributed
- D
Cleaning and unifying messy, complex data for easier access and analysis
Correct answer
DCleaning and unifying messy, complex data for easier access and analysis
Explanation
Data wrangling, also called data munging, involves cleaning and unifying complex data for access and analysis.
- A
- 35
Which group contains the main data-wrangling components emphasized for analysis?
- A
Model deployment, hypothesis testing, publication, and replication
- B
Class labeling, algorithm selection, accuracy scoring, and visualization
- C
Feature extraction, data formatting, data cleaning, and data integration
- D
Patient recruitment, grant writing, peer review, and database marketing
Correct answer
CFeature extraction, data formatting, data cleaning, and data integration
Explanation
The analysis-focused aspects discussed are feature extraction, formatting, cleaning, and integration.
- A
- 36
What is feature extraction?
- A
Creating new features that represent raw data when the original form cannot be used directly for analysis
- B
Replacing every missing value with the feature mean
- C
Deleting every feature that contains a numerical value
- D
Splitting the outcome into training and evaluation subsets
Correct answer
ACreating new features that represent raw data when the original form cannot be used directly for analysis
Explanation
Feature extraction creates usable features from raw data that may be non-tabular or otherwise unsuitable for direct analysis.
- A
- 37
What is an essential requirement for extracted features?
- A
They should always be created manually rather than automatically
- B
They should be unrelated to the target outcome
- C
They should always contain more information than the raw data
- D
They should accurately represent the underlying raw data
Correct answer
DThey should accurately represent the underlying raw data
Explanation
Extracted features should faithfully represent the raw data from which they were derived.
- A
- 38
Which raw data types commonly require feature extraction?
- A
Only files that already contain standardized feature names
- B
Images, audio, video, unstructured text, and time series
- C
Only perfectly formatted tables with numeric columns
- D
Only data sets containing two balanced outcome classes
Correct answer
BImages, audio, video, unstructured text, and time series
Explanation
Feature extraction may be needed for images, audio, video, unstructured text, and time-series data.
- A
- 39
Which example illustrates manually engineered features for a car image?
- A
The file extension and the column position
- B
The patient identifier and the storage location
- C
The number of wheels and the color of the car
- D
The model accuracy and the validation score
Correct answer
CThe number of wheels and the color of the car
Explanation
A researcher could manually extract features such as the car's number of wheels and color from an image.
- A
- 40
How could an email-spam data set be converted into a tabular representation?
- A
By storing the entire email only as an image file
- B
By recording keyword presence, spelling characteristics, and whether the sender is known
- C
By deleting all text that occurs more than once
- D
By labeling every email as spam before extracting any information
Correct answer
BBy recording keyword presence, spelling characteristics, and whether the sender is known
Explanation
Features for spam detection could include the presence of words such as “money” or “pills,” spelling quality, and sender status.
- A
- 41
What does the bag-of-words technique typically represent?
- A
The occurrence or count of words while disregarding grammar and word order
- B
The time interval between messages from the same sender
- C
The grammatical structure and exact order of every word
- D
The image intensity of each character in a document
Correct answer
AThe occurrence or count of words while disregarding grammar and word order
Explanation
Bag of words counts words in text but disregards grammar and word order, which may remove useful predictive information.
- A
- 42
What is an autoencoder used for in feature extraction?
- A
Converting categorical labels into file extensions
- B
Sorting observations according to their missing-value counts
- C
Learning a compressed representation of raw data with a neural network
- D
Removing all observations that differ from the mean
Correct answer
CLearning a compressed representation of raw data with a neural network
Explanation
An autoencoder uses a neural network to learn a compressed representation of raw data such as images.
- A
- 43
What is data formatting?
- A
Organizing information according to preset specifications so algorithms or packages can use it
- B
Removing every observation that contains a categorical variable
- C
Determining whether an observation is a causal explanation of the outcome
- D
Creating new biological measurements from an unrelated study
Correct answer
AOrganizing information according to preset specifications so algorithms or packages can use it
Explanation
Data formatting organizes information according to specifications required by downstream algorithms or software packages.
- A
- 44
Why might a tabular data set need to be transposed?
- A
Its features may be stored as rows and instances as columns instead of the required orientation
- B
Its observations may have been collected at different institutions
- C
Its values may contain a valid numerical measurement
- D
Its outcome may contain too few categories to support classification
Correct answer
AIts features may be stored as rows and instances as columns instead of the required orientation
Explanation
Some algorithms expect features as columns and instances as rows, so a data set with the reverse orientation may need transposition.
- A
- 45
Which formatting issue concerns headers and column positions?
- A
A package may require specific header labels and may require the outcome to appear in a particular column
- B
A file may require all missing values to be converted into outliers
- C
A data set may require every observation to have a unique outcome
- D
A model may require every feature to have a different biological origin
Correct answer
AA package may require specific header labels and may require the outcome to appear in a particular column
Explanation
Formatting can involve whether headers are included, which labels are used, and the required order or position of columns.
- A
- 46
Why can numerical encoding of categorical values be problematic?
- A
Many algorithms may interpret the assigned numbers as quantitative relationships
- B
Numerical encoding guarantees that categories become normally distributed
- C
Numerical encoding prevents algorithms from reading any other features
- D
Numerical encoding always removes all information from the categories
Correct answer
AMany algorithms may interpret the assigned numbers as quantitative relationships
Explanation
When categories are represented by numbers, many implementations may treat those numbers as quantitative values, creating misleading relationships.
- A
- 47
Why should arbitrary numerical codes such as −9 or −999 generally be avoided for missing values?
- A
The codes cannot be stored in comma-separated files
- B
The codes automatically create a balanced classification outcome
- C
The codes prevent researchers from calculating any summary statistic
- D
A downstream method may mistake the code for a valid numerical measurement
Correct answer
DA downstream method may mistake the code for a valid numerical measurement
Explanation
Numerical missing-value identifiers can be misinterpreted as legitimate quantities by downstream analyses.
- A
- 48
What is data cleaning?
- A
Combining data sources without checking their formats
- B
Replacing every unusual value with the sample mean
- C
Removing corrupted, inaccurate, biased, or useless records from a data set
- D
Creating a new outcome from every available feature
Correct answer
CRemoving corrupted, inaccurate, biased, or useless records from a data set
Explanation
Data cleaning removes records or variables that are corrupted, inaccurate, biased, or useless for the analysis.
- A
- 49
How can perfectly correlated features be handled during data cleaning?
- A
Convert every correlated feature into a missing value
- B
Retain one and remove the others while documenting the correlation
- C
Remove the outcome instead of removing redundant predictors
- D
Duplicate all correlated features to strengthen their influence
Correct answer
BRetain one and remove the others while documenting the correlation
Explanation
All but one of perfectly correlated features can be removed to reduce feature count without losing information, and the correlation should be documented.
- A
- 50
Why should two identical-looking instances not automatically be treated as duplicates?
- A
They may represent truly independent samples with identical feature and outcome values
- B
Two identical instances must always belong to different classes
- C
Identical instances always indicate that the outcome was mislabeled
- D
Independent samples cannot have the same feature values
Correct answer
AThey may represent truly independent samples with identical feature and outcome values
Explanation
Two observations with identical features and outcomes may still be independent samples, so duplication must be evaluated in context.
- A
- 51
Which features should generally be considered for removal during basic data cleaning?
- A
Features that contain only valid numerical measurements
- B
Features known to be irrelevant or features that introduce data leakage
- C
Features that have any association with the outcome
- D
Features that were collected from a different institution
Correct answer
BFeatures known to be irrelevant or features that introduce data leakage
Explanation
Irrelevant features and features that leak information unavailable at prediction time should be removed.
- A
- 52
What is data leakage in machine learning?
- A
Using information in model training that should not be available when predictions are made
- B
Combining two files that use the same measurement units
- C
Using too few observations to estimate a feature mean
- D
Keeping a legitimate extreme value in the training data
Correct answer
AUsing information in model training that should not be available when predictions are made
Explanation
Data leakage occurs when information that should not be part of training is used to train the model, often because it would not be available at application time.
- A
- 53
Why would total time until ICU admission be a leakage feature when predicting ICU admission?
- A
The variable cannot be measured in a clinical setting
- B
The variable necessarily contains too many missing values
- C
The variable is categorical rather than numeric
- D
The total time until admission is unavailable at the moment the prediction must be made
Correct answer
DThe total time until admission is unavailable at the moment the prediction must be made
Explanation
Total time until ICU admission uses future information that would not be available when deciding whether the patient will be admitted.
- A
- 54
What is a useful response when a model performs suspiciously well?
- A
Immediately remove all features without examining their meanings
- B
Investigate whether a mistake or data leakage caused the unusually high performance
- C
Assume the model is correct because high performance cannot result from error
- D
Add more oversampled observations until performance increases further
Correct answer
BInvestigate whether a mistake or data leakage caused the unusually high performance
Explanation
Performance that seems too good to be true should prompt skepticism and investigation for mistakes or leakage.
- A
- 55
What is an outlier?
- A
Any feature that contains a categorical value
- B
A repeated observation that is always an independent sample
- C
An observation that lies an abnormal distance from other values in a random sample
- D
Any observation that belongs to the minority outcome class
Correct answer
CAn observation that lies an abnormal distance from other values in a random sample
Explanation
An outlier is an observation that is unusually distant from other observations in the sample.
- A
- 56
How should an impossible outlier, such as a human age of 180, generally be handled?
- A
Duplicate it so the model learns that extreme values are important
- B
Convert it into a new categorical class called “outlier”
- C
Keep it automatically because all extreme values are biologically meaningful
- D
Treat it as a likely collection error and change it to missing or remove the sample
Correct answer
DTreat it as a likely collection error and change it to missing or remove the sample
Explanation
Impossible values usually indicate data-collection errors and may be changed to missing or lead to removal of the affected sample.
- A
- 57
Which methods can help identify extreme outliers during EDA?
- A
Only oversampling, feature encoding, and file conversion
- B
Only removing the smallest and largest observations
- C
Only comparing the number of rows with the number of columns
- D
Sorting, visualization, statistical tests such as z-scores, and the interquartile range
Correct answer
DSorting, visualization, statistical tests such as z-scores, and the interquartile range
Explanation
Outlier detection can use sorting, visualizations, statistical tests such as z-scores, and the interquartile range.
- A
- 58
Which consideration is appropriate when deciding whether to remove an extreme but plausible outlier?
- A
Remove it only when it belongs to the majority class
- B
Always remove it because extreme values cannot be valid
- C
Consider whether it may be real, whether its removal reflects bias, and whether enough other observations remain
- D
Always retain it because removing any observation is invalid
Correct answer
CConsider whether it may be real, whether its removal reflects bias, and whether enough other observations remain
Explanation
Outliers may be genuine edge cases or errors. Decisions should consider validity, potential researcher bias, and the amount of remaining data.
- A
- 59
What is one possible approach when outliers make a distribution strongly non-normal?
- A
Duplicate the outliers until the distribution is balanced
- B
Apply a logarithmic transformation to de-emphasize the outliers
- C
Convert the feature into a patient identifier
- D
Replace every outlier with the largest observed value
Correct answer
BApply a logarithmic transformation to de-emphasize the outliers
Explanation
A logarithmic transformation can reduce the influence of extreme values and potentially produce a more normal distribution.
- A
- 60
In supervised learning, what should generally happen when an instance has a missing outcome label?
- A
Use the missing outcome as a new class automatically
- B
Remove the entire instance because it cannot contribute a labeled training example
- C
Keep the instance unchanged and treat the missing label as a feature
- D
Impute the outcome from the feature with the highest variance
Correct answer
BRemove the entire instance because it cannot contribute a labeled training example
Explanation
Supervised learning requires outcome labels, so an instance with a missing outcome generally adds nothing and should be removed.
- A
- 61
When can missing feature values be left in a data set?
- A
Only when missing values are replaced by negative numerical codes
- B
Only when every other feature is perfectly correlated with the missing feature
- C
When the downstream methods can appropriately handle missing values
- D
Never, because all machine learning methods require complete data
Correct answer
CWhen the downstream methods can appropriately handle missing values
Explanation
Some methods can handle missing feature values, either by treating them as neutral information or by performing on-the-fly imputation.
- A
- 62
What is a drawback of removing every instance with a missing feature value?
- A
The remaining data automatically become biased toward the minority class
- B
The outcome labels are necessarily removed from every instance
- C
The sample size decreases, reducing power to detect true associations
- D
The feature values become impossible to interpret
Correct answer
CThe sample size decreases, reducing power to detect true associations
Explanation
Removing instances reduces sample size and can reduce statistical power.
- A
- 63
Why might a feature with a particularly high frequency of missingness be removed?
- A
Features with missing values can never predict an outcome
- B
It may represent a low-quality aspect of the data set with limited usable information
- C
Removing it guarantees that all remaining features are independent
- D
A high missingness rate proves that the feature is a leakage variable
Correct answer
BIt may represent a low-quality aspect of the data set with limited usable information
Explanation
A feature with extensive missingness may be too low quality to retain, although its potential predictive value should be considered.
- A
- 64
How can missingness itself be incorporated into a model?
- A
By treating every missing value as an extreme outlier
- B
By replacing all missing values with unique patient identifiers
- C
By deleting the outcome for every instance with missingness
- D
By engineering a feature that indicates whether the original value was missing
Correct answer
DBy engineering a feature that indicates whether the original value was missing
Explanation
Missingness may itself be predictive, so an indicator feature can be engineered to record whether a value was missing.
- A
- 65
What is imputation?
- A
Removing every feature that contains a valid measurement
- B
Changing a continuous outcome into a categorical feature
- C
Combining independently collected data sources without harmonization
- D
Substituting missing data with estimated placeholder values
Correct answer
DSubstituting missing data with estimated placeholder values
Explanation
Imputation replaces missing data with estimated or placeholder values.
- A
- 66
Why should imputation be used cautiously?
- A
It prevents any algorithm from using the imputed feature
- B
It guarantees that the imputed values are the true unobserved values
- C
It is an educated guess that can introduce manufactured data and bias
- D
It always decreases the sample size more than removing instances
Correct answer
CIt is an educated guess that can introduce manufactured data and bias
Explanation
Imputation may be useful when other methods cannot handle missingness, but it can also manufacture values and introduce bias.
- A
- 67
What distinguishes single imputation from multiple imputation?
- A
Single imputation removes instances, whereas multiple imputation removes features
- B
Single imputation is used only for outcomes, whereas multiple imputation is used only for identifiers
- C
Single imputation uses other values from the same feature, whereas multiple imputation uses many or all features
- D
Single imputation creates categories, whereas multiple imputation creates file extensions
Correct answer
CSingle imputation uses other values from the same feature, whereas multiple imputation uses many or all features
Explanation
Single imputation estimates a missing value from other values of that feature, while multiple imputation uses information from many or all features.
- A
- 68
What is data integration?
- A
Removing all features that were measured at different institutions
- B
Sorting observations according to their outcome labels
- C
Replacing every missing value with a single constant
- D
Combining features or instances from different data sources or studies
Correct answer
DCombining features or instances from different data sources or studies
Explanation
Data integration combines data from different sources or studies into a unified data set.
- A
- 69
Which combination represents possible biomedical data sources for integration?
- A
Only file extensions, column positions, and header labels
- B
Environmental, clinical, biological, genetic, and other omics data
- C
Only patient identifiers and storage permissions
- D
Only outcome labels, model scores, and algorithm names
Correct answer
BEnvironmental, clinical, biological, genetic, and other omics data
Explanation
Biomedical integration may combine environmental, clinical, biological, genetic, and other omics data.
- A
- 70
What are data silos?
- A
Self-contained stores of data with isolated access that must be overcome for integration
- B
Outliers that are impossible according to domain knowledge
- C
Features with identical values that should always be removed
- D
Missing values that are handled by an algorithm during prediction
Correct answer
ASelf-contained stores of data with isolated access that must be overcome for integration
Explanation
Data silos are isolated repositories or institutions that restrict access to data needed for integration.
- A
- 71
What may be needed to overcome data silos?
- A
Permission, data-sharing agreements, and logistical arrangements for access
- B
Removal of all patient identifiers before determining whether access is permitted
- C
Automatic deletion of data from every external source
- D
Conversion of all data into the same outcome class
Correct answer
APermission, data-sharing agreements, and logistical arrangements for access
Explanation
Integrating siloed data may require permissions, data-sharing agreements, and arrangements for accessing the relevant repositories.
- A
- 72
What is data harmonization intended to accomplish?
- A
Standardizing features, names, values, encodings, and measurement units across sources
- B
Replacing all source-specific measurements with random values
- C
Ensuring that every institution contributes the same number of patients
- D
Increasing the number of missing values so sources become comparable
Correct answer
AStandardizing features, names, values, encodings, and measurement units across sources
Explanation
Harmonization makes combined data consistent in features, feature names, values, encodings, units, and related representations.
- A
- 73
Why are security issues especially important during biomedical data integration?
- A
Patient identifiers may be needed for linkage, requiring strong protection during integration and storage
- B
Security determines whether a feature is categorical or numeric
- C
Patient identifiers can be freely shared once data sources are combined
- D
Security concerns eliminate the need for data harmonization
Correct answer
APatient identifiers may be needed for linkage, requiring strong protection during integration and storage
Explanation
Identifiers may be needed to link records, so they require heightened security during integration and in the final data set.
- A

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