Data Visualization, Exploratory Analysis, and Statistical Modeling in R

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/41

flashcard set

Earn XP

Description and Tags

Comprehensive vocabulary review flashcards covering exploratory data analysis, descriptive and inferential statistics, regression and clustering modeling, ggplot2 layered visualization, base and lattice graphics, and R programming language structures.

42 Terms

1
New cards

Statistical Modeling

A mathematical method used to represent relationships between variables, analyze data, and make predictions using statistical techniques.

2
New cards

Primary Data vs. Secondary Data

Primary data is collected directly through surveys, interviews, or experiments, whereas secondary data is obtained from existing sources such as books, reports, websites, or pre-existing datasets.

3
New cards

Quantitative Data

Numerical data that can be measured or counted, classified either as discrete (e.g., number of students) or continuous (e.g., height, weight, temperature).

4
New cards

Qualitative Data

Non-numerical data describing categories or qualities, classified either as nominal (e.g., blood group, colour) or ordinal (e.g., low, medium, high).

5
New cards

Descriptive Statistics vs. Inferential Statistics

Descriptive statistics summarizes data using numerical measures (mean, median, mode, variance, standard deviation) and visual tools, whereas inferential statistics uses sample data to draw conclusions about a population through estimation and hypothesis testing.

6
New cards

Analysis of Variance (ANOVA)

A statistical technique used to determine whether the means of three or more groups differ significantly by comparing between-group variation to within-group variation.

7
New cards

F-Statistic (ANOVA)

The test statistic in ANOVA computed as F=MSBMSWF = \frac{\text{MSB}}{\text{MSW}}, representing the ratio of Mean Square Between groups (between-group variation) to Mean Square Within groups (within-group variation).

8
New cards

Correlation Coefficient (rr)

A numerical measure ranging from −1-1 to +1+1 that quantifies the strength and direction of a linear relationship between two variables, calculated as r=Cov(X,Y)σXσYr = \frac{\text{Cov}(X, Y)}{\sigma_X \sigma_Y}.

9
New cards

Simple Linear Regression

A statistical method used to predict the value of one dependent variable (YY) using a single independent variable (XX) via the model equation Y^=b0+b1X\hat{Y} = b_0 + b_1 X.

10
New cards

Multiple Linear Regression

A statistical technique used to model and predict the value of a continuous dependent variable using two or more independent variables according to Y=b0+b1X1+b2X2+⋯+bnXn+ϵY = b_0 + b_1 X_1 + b_2 X_2 + \dots + b_n X_n + \epsilon.

11
New cards

Logistic Regression

A statistical classification technique that models the probability of a categorical (typically binary) outcome using the logistic sigmoid function P(Y=1∣x)=11+e−zP(Y = 1 \mid x) = \frac{1}{1 + e^{-z}}, where z=b0+b1Xz = b_0 + b_1 X.

12
New cards

K-Means Clustering

An unsupervised machine-learning algorithm that partitions observations into KK predefined clusters by iteratively assigning each point to its nearest centroid and recalculating the centroids until stabilization.

13
New cards

R Markdown

A file format (.Rmd) authored in RStudio that combines formatted narrative text, executable R code chunks, LaTeX equations, and generated outputs into reproducible reports (HTML, PDF, or Word).

14
New cards

R Markdown Code Chunk Options

Parameters controlling chunk execution and display: echo toggles code display, eval toggles code execution, include hides code and output while executing, and results='hide' suppresses printed results.

15
New cards

R Markdown vs. R Notebook

R Markdown is primarily structured for batch knitting to compile final publication reports, whereas an R Notebook allows interactive, individual chunk execution with output rendered directly below each chunk for exploratory analysis.

16
New cards

Exploratory Data Analysis (EDA)

The preliminary process of examining, summarizing, and visualizing datasets to understand their essential characteristics, uncover patterns, detect anomalies, and test assumptions before modeling.

17
New cards

Central Tendency Measures

Statistical values representing the typical center of a distribution, including the Mean (xˉ=∑xin\bar{x} = \frac{\sum x_i}{n}), Median (the middle observation of an ordered set), and Mode (the most frequently occurring observation).

18
New cards

Dispersion Measures

Metrics describing data spread around a central value, including Range (Maximum−Minimum\text{Maximum} - \text{Minimum}), Variance (average squared deviation from the mean), and Standard Deviation (the positive square root of variance).

19
New cards

Anomaly (Outlier)

An observation that deviates substantially from the overall pattern of the data, commonly caused by data entry errors, faulty instrumentation, unexpected events, or natural variation.

20
New cards

Covariation

The tendency of two or more variables to vary together in a consistent pattern, classified as positive covariation, negative covariation, or no covariation.

21
New cards

Skewness

A measure of the asymmetry of a probability distribution: symmetrical distributions have Mean=Median=Mode\text{Mean} = \text{Median} = \text{Mode}; positive skew has a right tail (Mean>Median>Mode\text{Mean} > \text{Median} > \text{Mode}); and negative skew has a left tail (Mean<Median<Mode\text{Mean} < \text{Median} < \text{Mode}).

22
New cards

Conditional Probability

The probability of an event AA occurring given that another event BB has already occurred, formulated as P(A∣B)=P(A∩B)P(B)P(A \mid B) = \frac{P(A \cap B)}{P(B)}, where P(B)>0P(B) > 0.

23
New cards

Normal Probability Distribution

A continuous, bell-shaped, and symmetric probability distribution where Mean=Median=Mode\text{Mean} = \text{Median} = \text{Mode}, the total area under the probability density curve equals 11, and tails extend asymptotically to infinity.

24
New cards

ggplot2

An R data visualization package based on the Grammar of Graphics that constructs plots systematically by layering data, aesthetic mappings, geometries, scales, coordinates, and themes.

25
New cards

Aesthetic Mappings (aes)

Specifications defined within aes() that map variables in a dataset to visual properties of a plot, such as x, y, color, fill, size, shape, and alpha.

26
New cards

Faceting

The technique of splitting a plot into multiple sub-panels based on categorical grouping variables using facet_wrap() (for a single conditioning variable) or facet_grid() (forming a 2D matrix of rows and columns).

27
New cards

Geometric Objects (geoms)

Functions in ggplot2 that specify the graphical shape used to represent observations, including geom_point(), geom_line(), geom_bar(), geom_histogram(), and geom_boxplot().

28
New cards

Position Adjustments (ggplot2)

Mechanisms that handle overlapping graphical elements: identity plots points at raw coordinates, dodge places elements side-by-side, stack places bars on top of each other, and jitter adds small random noise to prevent overplotting.

29
New cards

Zooming via coord_cartesian()

A method to focus on a specific sub-region of a ggplot2 visualization by restricting coordinate boundaries (e.g., ylim = c(80, 200)) without discarding underlying data from statistical transformations.

30
New cards

Theme (ggplot2)

A component that controls all non-data visual aspects of a plot, including background colors, grid lines, text typography, axis styling, and legend positions.

31
New cards
<p>Base Graphics ("Pen and Paper" Model)</p>

Base Graphics ("Pen and Paper" Model)

R's default procedural graphics system where plots are constructed on a blank canvas by sequentially drawing points, lines, and titles; once added, elements cannot be dynamically removed or modified.

32
New cards
<p>Lattice Graphics (Trellis Graphics)</p>

Lattice Graphics (Trellis Graphics)

An R graphics system that uses a formula syntax (y∼x∣gy \sim x \mid g) and a conditioning engine to automatically split data across multiple aligned panels with shared coordinate axes.

33
New cards

Box Plot

A compact univariate visualization of a continuous numerical variable summarizing the five-number summary: minimum, first quartile (Q1Q_1), median, third quartile (Q3Q_3), and maximum, with individual points identifying outliers outside the whiskers.

34
New cards

Mosaic Plot

A graphical display for contingency tables where the area of each rectangular tile is proportional to the cell frequency of two or more crossed categorical variables.

35
New cards

Biplot

A multivariate exploratory plot resulting from Principal Component Analysis (PCA) that overlays individual observation score points onto directional loading vectors (arrows) representing the original variables.

36
New cards

Choropleth Map vs. Dot Density Map

A choropleth map shades geographic boundaries in proportion to an aggregated statistical metric, whereas a dot density map places dots across a region where each dot represents a specific count or occurrence of a phenomenon.

37
New cards

Raster vs. Vector Plot Export Formats

Raster formats (PNG for lossless web displays; JPEG for lossy continuous photos) are pixel-based and lose quality when scaled, while vector formats (PDF for academic printing; SVG for scalable web interactivity) store geometric commands and are infinitely scalable.

38
New cards

Implicit Type Coercion in R

The automatic conversion of heterogeneous elements within an atomic vector to the least restrictive data type following the hierarchy: Logical→Integer→Numeric (Double)→Character\text{Logical} \rightarrow \text{Integer} \rightarrow \text{Numeric (Double)} \rightarrow \text{Character}.

39
New cards

Atomic Vector vs. List

An atomic vector is a one-dimensional, homogeneous data structure where all elements must share the identical data type, whereas a list is a one-dimensional, heterogeneous container that can hold elements of varying types and structures.

40
New cards

Matrix vs. Data Frame

A matrix is a two-dimensional homogeneous data structure where every cell must contain the identical data type, while a data frame is a two-dimensional tabular structure that is heterogeneous across columns but homogeneous within each column.

41
New cards

Factor (R Data Structure)

A specialized statistical data structure used in R to manage categorical variables, storing distinct predefined values as integer codes mapped to descriptive text labels called levels.

42
New cards

Logical Operators: & vs. &&

The single ampersand & evaluates logical AND across all corresponding elements of two vectors (element-wise), whereas the double ampersand && is a short-circuit operator that evaluates only the first element of each vector.