1. Home
  2. Explore
  3. Mathematics
  4. Linear Regression

Study methods

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

Linear Regression

  • 69Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: ML Foundations
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What is the central goal of machine learning?

Tap to flipClick to flipspace

To enable computers to learn from experience or examples and use what they learn to infer new information without being explicitly programmed for every case.

Or swipe the card

69 cards

  1. What is the central goal of machine learning?

    To enable computers to learn from experience or examples and use what they learn to infer new information without being explicitly programmed for every case.

  2. How does machine learning differ from traditional programming?

    Traditional programming provides a program and data to produce outputs; machine learning provides examples, data, and often labels so the computer can produce a model or program that generates outputs for new inputs.

  3. What are the three basic stages of the machine-learning paradigm?

    Provide training data, infer a model or process that generated the data, and use the model to make predictions about previously unseen examples.

  4. How does linear regression illustrate machine learning?

    It fits a model to observed data, such as spring mass-displacement measurements, and uses the learned model to predict behavior for new inputs.

  5. What is the role of training data in machine learning?

    Training data provides observations or examples from which a learning algorithm infers a model.

  6. What is the difference between memorizing facts and inferring from data?

    Memorization stores explicit facts, whereas inference uses existing information or implicit patterns to deduce new information.

  7. How are declarative and imperative knowledge related to learning?

    Declarative knowledge consists of statements of truth to memorize; imperative knowledge consists of procedures or methods for deducing new information.

  8. What did Arthur Samuel's definition of machine learning emphasize?

    Machine learning is the field that gives computers the ability to learn without being explicitly programmed.

  9. How did Samuel's checkers program learn?

    It observed its performance in games and inferred changes that improved its playing methods.

  10. What are common applications of machine learning?

    Examples include game playing, recommendation systems, targeted advertising, drug discovery, handwriting recognition, speech assistants, driver assistance, face recognition, and medical diagnosis.

  11. What is a feature in a machine-learning example?

    A measurable characteristic used to represent an example, such as a football player's height and weight.

  12. What is a label?

    A label identifies the class or category associated with an example, such as a football player's position.

  13. What is supervised learning?

    Learning from examples that have known labels in order to learn a rule for predicting labels of unseen inputs.

  14. What is unsupervised learning?

    Learning from examples without known labels in order to discover natural groupings or structures in the data.

  15. How do classification and clustering differ?

    Classification assigns examples to known or learned labeled classes; clustering groups unlabeled examples according to similarity.

  16. When is classification especially appropriate?

    When training examples have labels and the goal is to predict the label of a new example.

  17. When is clustering especially appropriate?

    When examples do not have labels and the goal is to discover natural groups among them.

  18. What are the five essential components of a machine-learning method?

    Training data and success criteria, instance representation, distance or similarity measurement, an objective function or model criterion, and an optimization method.

  19. What is the purpose of measuring distance between examples?

    To determine which examples are similar or close, supporting grouping, classification, or the construction of separating boundaries.

  20. What is the basic objective of clustering?

    To form groups in which examples are close to one another and the groups are reasonably far apart.

  21. What is the basic iterative clustering procedure described in the lecture?

    Choose initial exemplars, assign each example to its closest exemplar, find the median element of each group as a new exemplar, and repeat until the assignments stop changing or a chosen number of iterations is reached.

  22. How should initial clustering exemplars ideally be selected?

    They may be selected from the examples, preferably far apart rather than very close together.

  23. How are examples assigned during exemplar-based clustering?

    Each example is placed in the cluster whose exemplar is closest to it.

  24. Why is the median used to update a cluster exemplar?

    The median element is the example closest to the center of the group and serves as a new representative.

  25. How can the number of clusters affect clustering quality?

    Too few clusters may combine distinct groups, while too many clusters may overfit by making each example or small subset its own group.

  26. Why might adding new examples cause a clustering model to be reconsidered?

    A new example may lie near a dividing boundary or reveal that the assumed number of clusters does not represent the data well.

  27. How can clustering be validated after it is learned?

    Evaluate how tightly examples group together, such as by examining average within-cluster distances, and test how new examples fit the clusters.

  28. Why is a complicated clustering boundary undesirable?

    It may overfit the training examples and fail to generalize to new data.

  29. What is a classifier?

    A model or rule that assigns a new example to a class based on its features.

  30. How does labeled classification work geometrically?

    It seeks a surface in feature space that separates examples with one label from examples with another label.

  31. What is the simplest classification boundary for two-dimensional data?

    A line that separates the examples belonging to the two classes.

  32. What is the dividing line produced by two cluster centers?

    The line consisting of points that are equidistant from the two centers.

  33. How can a classifier label a new point relative to a separating line?

    It assigns the point the label associated with the side of the line on which the point lies.

  34. Why might a classifier tolerate some incorrectly labeled training examples?

    Because forcing perfect separation can require an overly complex boundary that overfits the training data.

  35. What is the k-nearest-neighbor method?

    For a new example, find the kkk closest labeled training examples and assign the majority label among them.

  36. What may happen in k-nearest neighbors when no label has a sufficient majority?

    The new example may be left unclassified.

  37. What is overfitting in classification?

    Overfitting occurs when a model is made so complex that it fits training data closely but performs poorly on unseen data.

  38. What is feature engineering?

    The process of selecting useful features and deciding how to represent and scale them for learning.

  39. Why does feature selection matter in machine learning?

    Some features contain useful predictive information, while irrelevant features can add noise and encourage overfitting.

  40. What is the signal-to-noise objective in feature selection?

    Keep features that carry substantial information about the target and remove features that contribute little useful information.

  41. Why can including irrelevant features be harmful?

    A learning algorithm may detect accidental correlations among irrelevant and relevant features, leading to an overfit or misleading model.

  42. How did the reptile examples illustrate feature refinement?

    The proposed rule had to be revised as new examples contradicted it, eventually retaining features such as scales and cold-bloodedness that better separated the examples.

  43. Why could the initial reptile rule not classify every example correctly?

    Different animals, such as a python and a salmon, shared the selected features, so those features could not separate the classes.

  44. What feature-based reptile rule was ultimately chosen?

    Classify an animal as a reptile if it has scales and is cold-blooded; otherwise classify it as not a reptile.

  45. What is a false negative?

    A false negative occurs when an example that belongs to the target class is incorrectly labeled as not belonging to it.

  46. What is a false positive?

    A false positive occurs when an example that does not belong to the target class is incorrectly labeled as belonging to it.

  47. What design trade-off was made in the simplified reptile classifier?

    It accepted some false positives in order to have no false negatives.

  48. Why is there often a trade-off between false positives and false negatives?

    Some examples overlap in feature space, so no decision boundary can separate every case correctly.

  49. What is the Minkowski metric?

    For vectors xxx and yyy, the Minkowski distance with power ppp is (∑i∣xi−yi∣p)1/p\left(\sum_i |x_i-y_i|^p\right)^{1/p}(∑i​∣xi​−yi​∣p)1/p.

  50. What is the Manhattan metric?

    The Manhattan metric is the Minkowski distance with p=1p=1p=1: ∑i∣xi−yi∣\sum_i |x_i-y_i|∑i​∣xi​−yi​∣.

  51. What is Euclidean distance?

    Euclidean distance is the Minkowski distance with p=2p=2p=2: ∑i(xi−yi)2\sqrt{\sum_i (x_i-y_i)^2}∑i​(xi​−yi​)2​.

  52. Why can the choice of distance metric change classification results?

    Different metrics assign different distances to the same pair of examples, which can change nearest neighbors, clusters, or separating decisions.

  53. How can feature scale distort Euclidean distance?

    A feature with a larger numerical range can dominate the distance calculation even if it is not more important conceptually.

  54. How did the number-of-legs feature distort animal similarity?

    It made an alligator appear closer to a dart frog than to snakes because the numerical difference in leg count was much larger than binary feature differences.

  55. How could the animal-distance problem be addressed using Manhattan distance?

    Manhattan distance could reduce the disproportionate influence of the leg-count difference by treating each component's absolute difference additively.

  56. How could the animal-distance problem be addressed by changing the feature representation?

    Replace the exact number of legs with a binary feature indicating whether the animal has legs.

  57. What is the difference between feature selection and feature scaling?

    Feature selection chooses which measurements to include; feature scaling controls the numerical range or representation of included measurements.

  58. What is a confusion matrix used for?

    It compares predicted labels with actual labels to show correct and incorrect classifications.

  59. What are true positives and true negatives?

    A true positive is a correctly identified positive example; a true negative is a correctly identified negative example.

  60. How is classification accuracy calculated?

    Accuracy is the proportion of all predictions that are correct: true positives+true negativesall predictions\frac{\text{true positives}+\text{true negatives}}{\text{all predictions}}all predictionstrue positives+true negatives​.

  61. Why should a classifier be evaluated on test data?

    Test data indicates how well the model generalizes to unseen examples rather than merely fitting the training data.

  62. What is positive predictive value?

    Positive predictive value is the proportion of predicted positives that are actually positive: true positivestrue positives+false positives\frac{\text{true positives}}{\text{true positives}+\text{false positives}}true positives+false positivestrue positives​.

  63. What does sensitivity measure?

    Sensitivity measures the proportion of actual positive examples that the classifier correctly identifies: true positivestrue positives+false negatives\frac{\text{true positives}}{\text{true positives}+\text{false negatives}}true positives+false negativestrue positives​.

  64. What does specificity measure?

    Specificity measures the proportion of actual negative examples that the classifier correctly rejects: true negativestrue negatives+false positives\frac{\text{true negatives}}{\text{true negatives}+\text{false positives}}true negatives+false positivestrue negatives​.

  65. What trade-off exists between sensitivity and specificity?

    Increasing sensitivity often decreases specificity, and increasing specificity often decreases sensitivity.

  66. What is an ROC curve used to analyze?

    An ROC curve, or Receiver Operating Characteristic curve, helps analyze the trade-off between sensitivity and specificity for different classifier choices.

  67. Why should the number of clusters be treated as a model constraint?

    Because allowing too many clusters can produce an overly complex model that memorizes the data instead of finding meaningful structure.

  68. What is the purpose of choosing an objective function in machine learning?

    An objective function defines what counts as a good model, such as minimizing within-cluster distances or classification error.

  69. How did the football-player example illustrate the importance of feature choice?

    Height alone separated receivers and linemen poorly, weight worked better, and using both height and weight produced a more natural separation.

Card 1 of 69
Card 1 of 69

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent