**Moisés Santillán Lab**@ Cinvestav Monterrey

## Introduction to Programming and Statistics

This is a propedeutic course for students applying to the MSc program in Biomedical Engineering and Physics, offered at Cinvestav Monterrey. It's objective is to introduce the students to basic concepts and techniques in Python programming , as well as to the those of statistical analysis of experimental data. To this end, we study some classical examples of mathematical models of biological phenomena, at scales ranging from a single cell to ecosystems. At the end, the students are expected to have a working knowledge of these subjects.

Course outline:

- Introduction to Python.
- Data types (integer, floating point, string, Boolean).
- Basic arithmetic operations.
- Variables.
- Data structures (tupple, list, array).
- Conditional (it, then, else).
- Cycles (for, while)

- Structured Programming Paradigm
- Flux Diagrams
- Functions.

- Plotting in Python (Matplotlib).
- Programming exercises (write functions for)
- Computing the factorial of an integer number.
- Finding the maximum of a list of floating point numbers.
- Ordering a list of floating point numbers from maximum to minimum.
- Finding the resolution of a list of floating point numbers in Python.
- Finding our if an integer number is prime or not.
- Giving a list of namers, ordering it alphabetically and finding the frequency of each name.
- Estimating the value of pi via Montecarlo method.
- Computing the time a 1-dimensional Brownian Particle takes to escape from a narrow tube closed on one extreme.

- Measurement Process.
- Accuracy and uncertainty.
- Random and systematic errors.

- Random variables and probability distributions.
- Intrinsic variability and variability introduced by experimental errors.

- Sampling.
- Histogram
- Mean value and standard deviation estimation.

- Regression.
- Linear Regression.
- Power-law and exponential regressions.

- Statistics exercises.

References:

- Y. Daniel Liang,
*Introduction to programming using Python,*Pearson, 2013, ISBN: 978-0-13-274718-9 - Thomas Haslwanter,
*An introduction to statistics with Python, with applications to the life sciences,*Springer, 2016, ISBN: 978-3-319-28315-9