Author Archives: Joanna Diong

Manipulating data with Pandas – Part 1

Pandas (i.e. panel data) is a Python library designed to manipulate data in tables and time series. Pandas uses many Numpy library functions to manipulate data stored in dataframes, analogous to a spreadsheet or table. Let’s look at some basic Pandas functions to manipulate data, and plot the data using the Seaborn plotting package. To begin, import libraries and simulate

Read more

Break, Continue and Pass statements using for loops in Python

In programming, for loops are used to automate repetitive tasks, such as analysing similar datasets from different subjects. Sometimes, a dataset might be slightly different to another such that the data can be used but needs to be analysed differently in the loop. For example, data might have been accidentally sampled at a higher rate, or a nested trial needs

Read more

What are degrees of freedom in statistics? – Part 2

In a previous post we saw that t distributions with more degrees of freedom approximate the Normal distribution more closely, and degrees of freedom are increased by testing more subjects. How do degrees of freedom influence t values when calculating confidence intervals? The confidence interval about an effect indicates how the effect varies if the study is repeated many times.

Read more
« Older Entries