1. Home
  2. Explore
  3. Computer Science
  4. Exploratory Analysis and Data Wrangling

Study methods

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

Exploratory Analysis and Data Wrangling

  • 83Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Problem Definition
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What should a machine learning data analysis pipeline typically begin with?

Tap to flipClick to flipspace

A clear definition of the target problem.

Or swipe the card

83 cards

  1. What should a machine learning data analysis pipeline typically begin with?

    A clear definition of the target problem.

  2. What key elements should be clearly communicated when defining a machine learning problem?

    The problem, goal or hypothesis, nature of the data, target outcome, and data size and quality.

  3. What types of domain knowledge should be considered before machine learning analysis?

    Potential sources of bias, reasonable assumptions, known predictors and covariates, and features that may need extraction or engineering.

  4. What questions should be asked when determining whether collected data are appropriate?

    Whether the data can address the target problem, what sources already exist, and whether new data must be generated.

  5. What privacy and ethical issues may arise during biomedical data collection?

    Patient privacy, permissions, training, certifications, approvals, data security, and restricted access may be required.

  6. What data-storage considerations should be addressed after obtaining biomedical data?

    Whether there is sufficient storage space, proper security, and restricted access for sensitive data.

  7. What are the three broad structural types of data that may require different preparation?

    Structured, semi-structured, and unstructured data.

  8. What should be considered when designing a study to collect new data?

    Whether sufficient existing data are available and, if not, what study design will be used to generate new data.

  9. Why is clearly defining the target problem important for dealing with bad data?

    It provides the perspective needed to identify whether data are relevant, appropriate, biased, or otherwise problematic.

  10. What is the main purpose of data preparation?

    To understand available data, convert them into a usable format, identify and remove errors or bias, and retain a small set of informative features.

  11. What does noisy data mean?

    Data containing uninformative features or conflicting or misleading information related to the target problem.

  12. What does dirty data mean?

    Data containing missing values or errors that do not reflect the true values at collection.

  13. What does sparse data mean?

    Data with a sparse sample size, many missing values, or categorical features with many possible categories.

  14. What are common causes of biased data?

    Selection bias, outliers, and survivorship bias.

  15. What is duplicate data?

    Repeated instances or redundant features, including features that are perfectly or highly correlated.

  16. What are three general strategies for addressing bad data?

    Clearly define the problem, conduct exploratory analysis, and follow best practices for collecting and cleaning data.

  17. Does more data always improve machine learning performance?

    No. Adding poor-quality or inconsistent data may not improve performance and can make the data set worse.

  18. What factors determine how many instances are needed for machine learning?

    Problem complexity, algorithm complexity, the training-to-evaluation split, and data reserved for replication or validation.

  19. What rough minimum training sample sizes per class were suggested for simple and deep learning models?

    About 100 samples per class for simpler models and about 1,000 samples per class for deep learning.

  20. What sample sizes per class were described as a comfort zone and solid ground for many problems?

    About 5,000 samples per class is a comfort zone, while 10,000 samples per class provides relatively strong support for most situations.

  21. How can published research help determine an appropriate sample size?

    Studies involving similar problems can show what sample sizes were effective in previous work.

  22. How can statistical heuristics estimate a target number of instances?

    The estimate may be based on the number of classes, features, or model parameters.

  23. Why do nonlinear algorithms and complex multivariate interactions generally require more data?

    They must learn more complex relationships and interactions among variables.

  24. How can simulated data help estimate the required sample size?

    Simulations can empirically evaluate how data-set size relates to model performance.

  25. What is exploratory data analysis (EDA)?

    The investigation of data using summaries of major characteristics and visualizations.

  26. What patterns can EDA help discover?

    Patterns between features and outcomes and relationships among features themselves.

  27. What problems can EDA help detect?

    Anomalies, outliers, errors, class imbalance, missingness, and violations of assumptions.

  28. When should EDA be conducted?

    Continuously throughout data preparation, both during initial quality assessment and before modeling.

  29. What types of summary statistics may be generated during EDA?

    Mean, median, mode, range, variance, and interquartile range.

  30. What variable characteristics can EDA assess?

    Feature and outcome types or counts, such as whether variables are categorical or numeric.

  31. How can EDA examine relationships between features?

    By examining correlations, including through visualizations such as correlation heat maps.

  32. How can EDA examine associations between an individual feature and an outcome?

    By applying statistical tests of association or creating plots such as bar plots and scatter plots.

  33. What is class imbalance?

    A situation in which one class makes up a much larger proportion of the data than another class.

  34. What is the preferred basic strategy for handling class imbalance described in the content?

    Keep the imbalance but recognize it and use appropriate evaluation metrics.

  35. What is undersampling?

    Randomly sampling from the majority class to create a more balanced data set.

  36. What is oversampling?

    Randomly resampling the minority class to increase its apparent sample size to a level similar to the majority class.

  37. What is data wrangling?

    The process of cleaning and unifying messy, complex data sets so they are easier to access and analyze.

  38. What data-wrangling elements are emphasized for machine learning data analysis?

    Feature extraction, data formatting, data cleaning, and data integration.

  39. What additional activities may be part of data wrangling when preparing data as a resource for others?

    Structuring, enriching, validating, and publishing data.

  40. What is feature extraction?

    Creating new features when the original raw data cannot be used directly for analysis.

  41. How can feature extraction be performed?

    Manually by researchers or automatically using machine learning methods.

  42. What types of raw data commonly require feature extraction?

    Images, audio, video, unstructured text, and time-series data.

  43. What manually engineered features could be extracted from an image of a car?

    The number of wheels and the car's color.

  44. How could features be engineered from emails to classify spam?

    Features could indicate keywords such as “money” or “pills,” bad spelling, or whether the sender is known.

  45. What is the bag-of-words technique?

    A text feature-extraction method that counts word occurrences in text samples.

  46. What does an autoencoder do in feature extraction?

    It uses a neural network to learn a compressed representation of raw data, such as images.

  47. Why are feature-extraction techniques problem- or data-type-dependent?

    Different raw data structures and prediction problems require different ways of representing information.

  48. What is data formatting?

    Organizing information according to preset specifications so that particular algorithms or software packages can use it.

  49. What file-format considerations can be part of data formatting?

    The file type or extension, such as tab-delimited text files or comma-separated .csv files.

  50. How should features and instances generally be oriented in a tabular data set?

    Features should generally be columns and instances should generally be rows.

  51. What header-related issues may need to be addressed during formatting?

    Whether a header is included, which labels are allowed, and whether labels identify features, outcomes, or instance IDs.

  52. Why might column order matter in a formatted data set?

    Some algorithms or packages require columns to appear in a particular order or position.

  53. What is numerical encoding?

    Converting nonnumeric information into numerical values that a downstream algorithm can process.

  54. What caution is required when numerically encoding categorical values?

    Many algorithms will treat the encoded categories as quantitative values.

  55. How should missing values generally be identified during data formatting?

    With a standard missing-data identifier, while avoiding numerical codes such as −9-9−9 or −999-999−999.

  56. What is data cleaning?

    The process of removing corrupted, inaccurate, biased, or useless records from a data set.

  57. How can redundant features be removed?

    Duplicate feature columns or all but one of a set of perfectly correlated features can be removed.

  58. Why should correlations among removed redundant features be documented?

    If the retained feature is important, the documented correlated features may be candidates for investigating causality.

  59. What is data leakage?

    Using information that should not be in the training set to train a model.

  60. What is an example of temporal data leakage?

    Using a feature recorded after the prediction point, even though that information would not be available when predictions are made.

  61. Why would total time until ICU admission be a leakage feature when predicting ICU admission?

    The total time until admission is not available at the moment when the admission prediction must be made.

  62. What are strategies for preventing data leakage?

    Understand what each feature represents, consider its availability relative to the outcome, remove leakage features, and investigate suspiciously high performance.

  63. What is an outlier?

    An observation that lies an abnormal distance from other values in a random sample.

  64. How should impossible outliers generally be handled?

    They should usually be treated as data-collection errors, changed to missing values, or removed with the entire sample.

  65. What methods can be used to detect extreme outliers?

    Sorting, data visualization, statistical tests such as z-scores, and the interquartile range.

  66. What options are available after identifying a possible outlier?

    Keep it, remove it, verify or correct it, or reduce its influence through a logarithmic transformation.

  67. When might a logarithmic transformation be used for outliers?

    When outliers cause the data to depart from a normal distribution and their influence needs to be reduced.

  68. What should be considered before removing an outlier?

    Whether it is a real extreme value, whether removal introduces personal bias, and whether enough other instances remain.

  69. What should happen to an instance with a missing outcome in supervised learning?

    The entire instance should be removed because supervised learning requires outcome labels.

  70. When can missing feature values be left in a data set?

    When the downstream methods can handle missing values.

  71. What are the main options for handling missing feature values?

    Leave them in, remove affected features or instances, engineer a missingness feature, or impute replacement values.

  72. What is a drawback of removing features or instances with missing values?

    Removing features may discard important predictors, while removing instances reduces sample size and statistical power.

  73. When might a feature with frequent missingness be removed?

    When its high missingness makes it a particularly low-quality part of the data set.

  74. How can missingness itself be used as a feature?

    By engineering a feature that indicates whether the original value is missing.

  75. What is imputation?

    The substitution of missing data with placeholder values.

  76. Why should imputation be used cautiously?

    It can manufacture data and add bias, although it may be necessary when the chosen method cannot handle missing values and deletion is unsuitable.

  77. What is the difference between single and multiple imputation?

    Single imputation estimates a replacement from other values of the same feature, whereas multiple imputation uses many or all feature values.

  78. What is data integration?

    Combining features or instances from different sources or studies.

  79. What types of biomedical data might be integrated?

    Environmental, clinical, biological, genetic, genomic, transcriptomic, and epigenetic data.

  80. What are data silos?

    Self-contained stores of data that are isolated from one another and difficult to access together.

  81. What logistical issues can arise when integrating data across sources?

    Permissions, data-sharing agreements, access procedures, differing formats, and data stored across institutions.

  82. What is data harmonization?

    Unifying data from different institutions or studies so that features, names, values, encodings, and measurement units are standardized.

  83. Why are security measures important during data integration?

    Integration may require patient identifiers, creating a need for strong protection during integration and storage of the final data set.

Card 1 of 83
Card 1 of 83

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent