Interactive Tools:¶
Surface Visualizer - Use this tool to visualize surfaces.
Coordinate Systems¶
All definitions and results are available in Section 8.1.
A coordinate system is a rule for uniquely assigning positions in a -dimensional space to values
A Cartesian coordinate system specifies locations with a list of numbers, which each measure the distance from the location, , to the origin, along a series of perpendicular directions.
A polar coordinate system specifies locations in the plane with a distance from the origin, and an angle away from a reference direction (usually, the ray leaving the origin in the positive horizontal direction).
To convert between polar and Cartesian, use the rules:
A vector is an ordered list of finitely many numbers, . The number of entries is the dimension of the vector.
Vectors represent positions in a Cartesian coordinate system. The zero vector is the vector . It points to the origin.
To add vectors, produce a new vector by adding their entries, .
To scale a vector, multiply it by a scalar, . Scaling a vector preserves its direction, but changes its length.
A linear combination of two vectors is a sum of the form where and are scalars, while and are vectors.
The length or magnitude of a vector is defined . A unit vector is a vector of length 1.
The direction of a vector may be uniquely represented with the matching unit vector . Two vectors, and , are parallel if and only if $.
The angle, , between two vectors may be measured using an inner (dot) product:
Geometrically:
So, two vectors are perpendicualr (orthogonal) if and only if .
Functions of Multiple Variables¶
All definitions and results are available in Section 8.2.
A function of multiple variables is a function that accpets multiple inputs (e.g. vectors).
A function is scalar-valued if it returns scalars. It is vector-valued if it returns vectors.
Scalar-valued functions of multiple variables define surfaces.
We can visualize surfaces using:
cross-sections: which are slices of the surface produced by fixing all but one input, then varying the free input,
level sets: which are all inputs that produce a fixed output value, or
heat maps: which encode the output value as a color.
Joint Distributions¶
All definitions and results are available in Section 8.3.
Discrete random vectors are characterized by joint probability mass functions which may be represented using a joint distribution table
Marginal mass functions are produced by either summing across the rows, or down the columns
Conditional mass functions are produced by isolating a row or column, and scaling by the corresponding marginal to normalize.
So, conditional mass functions are proportional to cross-sections of the table.
Continuous random vectors are characterized by joint density functions which are surfaces:
The joint density at is the chance that every coordinate is within of , scaled by the volume of the -dimensional cube with side lengths , in the limit as approaches zero.
The rules for computing chances, finding marginal densities, finding conditional densities, checking independence, and evaluating expectations are analogous to all of the same procedures we developed in Sections 1.5 and 1.6, as long as we work with densities instead of mass functions, and, replace all sums over possible values with integrals over possible vectors.