Visualization Flashcards

1
Q

Categorical Variables

A

Categorical Variables are variables that cannot be classified as a numerical value
Categorical variables can be classified as either nominal or ordinal
Nominal
- No logical order
- Examples include eye color, dog breed, nationality, etc.
Ordinal
- Has an inherit order
- Examples include shirt size, education level, letter grade, etc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Numerical Variables

A

Continuous
- Can take on any value within a range
- Includes decimal or fractional values
Discrete
- Only defined for whole numbers
- Does not make sense for fractional values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Making a Bar chart in plotly

A

fig = px.bar( data, x=”Language”, y=”Users”, orientation=”v”, height=350, width=450)

You can make a horizontal Bar chart by making orientation=”h”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Making a pie chart in plotly

A

fig = px.pie(data, names=”Race/Ethnicity”, values=”Population Percentage”, height=400, width=500)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Common Categorical Graph Types

A

Vertical Bar Charts
Horizontal Bar Charts
Pie Charts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Common Numerical Bar Charts

A

Line Graphs
Scatterplots
Histograms
Boxplots

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Making a scatterplot in plotly

A

fig = px.scatter(data, “Height”, “Weight”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Line Graph

A

Line graphs are similar to scatterplots, but have some key differences
While scatterplots often have multiple y-values for each x-value, line graphs have exactly one
Line graphs are most often used when the x-axis is a time period with a constant interval
While scatterplots often have multiple y-values for each x-value, line graphs have exactly one
Most importantly, line graphs represent trend.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Histogram

A

Bar : distributions of quantitative variables
Bar width: Can be uneven
Bar order: contiguous
Frequency: By area of bars

Given a list of numerical values, a histogram displays the distribution of these values by grouping them in bins and showing the frequency of values within each bin.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Relative Frequency Histogram

A

Display the bins along the x-axis, and the percentage of data (relative frequency) that is contained within that bin on the y-axis
Formulae for computing height and area of a relative frequency histogram bar:
Height = % of data per x axis unit
Area = % of data in the bin
Total area = 100%

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Binning

A

Binning is the process of grouping data into “bins” of a given size.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly