Skip to content
datarekha

Independence, Span, Basis & Dimension

The word that crossed over from probability — independence — now means arrows that each point in a genuinely new direction. From it fall span, basis, and dimension: how few independent arrows it takes to build a whole space, and how to spot one that is secretly redundant.

8 min read Intermediate GATE DA Lesson 20 of 122

What you'll learn

  • Linear independence: the only solution to Σ cᵢvᵢ = 0 is all cᵢ = 0
  • Span, basis (an independent spanning set), and dimension (the count of basis vectors)
  • Orthonormal sets are mutually perpendicular unit vectors, and are automatically independent
  • A space has MANY valid bases — independence is weaker than orthogonality

Before you start

Here is the word that crossed the border from probability — independence — now meaning something about arrows. Pick a handful of them. How few can you keep and still reach every point of a space by adding and scaling? An arrow that points in a genuinely new direction earns its place; one that is secretly a stretch of the others is dead weight.

Make that concrete before the algebra arrives. On a flat plane, an arrow pointing east and an arrow pointing north are already enough to reach anywhere: walk some distance east, some distance north, done. Hand yourself a third arrow pointing north-east and you have gained nothing, because east-plus-north could already take you there. Spotting that kind of passenger is the skill this lesson builds — and it opens four tightly linked ideas, independence, span, basis, dimension, which GATE tests as a cluster.

Independence — no redundant directions

Vectors v₁, …, vₙ are linearly independent when no one of them is a linear combination of the others — where a linear combination just means “scale each arrow by some number and add them up”. The crisp algebraic test: the only way to make

c₁v₁ + c₂v₂ + … + cₙvₙ = 0

is to take every coefficient cᵢ = 0. If some non-zero choice of coefficients also gives zero, the vectors are dependent — at least one is redundant, addable from the rest.

That definition is stated in the negative, which is why it reads backwards on first meeting. It is not saying “you cannot combine these arrows to reach zero” — of course you can. Set every cᵢ to zero and any set of arrows sums to nothing; that recipe always works and says nothing about anybody. The claim is that this is the only recipe.

Dependence, then, is the existence of a second way to reach zero — one that actually uses some of the arrows. And any such recipe can be rearranged into a confession. For (1,2) and (2,4), the combination 2·(1,2) − 1·(2,4) = (0,0) reaches zero with non-zero coefficients; move one term across and it reads (2,4) = 2·(1,2). The algebraic test and the intuitive “that one’s a passenger” are the same statement, written twice.

Independent: span a planev1v2different directions fill the whole planeDependent: only a lineu2ucollinear: the second adds no new direction
Independent vectors open up a plane; collinear (dependent) vectors stay stuck on one line.

Drag the two arrows below. Point them different ways and every combination fills out the plane — independence in action. Now lay one on top of (or opposite) the other and the combinations collapse onto a single line — the hallmark of dependence.

Tryvector playground

Drag the arrow tips — watch the dot product change

uv
u(3.0, 4.0)
v(4.0, 1.0)
|u|5.00
|v|4.12
u·v16.00
cos θ0.776
angle39°
Drag the colored tip of each arrow. The dot product spikes when the arrows point the same way and vanishes when they're perpendicular.

Span, basis, dimension

The span of a set of vectors is everything you can build from them by adding and scaling — all their linear combinations. Two independent vectors in span the whole plane; one non-zero vector spans only a line.

A basis of a space is a set that is both independent and spanning — just enough arrows to reach everything, with none redundant. The dimension is simply the number of vectors in a basis (every basis of a given space has the same count). So has dimension 2, has dimension 3. And a space has many valid bases: any n independent vectors that span an n-dimensional space will do — there is nothing special about the “standard” one.

Orthonormal — perpendicular and unit length

A set is orthonormal when its vectors are mutually perpendicular (every pair has dot product 0) and each has length 1. The standard basis (1,0), (0,1) is orthonormal. A fact GATE tests: an orthonormal set is automatically independent — perpendicular directions can never be combinations of one another. But the converse is weaker: independent vectors need not be perpendicular.

A worked example — independent or dependent?

(1) Are (1, 0) and (1, 1) independent, and do they form a basis of ? (2) Are (1, 2) and (2, 4) independent?

For two vectors in , the quickest test is the determinant of the matrix they form — non-zero means independent. The reason is worth carrying: for two vectors the determinant measures, up to a sign, the area of the parallelogram they stretch out between them. Point them different ways and that parallelogram has real area; lay one along the other and it collapses to a flat line of zero area. So det = 0 is precisely the algebra reporting “these two have squashed onto one direction”.

det [1 1]  = 1·1 − 0·1 = 1  ≠ 0   →  (1,0),(1,1) independent → a basis of R²
    [0 1]

det [1 2]  = 1·4 − 2·2 = 0        →  (1,2),(2,4) dependent
    [2 4]

The first pair are independent, and two independent vectors in the 2-dimensional automatically span it, so they are a basis — a different basis from the standard (1,0), (0,1). The second pair are dependent because (2, 4) = 2·(1, 2): the second adds no new direction, so they span only a line.

A question to carry forward

For a clutch of arrows we just asked “how many point in genuinely new directions?”. A matrix is exactly a stack of column arrows — so the same question applies to it. Here is the thread onward: how many independent directions does a matrix hold, what do we call that number, and what does it instantly tell us about the equation Ax = b?

In one breath

  • Independentc₁v₁+…+cₙvₙ = 0 forces all cᵢ = 0 (no vector is a combination of the others); a non-zero solution means dependent (a redundant direction).
  • Span = all linear combinations; basis = independent and spanning; dimension = number of basis vectors (every basis has the same count; Rⁿ → n).
  • A space has many bases — any n independent vectors that span.
  • Orthonormal (perpendicular + unit length) ⇒ automatically independent, but independent ⇏ orthogonal ((1,0),(1,1) are independent, not perpendicular).
  • Fast check for n vectors in Rⁿ: form a matrix — det ≠ 0 ⇔ independent (a basis). Any n+1 vectors in Rⁿ are always dependent.

Practice

Quick check

0/6
Q1Recall: vectors are linearly independent exactly when the equation c₁v₁ + … + cₙvₙ = 0 has…
Q2Trace: how many vectors are in any basis of R³ (its dimension)?numerical answer — type a number
Q3Trace: are (1, 2) and (3, 6) linearly independent?
Q4Apply: which statements are TRUE? (select all that apply)select all that apply
Q5Apply: which sets form a basis of R²? (select all that apply)select all that apply
Q6Create: three non-zero vectors lie in R². What can you conclude about their independence, and why?

Sign in to track your progress

Completed lessons, your XP, level, and streak save to your account — it's free and takes a few seconds.

Practice this in an interview

All questions
Define expected value and variance. What are their key properties?

Expected value is the probability-weighted center of a random variable, while variance is the expected squared distance from that center. Expected value is always linear, but variance needs scaling and covariance terms; independence is only required for the familiar variance-addition shortcut.

What is the difference between independent events and mutually exclusive events?

Mutually exclusive events cannot both occur at once — knowing one happened tells you the other didn't. Independent events can both occur, but knowing one happened gives no information about the other. These concepts are nearly opposite: non-trivial mutually exclusive events are always dependent.

How does the Bernoulli distribution relate to the Binomial, and what are their parameters and moments?

A Bernoulli(p) trial is the atomic unit: a single experiment with success probability p. Binomial(n, p) is the sum of n independent, identically distributed Bernoulli(p) trials, counting total successes. Because Binomial is a sum of independent random variables, its mean and variance are n times those of a single Bernoulli.

When does each common distribution arise — Bernoulli, Binomial, Poisson, Normal, Exponential, Uniform?

Each distribution has a natural generative story: Bernoulli is a single coin flip; Binomial sums Bernoullis; Poisson counts rare arrivals; Normal emerges from sums of many small effects; Exponential models waiting times between Poisson events; Uniform assigns equal probability across a range. Choosing correctly comes from matching that story to the data-generating process.

Related lessons

Explore further