Tag Archives: statistics

Simple linear regression in R

In statistics, we often want to fit a statistical model to be able to make broader generalizations. An important type of statistical model is linear regression, where we predict the linear relationship between an outcome variable and a predictor variable. In this post we will learn how to perform a simple linear regression in R. See our previous post for

Read more

What is an exact test? An example using Fisher’s Exact test

Suppose you conduct a study to compare an outcome between healthy people and people with stroke, but you want to check whether the proportion of men and women in each group are similar. The Fisher’s Exact test is often used to test differences in proportions between groups, similar to a Chi-Square test. But what is an exact test? This helpful

Read more

More on regression to the mean

Previously, we saw how regression to the mean can lead to false results. In a talk titled Regression towards the mean, or Why was Terminator III such a disappointment?, statistician Martin Bland explains this phenomenon and how it appears in different examples. The Victorian statistician Francis Galton measured the heights of parents and children and found that taller parents tended

Read more

Verify if data are normally distributed in R: part 2

In our previous post, we learned how to inspect whether or data were normally distributed or not using plots. It is always important to visualise our data. However, inspecting such plots is open for interpretation and, possibly, abuse. We will now learn how to analyse our data and generate numerical values that describe how our data are distributed. Quantifying the

Read more
« Older Entries Recent Entries »