Statistics Flashcards
What are measures of central tendency
Median, Mean, and Mode
Median is the middle number when the numbers are in numerical order, it is more resistant to outliers than the mean
Mean = average of numbers (sum all numbers and divide by amount of int in set) - the mean is least resistant to outliers
What is variance? What is it used for?
Variance tells us how much the values in a dataset differ from the mean value.
A large variance results indicates large variability in the data
A small variance indicates small variability in data
–
Population Variance = the sum of (x - mean)^2 /n (aka the average of the dev^2
Sample Variance = the sum of (x - mean)^2 /n-1 ; -1 helps to make up for the variability found in the population compared to the sample data (aka the average of the dev^2)
If there is a constant increase in the values, the variance doesn’t change even if the mean does
What is the standard deviation and why do we need it?
Variance is a squared formula resulting in squared units which don’t make sense mathematically. So we take the sq rt of the variance to get the standard deviation (and correct units)
things to review:
t-test
z-test
ANOVA
confidence intervals (inferential)
regression analysis (inferential
correlation
r squared and RMSD
https://www.linkedin.com/learning/excel-statistics-essential-training-1/the-z-test-for-independent-samples?resume=false&u=36492188
https://www.khanacademy.org/math/ap-statistics/density-curves-normal-distribution-ap
https://www.datacamp.com/blog/statistics-interview-questions - make this into flashcards
what does Right skewed mean?
the data has a positive skew or a tail that is to the right. this means that the mean is greater than the median
what does Left skewed mean?
the data has a negative skew or a tail that is to the left. this means that the median is greater than the mean
what does skewness measure
asymmetry of a dataset around its mean
what is a histogram? what does it show?
a graphical representation of a distribution of data. it divides the data into bins or intervals to show the frequency or count of datapoints within each bin. they are used for continuous data and help to identify patterns including skewness, mode, and outliers
what is inferential statistics
it is the use of statistics to make predictions about a population based on a random sample from that population. we use this data to draw conclusions on large populations
what is descriptive statistics
it is the use of statistics to summarize and describe the features of the dataset including measures of central tendency.
what are the 4 main sampling methods?
- random sampling = every member has an equal chance of being selected
- systemically sampling = selecting every k-th member of the population starting at a randomly determined point
- stratified sampling - divides population into subgroups with random samples taken from ea
- cluster sampling - dives population into clusters and randomly selects some clusters to sample all members in
what is the central limit theorem?
sampling air states that the sampling distribution of the sample mean will approach a normal distribution as the sample size increases, regardless of the population’s distribution – provided that the samples are indeed and identically distributed
What are the differences: joint, marginal and conditional probabilities?
marginal = the prob of a single event occurring regardless of other events
joint = prob of 2 events occurring together at the same time
conditional = probability of an event occurring given that another event has occurred (not at the same time)
what is probability distribution? & what are the two types?
it describes how random variables are distributed.
The two main types are discrete ex a binomial distribution
2. continuous = ex: normal distribution
what is a normal distribution
a bell shaped curve that is symmetric around the mean. aka the mean is equal to the median
approx 68% of the data is 1 st dev
95% is 2 st dev
99.7% is 3 st deviations
what is a binomial distribution
there are two distinct peaks, usually indicating 2 results that have a greater likelihood than others. ex a coin flip
what is a p-value
p-value is our way of determining if a test is statistically significant, or how the probability of obtaining a test statistic randomly as extreme as the one observed. 0.05 is usually the accepted p-value
what’s the difference between type I and type II errors?
type 1 error is a false positive
type 2 error is a false negative
what are examples of parametric tests?
t-test
z-test
ANOVA
what is a regression analysis?
it is method to examine the relationship between independent and dependent variables – how the dependent variable changes based on the indep variable
what is a residual?
it is the difference between the expected output (based on the regression analysis) and the true value. they help to determine the fit of our model
what is a coefficient in a linear regression model?
it is basically the slope, it describes the amount of change that is expected to be seen from the dependent variable based on the indep variable
what is a confidence interval?
a 95% confidence interval states how confident we are that if we were to take many different samples about 95% of the intervals would contain the true population parameters.
we are 95% confident the population parameter lies in the estimated interval
what is a t-test?
t-test is used to compare the means of 2 groups, usually when there is a small sample size and we don’t know the population st dev. you use a table to compare it to the critical value
what is a z-test
a test to compare the sample and population means OR 2 sample means – use when we know the standard deviation f the population ; use when the sample size is large
use a z-score to determine if the null hypothesis is rejected
ANOVA = Analysis of Variance - when to use
this tests for significant differences between 3 or more groups
compare to the F distribution table
what value are we looking at to determine correlation? what is correlation?
correlation measures the strength and direction of a relationship between 2 variables. We are looking at Pearson’s r (or the correlation coefficient)
Correlation ranges from -1 = strong negative correlation, to +1 strong positive correlation
what are the cut offs for type of correlation
> = 0.7 = strong correlation
0.4<x<0.7 = moderate correlation
<0.4 = weak correlation
what is r squared value
it measures how well a regression model fits the data
it has similar cut offs to correlation - we want a strong fit to be r-squared >0.7
0.4<x<0.7 = moderate fit
<0.4 = weak fit
what is RMSD - root mean square deviation
this measures the average magnitude of error prediction in a model – we want this number to be small
what is the hdeip? what is important when starting a project?
hypothesis, data collection, exploration, insights, plan
first creating hypothesis based on your data
next create an issue tree based on that hypothesis or problem statement
then ensure your data is ready for exploration. clean up the data as necessary to effectively run tests including correlation analysis or investigative vizulations. the goal is to identify patterns and trends
ensure you are doing macro analysis before micro analysis
based on your findings create actionable insights and summarize work in a way that will best meet your audience’s needs
/develop a plan to implement changes or make recommendations based on those insights
what are 3 essential questions to creating visuals?
- type of data, 2. what needs to be communicated, 3. who is the end user.
for example, categorical data should be visualized using a type of bar chart or pie chart while continuous time series would be better fit for a line chart. if we are communicating comparison a regular bar chart would do, but if we need to communicate composition a 100% stacked bar chart would be best.
lastly, we need to consider the audience and the level of detail they need to see. an executive likely wants high level KPIs where a departmental manager may need more specifics in certain subject areas
what charts show distribution?
histogram & box and whiskers plot
what charts show composition?
pie chart, donut chart, stacked bar chart, stacked area chart
what charts show comparison?
bar chart, line chart, scatter plot
what are the 4 types of data for data visualization?
categorical data, numerical data, time series data, relational data
what charts are best for categorical data?
bar chart, pie chart
what charts are best for numerical data?
histogram, line chart, scatterplot, box plot
what charts are best for time series data?
line chart
what charts are best for relational data?
scatter plots