Topic: Distinguishing Scalars and Vectors
In Machine Learning, we often need to calculate the "length" of a vector, known as its Magnitude or Euclidean Norm.
Consider a 2D feature vectorv representing the position of a data point:
Your Answer
Select all options that apply.
Ensure you have selected all applicable options.
In Machine Learning, we often need to calculate the "length" of a vector, known as its Magnitude or Euclidean Norm.
Consider a 2D feature vectorv representing the position of a data point:
v=[34]Using the Pythagorean theorem formula ∥v∥=x2+y2, calculate the magnitude of v.
Your Answer
In a computer vision model, you have a vectoru representing the RGB color values of a pixel. To dim the brightness of the pixel by half, you multiply the vector by a scalar k=0.5
u=20010050If you apply the scalar multiplication ku, what is the resulting vector?
Your Answer
Select the best option below.
Review your choice before proceeding.
In a robotics simulation, a robot is being pushed by two different motors simultaneously.
- Motor A applies a force vector: a=[23]
- Motor B applies a force vector: b=[−14]
What is the Resultant Vector (a+b) that represents the final direction and strength of the robot's movement?
Your Answer
Select the best option below.
Review your choice before proceeding.
The Dot Product is a fundamental operation in Neural Networks. It takes two vectors of the same length and returns a single scalar.
Calculate the dot product ( a⋅b) for the following vectors:
a=123,b=456Formula: (a1×b1)+(a2×b2)+(a3×b3)
Your Answer
If you multiply a non-zero vector vby a negative scalar (for example, −2), the resulting vector will have a different magnitude, but it will point in the exact same direction as the original vector.
- True or
- False
Your Answer
Determine if the statement above is correct.
Pick the most accurate statement.
You are creating a Machine Learning model to predict house prices. Each house is represented as a feature vector x∈R3, where the order of components is:
- Square footage
- Number of bedrooms
- Age of the house (years)
If House A is 2000 sq ft, has 3 bedrooms, and is 10 years old, which representation correctly shows this data point as a vector?
Your Answer
Select the best option below.
Review your choice before proceeding.
In your Python environment, you have two vectors:
- Vector A is a 5-dimensional vector.
- Vector B is a 3-dimensional vector.
What will happen if you attempt to perform vector addition (A+B)
Your Answer
Select the best option below.
Review your choice before proceeding.
In Machine Learning, a Unit Vector is a specialized vector whose magnitude (Euclidean length) is exactly 1.
- True or
- False
Your Answer
Determine if the statement above is correct.
Pick the most accurate statement.
Arrange the following steps in the correct order to calculate the Dot Product of two vectors:
Your Answer
Reorder the list below.
In a K-Nearest Neighbors (KNN) algorithm, we measure the similarity between two items by calculating the distance between their vectors. If the distance is small, the items are similar.
Calculate the distance between Point A and Point B using the Euclidean distance formula:
d=(x2−x1)2+(y2−y1)2Given:
A=[23],B=[57]Note: Use the calculator embedded in the quiz right panel when needed (Available on desktop webpage).
Your Answer
In Machine Learning, we update model weights (w) by subtracting a "gradient" vector (g) scaled by a learning rate (α).
If your current weight vector is w and your update vector is u, what is the new weight vector?
w=[0.51.2],u=[0.10.2] New Weight=w−uYour Answer
Select the best option below.
Review your choice before proceeding.
Two vectors are considered Orthogonal (perpendicular, forming a 90-degree angle) if their Dot Product is exactly zero.
Consider these two vectors:
x=[10],y=[01]True or False: These vectors are orthogonal.
Your Answer
Determine if the statement above is correct.
Pick the most accurate statement.
In standard Linear Algebra, you cannot mathematically add a Scalar (a single number) to a Vector. However, programming libraries like NumPy allow this through a concept called Broadcasting.
What happens when you execute the following Python code?
import numpy as np vec = np.array([10, 20, 30]) result = vec + 5
Your Answer
Select the best option below.
Review your choice before proceeding.
In Machine Learning formulas, we often see the symbol vT. This represents the Transpose of vector v.
If v is a Column Vector:
v=123What does the transpose vT look like?
Your Answer
Select the best option below.
Review your choice before proceeding.
A Linear Combination is the sum of vectors that have been scaled by different scalars.
Calculate the resulting vector for the following combination:
2⋅[11]+3⋅[02]Note: Use the calculator embedded in the quiz right panel when needed (Available on desktop webpage).
Your Answer
Select the best option below.
Review your choice before proceeding.
The Dot Product a⋅b tells us about the alignment of two vectors.
If the Dot Product is positive, what does it suggest about the angle between the two vectors?
Your Answer
Select the best option below.
Review your choice before proceeding.
In Machine Learning code (using NumPy), there is a big difference between Element-wise Multiplication and a Dot Product.
Which of the following statements are correct? (Select all that apply)
Your Answer
Select all options that apply.
Ensure you have selected all applicable options.
In Clustering (like K-Means), we find the center of a group of points by calculating their average. To find the midpoint between two vectors, we add them and multiply by the scalar 0.5.
Find the midpoint of:
v1=[1020],v2=[3040]Note: Use the calculator embedded in the quiz right panel when needed (Available on desktop webpage).
Your Answer
In Natural Language Processing (NLP), we often use Sparse Vectors to represent documents.
True or False: A vector is considered "Sparse" if most of its components are zero.
- True or
- False
Your Answer
Determine if the statement above is correct.
Pick the most accurate statement.
In Machine Learning, we optimize models by moving weight vectors in the opposite direction of the gradient. This is the core of "Learning."
Arrange the steps in the correct order to perform a single weight update:
Your Answer
Reorder the list below.
In many ML algorithms (like SVMs), we need to Normalize our feature vectors to have a magnitude of exactly 1.
Arrange the steps to transform a raw vector into a Unit Vector:
Your Answer
Reorder the list below.
An artificial neuron performs a specific sequence of arithmetic to produce an output.
Arrange the operations in the order they occur inside a single neuron:
Your Answer
Reorder the list below.
In Natural Language Processing, a common way to find the Cosine Similarity between two word-embeddings (vectors) is to first "Normalize" them and then find their alignment. This prevents long documents from having an unfair advantage over short ones.
Arrange the steps in the strict logical order required to find the Cosine Similarity score using this normalization approach:
Note: Use the calculator embedded in the quiz right panel if you are practicing this with real numbers!
Your Answer
Reorder the list below.
If you have a feature vector v and you multiply it by the scalar 0, the result is always the Zero Vector (a vector where all components are 0).
- True or
- False
Your Answer
Determine if the statement above is correct.
Pick the most accurate statement.
In the context of Machine Learning, the term Magnitude (or Norm) refers to a Vector quantity because it describes the distance from the origin.
- True or
- False
Your Answer
Determine if the statement above is correct.
Pick the most accurate statement.
You are debugging a Python script using NumPy. Which of the following operations are mathematically valid between two vectors u and v that both have the shape (4, 1)? (Select all that apply)
Your Answer
Select all options that apply.
Ensure you have selected all applicable options.
Which of the following can be represented as a Vector in a Machine Learning dataset? (Select all that apply)
Your Answer
Select all options that apply.
Ensure you have selected all applicable options.
Perform the following calculation and determine the final Scalar result:
([22]⋅[31])+5Note: Use the calculator embedded in the quiz right panel when needed (Available on desktop webpage).
Your Answer
Select the best option below.
Review your choice before proceeding.
In Data Science, we try to avoid "Redundant" features. If one vector is just a scalar multiple of another, they are Linearly Dependent.
Which of the following pairs are Linearly Dependent? (Select all that apply)
Your Answer
Select all options that apply.
Ensure you have selected all applicable options.
Your Answer
Select all options that apply.
Ensure you have selected all applicable options.
Your Answer
Your Answer
Select the best option below.
Review your choice before proceeding.
Your Answer
Select the best option below.
Review your choice before proceeding.
Your Answer
Your Answer
Determine if the statement above is correct.
Pick the most accurate statement.
Your Answer
Select the best option below.
Review your choice before proceeding.
Your Answer
Select the best option below.
Review your choice before proceeding.
Your Answer
Determine if the statement above is correct.
Pick the most accurate statement.
Your Answer
Reorder the list below.
Your Answer
Your Answer
Select the best option below.
Review your choice before proceeding.
Your Answer
Determine if the statement above is correct.
Pick the most accurate statement.
Your Answer
Select the best option below.
Review your choice before proceeding.
Your Answer
Select the best option below.
Review your choice before proceeding.
Your Answer
Select the best option below.
Review your choice before proceeding.
Your Answer
Select the best option below.
Review your choice before proceeding.
Your Answer
Select all options that apply.
Ensure you have selected all applicable options.
Your Answer
Your Answer
Determine if the statement above is correct.
Pick the most accurate statement.
Your Answer
Reorder the list below.
Your Answer
Reorder the list below.
Your Answer
Reorder the list below.
Your Answer
Reorder the list below.
Your Answer
Determine if the statement above is correct.
Pick the most accurate statement.
Your Answer
Determine if the statement above is correct.
Pick the most accurate statement.
Your Answer
Select all options that apply.
Ensure you have selected all applicable options.
Your Answer
Select all options that apply.
Ensure you have selected all applicable options.
Your Answer
Select the best option below.
Review your choice before proceeding.
Your Answer
Select all options that apply.
Ensure you have selected all applicable options.
