1/284
Looks like no tags are added yet.
in terms of encodings what are 5 things to look into to determine if a chart is problematic?
encoding
expressiveness
effectiveness
discriminability
interval vs ratio data
In terms of EDA what are 3 things to look into to determine if a chart is problematic?
data quality
missing values
provenance (data collection)
what are 6 things to consider in terms of perception to determine if a chart is problematic?
accuracy ranking
stevens’ power law
integral and separable channels
popout
gesalt grouping
change blindness
what is the task abastraction principle to follow and not violate
the chart fits the user’s task
what are 3 multi-view principles to follow and not violate
small multiples on a common scale
eyes beat memory
meaningful interactions serve a task
what are 4 principles related to colors and maps that should not be violated
data type matches sequential, diverging or categorical colors
one color = one meaning
color deficiency friendly
counts or rates represented properly
what words should a chart have?
Chart titles, subtitles, and captions (titles claim only what the chart shows; subtitles say what's measured; captions back it up)
what are the 4 principles of a honest design?
framing
scaling
projecting
recording
Data
Symbols, facts, or figures that represent properties of objects, events, or phenomena. People create data by measuring, counting, observing, and describing the world.
Dataset
An organized collection of data
Semantics
The real-world meaning attached to data. A value such as “5” is not meaningful without knowing what it represents
Item
One entity represented in a dataset. In a table, an item usually corresponds to one row
Attribute
A property measured or recorded for each item. In a table, an attribute usually corresponds to one column
Cell
The value for one item–attribute pair. It is the value at the intersection of a row and column
Key
The attribute or combination of attributes that makes each row unique
Composite key
A key made from multiple attributes. For example, country and year may need to be combined to identify a row uniquely
Data type
The structural interpretation of data based on the comparisons and operations the values support. In visualization, this differs from programming types such as int, float, and str
Dataset type
The overall structure used to organize items, attributes, links, or positions. Examples include tables, networks, fields, and geometry
what are the 7 dataset types that were listed in class?
table
network
node
link
field
geometry
table
A dataset in which items are stored in rows and attributes are stored in columns
network definition and example
A dataset containing nodes and links that represent explicit relationships between items.
tree: a network with a hierarchical structure (a node is an item in a network or tree and a link is an explicit relationship between two nodes)
field
a dataset containing a value sampled at every position on a grid, such as an image, scan or climate model
geometry (dataset)
spatial data describing locations in two or three dimensions such as pixels or longitude and latitude
4 attribute types
nominal - Categories with no meaningful order. You can determine whether values are the same or different. Examples include country or region.
ordinal - Categories with a meaningful order, but without meaningful arithmetic differences. Examples include low, medium, and high.
quantitative - Numeric values on which arithmetic can be performed. Quantitative data may be interval or ratio data.
temporal - Dates or times. Temporal data is quantitative data with a calendar attached.
discrete vs continuous data
Discrete data: Quantitative values that occur as separate, countable values.
Continuous data: Quantitative values that can take any value within a range.
categorical attribute
A general term for values representing categories. Nominal data is categorical, and ordinal data is ordered categorical data.
interval vs ratio attribute
Interval attribute: A quantitative attribute whose zero point is arbitrary or conventional. Differences are meaningful, but ratios are not. Examples include Celsius temperature, calendar years, and dates. (can only subtract)
Ratio attribute: A quantitative attribute with a meaningful zero that represents a real absence of the measured quantity. Differences and ratios are meaningful. Examples include weight, income, population, and counts.
arbitrary vs meaningful zero
Arbitrary zero: A zero selected by convention rather than representing the absence of a quantity. For example, 0°C does not mean “no temperature.”
Meaningful zero: A zero that represents a genuine absence of the measured quantity, such as zero population or zero kilograms.
Unit-change test
A way to check whether an arithmetic operation is meaningful. If the result represents something real, it should remain consistent after converting units.
data abstraction
Describing domain-specific data using general structural concepts such as items, attributes, attribute types, and cardinality.
Task abstraction
Describing why a person is examining the data and what the person needs to accomplish
Visual and interaction encoding
Describing how the data is visually presented and how a user can interact with it
data model
A formal or mathematical description of the values and the operations defined on those values. Examples include integers, floating-point values, and strings.
conceptual model
The meaning assigned to values and the reasoning those values support. It is usually shaped by the task.
Data transformation
Changing how data is represented or summarized to support a particular task. The decision should be guided by the task.
Cardinality
The number of distinct values an attribute takes. For nominal and ordinal data, it is the number of categories; for quantitative data, consider the range and whether values are discrete or continuous; for temporal data, consider the range and step.
Level, range and step meaning
Level: One distinct value or category of an attribute.
Range: The span from the minimum to the maximum value of a quantitative or temporal attribute.
Step: The increment between consecutive temporal values, such as one year
point-mark (0D)
A zero-dimensional mark. Its size and shape are available to encode additional attributes.
line-mark (1D)
A one-dimensional mark. Its length is determined by the geometry, but its width can encode another attribute.
interlocking area mark (2D)
A two-dimensional mark whose length and width are both determined by its geometry. Size and shape are therefore unavailable for additional attributes.
Representation effect
The idea that the selected marks and channels affect what information viewers can perceive and how accurately viewers can perceive it.
Discriminability
How easily viewers can perceive differences between levels encoded on a visual channel.
expressiveness vs effectiveness
expressiveness: A visual encoding should represent all and only the information contained in the data attribute. The channel type must match the attribute type.
effectiveness: the most important attributes for the task should use the most accurately perceived available channels
accuracy
how precisely viewers can interpret or compare values encoded by a channel
Psychophysics
The experimental study of relationships between physical stimuli and human perception. The channel accuracy ranking is based on this type of research
general magnitude-channel ranking
(Spatial position ranks highly for both ordered and categorical information. However, the ranking only identifies which channel is read more accurately. It does not determine which attribute is most important; that depends on the user's task)
Position on a common scale
Unaligned position
Length
Tilt or angle
Area
Depth
Color luminance
Color saturation
Curvature
Volume
visualization grammar:
A small set of parts and rules used to describe, design, and create visualizations in a structured way.
Grammar of Graphics
A theoretical framework that describes visualizations as combinations of components rather than as fixed chart types
Layered grammar
A visualization framework in which components are combined in layers
Vega, Vega-Lite and Vega-Altair
Vega: A declarative language for interactive graphics
Vega-Lite: A declarative JSON language for producing interactive visualizations.
Vega-Altair: The Python visualization library used in the course. Altair generates Vega-Lite specifications
declarative visualization
A visualization approach in which you specify what should be represented rather than manually drawing every element
Vega-chart object
An Altair object that connects data to a visualization specification
mark method
An Altair method such as mark_point() that selects the geometric primitive
encoding specification
The part of an Altair chart that binds data attributes to visual channels
Type suffix
An Altair annotation that explicitly states an attribute's visualization type. [lec2A (3).pdf | PDF]
:N: Nominal
:O: Ordinal
:Q: Quantitative
:T: Temporal
Type inference
Altair's attempt to determine an attribute's type automatically when the type is not stated explicitly.
aggregation vs count aggregation
Aggregation: Combining multiple observations into a summary value.
Count aggregation: Counting the number of records in each group.
how can attribute type depend on task?
A number's storage type does not determine its visualization type. A numeric postal code can be nominal, while a year may be temporal, quantitative, or ordinal depending on the question.
The same values can support multiple valid abstractions. Temperature could be:
Quantitative when forecasting.
Ordinal when classified as cold, warm, or hot.
Categorical when divided into above-freezing and below-freezing groups. [lec2B (5).pdf | PDF]
Therefore, do not classify a field using its values alone. Ask what comparisons and reasoning the task requires.
explain how the meaning of ratios differs between interval and ratio data?
Interval data: Differences are meaningful, but ratios are not.
Ratio data: Differences and ratios are meaningful.
“20°C is twice 10°C” is not meaningful because Celsius has an arbitrary zero.
“60 kg is twice 30 kg” is meaningful because zero kilograms represents no weight.
what does bar length require?
a meaningful zero; ratio data
A bar represents a value using its distance from zero. Therefore, bar length is appropriate only when zero represents a real absence of the quantity. It is appropriate for weight, income, population, and counts, but not for Celsius temperature, calendar years, or other interval attributes. Position can represent interval data because position communicates differences rather than ratios from zero.
Quick test: If changing the measurement unit changes the apparent ratio between bar lengths, the bar encoding is not expressing a meaningful relationship.
what is the approximate useable steps for the following depending on distinguishability?
line width, color hue, shape, position
Line width: about 4
Color hue: about 5–8
Shape: about 5
Position: very many
Do not encode dozens of categories using hue or shape. Move a high-cardinality attribute to position and reserve color or shape for attributes with fewer categories.
how can a channel communicate more than one attribute?
Sorted position can communicate:
Identity: which category the mark represents.
Rank: where the category falls in the ordered list.
Alphabetical position normally communicates identity only. Be careful with arbitrary ordering because viewers may interpret order as meaningful.
Mark dimensionality
The number of spatial or structural properties required to define a mark. Marks can be classified as 0D, 1D, or 2D
Spatial freedom
A spatial property that remains available for representing an attribute after the mark's geometry is established
Structural readability
The clarity gained by reserving spatial properties to define the mark's structure
Mark constraint
A limitation created because the geometry of a mark already uses certain spatial or visual properties. The chosen mark determines which channels remain available.
Retinal channel
A non-positional visual property, such as color, size, or shape, that can vary without changing a mark's location.
Aligned position vs unaligned position
Aligned position: Position measured from a shared baseline or common zero. It supports highly accurate comparisons.
Unaligned position: Position measured from different baselines or reference frames. Viewers must mentally translate between the scales, making comparisons less accurate.
relative judgement vs absolute judgement
Relative judgment: Comparing one value with another rather than reading a value directly.
Absolute judgment: Estimating or retrieving an individual value from its visual encoding.
distractor
Distractor: A visual element that interferes with perceiving or comparing the information that matters
redundant encoding
Representing the same attribute using more than one visual channel. For example, a category may be represented by both color hue and stacking order. Redundancy is not automatically a problem
angular position
Angular position: The location of a mark around a circle. It is different from the size of an angle
radial length
Radial length: Distance from the center of a circular chart. It is a one-dimensional magnitude channel.
cyclic attribute
Cyclic attribute: An ordered attribute whose final value connects back to its first value, such as months in a year.
gridline
Gridline: A reference line that helps viewers judge values against an axis or scale.
regular bar chart
A chart showing one variable across categories using bars that share a common baseline. It supports accurate magnitude comparisons.
grouped/clustered bar chart explanation and strength
A chart placing several bars side by side within each category. It supports comparisons within and between groups, although some comparisons use unaligned positions
stacked bar chart explanation and strength
Stacked bar chart: A chart placing segments end to end to show a total and the approximate contributions of its parts. Only the first segment shares the baseline
normalized stacked bar chart explanation and strength
Normalized stacked bar chart: A stacked bar chart in which all totals are scaled to 100%. It shows relative proportions but hides absolute totals.
internal vs floating segment
Internal segment: A segment above the first segment in a stacked bar. It lacks a common baseline and is therefore harder to compare accurately.
Floating segment: A stacked segment that begins where the preceding segment ends rather than at zero.
faceting
Faceting: Dividing a visualization into separate panels that show subsets of the data.
wrapped chart
A chart that repeats part of a cyclic sequence at the opposite end so values near the cycle boundary can be compared more easily
Inferred attribute
the data attribute that appears to be represented by a visual channel.
Fault and Cost to the Reader
Fault: The specific design or encoding problem identified in a visualization.
Cost to the reader: The comparison, interpretation, or judgment made more difficult by the fault.
design trade-off
Design trade-off: What a redesign improves and what it makes harder or gives up.
ink proportionality
he principle that the amount of visible area used to represent a value should be proportional to that value.
Area-radius distortion
In a circular mark, area increases with the square of the radius. If radius directly represents value, the visible area exaggerates differences
what are the 4 steps to critique each channel that carries data
Attribute and type: What is represented, and is it nominal, ordinal, quantitative, or temporal?
Discriminability: Can viewers distinguish the required number of values?
Expressiveness: Does the channel express all and only the structure in the attribute?
Effectiveness: Can viewers perceive the differences that matter for the task?
exploratory vs confirmatory analysis vs initial analysis
Exploratory data analysis: Analysis used to discover patterns, relationships, and possible explanations. The question can change as the analyst examines the data.
Confirmatory analysis: Analysis that evaluates a specific hypothesis or claim established before examining the data.
Initial data analysis: The process of describing a dataset's structure, quality, and distributions before answering a substantive question. It is also called data sniffing in the slides.
data sniffing
A preliminary inspection of a dataset to understand its structure, quality, and distributions. (diff from EDA)
data profile
A structured summary of each attribute's type, meaning, cardinality, range, and quality.
data structure vs data quality
structure: The dataset's rows, columns, and attribute types.
quality: Whether the data contains missing, duplicated, or impossible values
data distribution, centre, spread and shape meaning and difference
Distribution: How the values of an attribute are positioned, spread, and shaped.
Centre: A value describing where a distribution is located, such as the mean or median.
Spread: The amount of variability in a distribution, such as its range or standard deviation.
Shape: The overall form of a distribution, including skew, peaks, gaps, or unusual values.
mean, median and standard deviation meaning
Mean: The arithmetic average of a set of values.
Median: The middle value after values are ordered.
Standard deviation: A numerical summary of how far values typically vary from the mean.
quartile
A boundary dividing an ordered dataset into four parts.
skewness
A measure of asymmetry in a distribution.
univariate summary
A summary of one attribute at a time.
association
A relationship or pattern involving two or more attributes.
missingness and missing-data mechanism
Missingness: The pattern and mechanism behind missing values, not merely the percentage of values that are absent.
Missing-data mechanism: The process that determines why particular observations are missing.
list and explain the 3 missing-data mechanisms
MCAR, missing completely at random: Missingness does not depend on anything in the available data. The slides state that no test can confirm MCAR.
MAR, missing at random: Missingness depends on another recorded attribute. This relationship can be examined using available columns.
MNAR, missing not at random: Missingness depends on the missing value itself and therefore cannot be diagnosed using only the observed data.