Statistical Methods for Computer Science
Experimental and Empirical Research
- Empirical research involves observation-based investigations to establish causal relationships by manipulating independent variables and measuring dependent variables.

Pre-Experimental Designs:
- One-Shot Experimental Case Study: A single group receives treatment followed by observation ().
- One-Group Pretest-Posttest Design: A single group is observed before and after treatment ().
- Static Group Comparison: Two groups are compared where one receives treatment and the other does not (, ).
True-Experimental vs. Quasi-Experimental Designs:

Central Measures and Data Distributions
- Measures of Central Tendency:
- Mean: Average value of a set of scores.
- Median: Middlemost item in an ordered set; unaffected by extreme values.
- Mode: Most frequently occurring value; unaffected by extreme values and can be unimodal, bimodal, or multimodal.

Central Limit Theorem (CLT):
- States that the distribution of sample means approaches a normal distribution with standard deviation .
- Probability density function equation:
Kernel Density Estimation (KDE): A non-parametric technique for estimating the probability density function of a random variable.
Normal vs. Student's t-Distribution:
- Normal Distribution: Symmetric curve centered at with standard deviation (-- rule).
- t-Distribution: Uses degrees of freedom (); has heavier tails than a standard normal distribution but approaches the standard normal distribution (-distribution) as .
Statistical Hypothesis Testing and T-Tests
Assumptions for T-Tests: Continuous or ordinal data, random sampling, normal distribution, sufficient sample size, and equal variance across groups (for independent two-sample tests).
Types of T-Tests:
- One-Sample t-Test: Compares a group mean against a population or theoretical mean :
- Independent Two-Sample t-Test: Compares means of two independent groups ( and ) with :
- Paired Sample t-Test: Compares mean differences in repeated measurements on the same subjects with :
Analysis of Variance (ANOVA)
- Purpose: Evaluates if statistically significant differences exist across three or more group means.
- ANOVA Variations:
- One-Way ANOVA: Compares multiple independent groups across a single factor ().
- Two-Way ANOVA Without Replication: Double-tests a single group across two factors.
- Two-Way ANOVA With Replication: Evaluates multiple groups undergoing multiple treatment conditions to assess both main effects and interaction effects.
Pearson's Chi-Square Test
Purpose: Evaluates independence between categorical variables in a contingency table.
Calculations:
- Expected Frequencies ():
- Chi-Square Statistic ():
- Degrees of Freedom ():
Decision Rule: Reject null hypothesis if calculated value or if ().