B.Sc. Physics /Core Science

Data analysis

Laboratory & Practicals · free study notes · Updated

Core Science – Data Analysis

B.Sc. Physics – Program Overview

Data analysis is the systematic process of collecting, organizing, interpreting and presenting data.
In experimental physics it turns raw measurements into meaningful physical quantities and uncertainties, enabling comparison with theory.


1. Simple Explanation

  1. Collect – Gather measurements under controlled conditions.
  2. Clean – Remove outliers, correct obvious errors.
  3. Quantify – Compute central values (mean, median), spread (standard deviation, variance).
  4. Model – Fit data to a theoretical function (linear, polynomial, exponential, etc.).
  5. Validate – Assess goodness‑of‑fit (χ², R², residuals) and test hypotheses.
  6. Report – Present results with uncertainties, graphs, tables, and clear conclusions.

2. Key Points

Topic What to Know Why It Matters
Uncertainty Type‑A (statistical) vs Type‑B (systematic). Determines reliability of results.
Propagation of Errors Use partial derivatives or Monte‑Carlo methods. Allows calculation of uncertainties for derived quantities.
Statistical Measures Mean, Median, Mode, Standard Deviation, Variance, RMS. Summarize data characteristics.
Probability Distributions Gaussian (normal), Poisson, Binomial. Model measurement noise and counting statistics.
Correlation & Covariance Correlation coefficient (r), covariance matrix. Detects linear dependence between variables.
Regression & Fitting Linear regression, polynomial fit, non‑linear least squares. Extract physical parameters (slope = constant).
Goodness‑of‑Fit χ², reduced χ², R², residual plots. Evaluate how well model describes data.
Hypothesis Testing Null hypothesis (H_0), p‑value, significance level. Decide if observed effect is real or due to chance.
Data Representation Histograms, scatter plots, error bars, box‑plots. Visualise data and uncertainties.
Software Tools Excel, Origin, MATLAB, Python (NumPy, SciPy, Matplotlib), R. Automates calculations and visualisations.

3. Worked Example

Problem:
A student measures the period (T) of a simple pendulum (length (L = 0.50,\text{m})) 10 times. The readings (in seconds) are:

Trial (T_i) (s)
1 1.213
2 1.219
3 1.207
4 1.215
5 1.221
6 1.209
7 1.217
8 1.212
9 1.218
10 1.210

Goal: Compute the mean period, its standard error, estimate the gravitational acceleration (g) and its uncertainty.

3.1 Mean and Standard Deviation

[ \bar{T} = \frac{1}{N}\sum_{i=1}^{N} T_i = \frac{12.124}{10} = 1.2124,\text{s} ]

[ s = \sqrt{\frac{\sum (T_i-\bar{T})^2}{N-1}} = 0.0052,\text{s} ]

Standard error of the mean:

[ \sigma_{\bar{T}} = \frac{s}{\sqrt{N}} = 0.0016,\text{s} ]

3.2 Gravitational Acceleration

For a simple pendulum (small angles):

[ T = 2\pi\sqrt{\frac{L}{g}} ;;\Rightarrow;; g = \frac{4\pi^2 L}{T^2} ]

Insert (\bar{T}):

[ g = \frac{4\pi^2 (0.50,\text{m})}{(1.2124,\text{s})^2} \approx 9.76,\text{m/s}^2 ]

3.3 Propagation of Uncertainty

Using error propagation for (g = f(T,L)):

[ \left(\frac{\Delta g}{g}\right)^2 = \left( -2\frac{\Delta T}{T}\right)^2 + \left(\frac{\Delta L}{L}\right)^2 ]

Assume length is known exactly (\Delta L = 0). Then

[ \Delta g = g \times 2 \frac{\Delta T}{T} = 9.76 \times 2 \frac{0.0016}{1.2124} \approx 0.026,\text{m/s}^2 ]

Result:

[ g = (9.76 \pm 0.03),\text{m/s}^2 ]

3.4 Plotting & Goodness‑of‑Fit

  • Histogram of (T_i) shows a narrow Gaussian distribution.
  • Scatter plot of (T_i) vs. trial number shows no trend → good repeatability.
  • Residuals: (T_i - \bar{T}) are random, confirming normality.

4. Quick Revision Summary

Concept Formula / Key Idea Typical Use in Physics
Mean (\bar{x} = \frac{1}{N}\sum x_i) Central tendency
Standard Deviation (s = \sqrt{\frac{\sum(x_i-\bar{x})^2}{N-1}}) Data spread
Standard Error (\sigma_{\bar{x}} = \frac{s}{\sqrt{N}}) Uncertainty on mean
Error Propagation (\Delta f = \sqrt{\sum (\frac{\partial f}{\partial x_i}\Delta x_i)^2}) Derived quantity uncertainty
Linear Fit (y = mx + b\

Your note

Page 1

Doubt hai is topic me?

Free AI teacher se poocho — 24/7, step by step.