SynfraCore
Synfracore
Start Learning
Navigation

Academies

Platform

RoadmapsLabsCertificationsInterviewPYQsAI AssistantCareer
Start Learning Free Learning Roadmaps

Statistics for Analysts — Cheatsheets

Quick reference — commands, syntax, and patterns

📄
Last updated Dec 2026
Expert Content

Statistics for Analysts — Cheatsheet

Descriptive Statistics

Excel/Sheets:
  =AVERAGE(range)            Mean
  =MEDIAN(range)              Median
  =MODE.SNGL(range)           Mode (single most frequent value)
  =STDEV.S(range)             Sample standard deviation (÷ n-1) — data is a SAMPLE
  =STDEV.P(range)             Population standard deviation (÷ n) — data is the WHOLE population
  =VAR.S(range)                Sample variance
  =QUARTILE.INC(range,1)       Q1 (25th percentile)
  =QUARTILE.INC(range,3)       Q3 (75th percentile)
  =PERCENTILE.INC(range,k)     k-th percentile (k from 0 to 1)
python
import statistics
statistics.mean(data)        # mean
statistics.median(data)      # median
statistics.mode(data)        # mode
statistics.stdev(data)       # sample std dev
statistics.pstdev(data)      # population std dev

Correlation and Regression

Excel/Sheets:
  =CORREL(x_range,y_range)         Pearson correlation (r), -1 to +1
  =SLOPE(y_range,x_range)          Regression slope (note: y first, then x)
  =INTERCEPT(y_range,x_range)      Regression intercept
  =RSQ(y_range,x_range)            R-squared
python
import numpy as np
r = np.corrcoef(x, y)[0, 1]
slope, intercept = np.polyfit(x, y, 1)
r_squared = r ** 2

Confidence Intervals and Hypothesis Testing

Excel/Sheets:
  =CONFIDENCE.T(alpha, STDEV.S(range), COUNT(range))   95% margin: alpha = 0.05
  =T.TEST(range1, range2, 2, 3)                          Two-tailed, two-sample unequal-variance t-test
python
from scipy import stats
t_stat, p_value = stats.ttest_ind(group_a, group_b, equal_var=False)   # Welch's t-test

The 4-Step A/B Test Checklist

1.Before starting: decide the sample size (or duration) and the minimum effect size worth detecting — write it down before looking at any results.
2.While running: don't peek and stop early at the first p < 0.05 moment — wait for the pre-committed point.
3.At the end: report both the p-value (is it real?) and the effect size (is it big enough to matter?).
4.Before shipping: check the result holds across major subgroups, not just in aggregate (Simpson's paradox).

Quick Decision Table

QuestionUse

|---|---|

"What's typical?" and outliers might existMedian, not mean
"How spread out, ignoring extremes?"IQR, not range
"Is my whole dataset the full population?"STDEV.P
"Is my dataset just a sample of a bigger group?"STDEV.S (the usual case)
"Do these two things move together?"Correlation (CORREL) — never implies causation alone
"Did my change actually help, or is this noise?"A/B test (two-sample t-test)

Memory line: When in doubt — median over mean, IQR over range, STDEV.S over STDEV.P, and effect size alongside every p-value.

Share:
Join our Community
Daily tips, job alerts, interview help — join engineers learning together
→
Also Worth Exploring
← Back to all Statistics for Analysts modules
← CertificationNotes →