What is a vector and how is it used in machine learning?

Quick Overview

Asks what a vector is and where vectors appear in machine learning, from feature vectors and weights to embeddings and gradients. Tests the geometric and algebraic views, the dot product, norms and distances, and practical issues like feature scaling.

What is a vector and how is it used in machine learning?

Role: Data Scientist

Category: Statistics & Math

Difficulty: easy

Interview Round: Other

What is a vector and how is it used in machine learning? ```hint List what a model stores Think about the different things in a model's code that are stored as lists of numbers, and which operations on those lists appear again and again. ``` ### What a Strong Answer Covers - A definition that connects the geometric view and the algebraic view - The main roles vectors play in machine learning (inputs, parameters, learned representations, gradients) - The core operations (dot product, norm, distance) and what each one measures - A small numeric example of at least one operation - Practical issues such as feature scaling and high dimensionality ### Follow-up Questions - How do cosine similarity and Euclidean distance differ, and when do they rank neighbors differently? - How do the L1 and L2 norms behave differently as regularization penalties? - Why do distances between points become less informative as the number of dimensions grows? - How does a one-hot vector differ from a dense embedding for the same categorical feature?

Overview: Asks what a vector is and where vectors appear in machine learning, from feature vectors and weights to embeddings and gradients. Tests the geometric and algebraic views, the dot product, norms and distances, and practical issues like feature scaling.

PracHub logo
General
Nov 24, 2026
easyData ScientistOtherStatistics & Math
0
0

What is a vector and how is it used in machine learning?

What a Strong Answer Covers Guidance

  • A definition that connects the geometric view and the algebraic view
  • The main roles vectors play in machine learning (inputs, parameters, learned representations, gradients)
  • The core operations (dot product, norm, distance) and what each one measures
  • A small numeric example of at least one operation
  • Practical issues such as feature scaling and high dimensionality

Follow-up Questions Guidance

  • How do cosine similarity and Euclidean distance differ, and when do they rank neighbors differently?
  • How do the L1 and L2 norms behave differently as regularization penalties?
  • Why do distances between points become less informative as the number of dimensions grows?
  • How does a one-hot vector differ from a dense embedding for the same categorical feature?