Statistics for Psychology Chapters 1-6 Midterm

0.0(0)
Studied by 1 person
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
full-widthPodcast
1
Card Sorting

1/78

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:07 AM on 10/12/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

79 Terms

1
New cards
<p>Statistics Definition </p>

Statistics Definition

The study of variation — how to measure it, how to model it.

2
New cards

Data Generating Process (DGP)

The hidden, real-world mechanism that produces the data we observe, We never see the true DGP; we use data samples to infer how it works.

3
New cards

Population

The entire group you want to draw conclusions about

4
New cards

Sample

The specific subset of the population from which you collect data.

5
New cards

tally ()

Used to count frequencies and proportions of categorical data.

6
New cards

head ()

Shows the first 6 rows of a data frame to check its structure.

7
New cards

str()

Displays the internal structure of a data frame: data types, number of rows/columns

8
New cards

Tidy Data Structure

A strict data layout where each row = single case/observation, each column = a single variable, and each cell = a single value

9
New cards

Quantitative Variables

Numerical values where mathematical operations make sense

10
New cards

Qualitative (Categorical) Variables

Labels or categories

11
New cards

Quantitative variable R Type

int, num

12
New cards

Categorical data R Type

Factor, chr

13
New cards

as.factpr()

R function used to explicitly convert a quantitative/character variable into a categorical factor

14
New cards

Distribution

How often the different values of a variable occur in a dataset

15
New cards

gf_histogram()

Groups continuous data into equal-width "binsā€

16
New cards

gf_densitiy ()

Creates a smooth curve showing where data points are most concentrated

17
New cards

gf_bar()

Bar charts used for counting distinct categories

18
New cards

Modality

the number of peaks

19
New cards

Unimodal

one peak

20
New cards

Bimodal

two peaks

21
New cards

Uniform

flat

22
New cards

Skewness

the direction of the long tail

23
New cards

right-skewed (positive)

the tail stretching out to the right (higher values. The mean id typically pulled higher than the median.

24
New cards

Left-skewed (negative)

The tail stretches out to the left (lower values), The mean is typically pulled lower than the median

25
New cards

Symmetry

Mirror-image apparence on both sides of the center

26
New cards

faceting

using gf_facet_grid(Outcome ~ Predictor) to split a single plot into multiple panels based on a categorical grouping variable

27
New cards

Explaining vs. Describing

Moving from looking at one variable (univariate to looking at the relaitonship between two variables (bivariate)

28
New cards

Outcome Variable (Y)

The dependent variable; the thing you are trying to predict or explain (plotted on the y-axis

29
New cards

Explanatory Variable (X)

The independent variable; the thing that you suspect causes or predicts changesin the outcome (plotted on the x-axis)

30
New cards

Observational Studies

Reseachers observe variables without intervening. The studies can show correlation/association, but cannot prove causation due ot confounding variables

31
New cards

confounding variables

variables that influence both X and Y

32
New cards

Experimental Studies

Researchers actively manipulate the explanatory variable

33
New cards

Random Assignment

It distributes confounding variables equally across treatment groups, isolating X as the sole cause of changes in Y, allowing for causal conclusions.

34
New cards

Induced Variation

Variation created intentionally by a researcher’s experimental manipulation

35
New cards

Error/Real-World Variation

Natural difference among individuals, or measurement errors

36
New cards

Statisitical Model Definition

A simpliflied mathematical representation of the Data Generating Process

37
New cards

The empty Model Equation

Yi = b0 + ei

38
New cards

Why is the empty model empty?

contains zero explanatory variables

39
New cards

The Mean as the Ultimate Empty Model

For quantitative

40
New cards

What does the sum of all deviations of all data points from the mean equal?

Zero

41
New cards

Deviation

Distance

42
New cards

What does the mean do for the data?

Balances it

43
New cards

What does the mean do to the sum of squared deviations

minimises the SS deviations

44
New cards

R-code for fitting the empty model

lm(Outcome ~ NULL, data = Dataset)

45
New cards

Residuals

The mathematical definition for error for an individual case

46
New cards

Residuals equation

ei = Yi - Y-bar

47
New cards

Data point above the model’s prediction

residual = positive

48
New cards

Data point below the prediction

Residual = negative

49
New cards

Sum of Squares

SS = Sum(Yi-Y-bar)²

50
New cards

What does SS quantify?

total amount of error

51
New cards

Degrees of Freedom (df)

The number of indepdent pieces of information that went into calculating a statistic

52
New cards

Degree of freedom for the empty model

n - 1, n = sample size

53
New cards

Variance (s²)

The mean squared error —- quantifies the average squared distance from the model

54
New cards

Variance (s²) Equation

s² = SS/df = Sum(Yi-Y-bar)²/n-1

55
New cards

Standard Deviation (s)

The square root of variance

56
New cards

Standard Deviation Equation

s = Sqrt of s²

57
New cards

Standard Deviation Equation Purpose

Takes the square root of the variance unit and puts it into the original units of the data. This then tells us the typical distance a data point falls from the mean

58
New cards

Z-Scores (Standardized Scores)

Measures how many standard deviations a specific data point is away from the mean

59
New cards

Z-Score EQ

z = Yi-Y-bar/s

60
New cards

z-score exactly at the mean equals?

zero

61
New cards

Purpose of z-score

allows you to compare values from completely different distributions

62
New cards

Empirical Rule (ā€œ68-95-99.7)

In a bell-shaped distribution: ~68% of observations fall within ± 1 standard deviation of the mean; ~96% of observations fall within ± 2 standard deviations of the mean;and ~99.7% of observations fall within +/_ 3 standard deviations of the mean

63
New cards

Extracts the individual error values (ei) for every row

reside(EmptyModel)

64
New cards

Shows the predicted value (Y-bar) for each row

predict(EmptyModel)

65
New cards

Gives the area under the normal curve to the left of a given z-score (percentile)

pnorm(z-score)

66
New cards

The inverse of pnorm. Input a percentile/probability and it returns the corresponding z-score

qnorm(probability)

67
New cards

Visualizations for Quantitative variables

Histogram, Boxplot

68
New cards

VIsualizations for Categorical Variables

Frequency tables, Bar chart

69
New cards

Qualitative outcome variable visualizations

jitter plot, Boxplot, faceted histogram

70
New cards

Quantitaive outcome variable visualizations

scatterplot, faceted hsitogram

71
New cards

The select command — subsets columns

select(dataframe, column1, column2…). Returns a data frame that contains the columns that you specified as arguments.

72
New cards

The filter command — subsets rows

filter(dataframe, criteria). Returns a data frame that contains the rows that fit your criteria

73
New cards

Understand structure of data

str(dataframe)

74
New cards

R-code for arranging dataframe based on a specific variable, in descending order

datafram$variable

75
New cards

R-code for going from lowest to highest in a list

arrange(dataframe, (desc(variable))

76
New cards

R-code for going from highest to lowest in a list

arrange(dataframe, variable)

77
New cards

R-code for listing numbers’ frequency and numbers in order from lowest to highest

tally(dataframe$variable) or tally(~variable, data = dataframe)

78
New cards

R-code for displaying the last 6 rows

tail(dataframe)

79
New cards

R-Code for displaying the first 6 rows

head(dataframe)