AiTeky Original Interactive Learning & Practice Intermediate
Statistics in R: tests, intervals and models the way analysts use them
Describe data, give honest margins of error, test differences in means and rates, fit linear and logistic regression, and plan a test's sample size in R, then report an A/B test and a loan-default model.
R was made for statistics. The tests and models that health researchers, banks, insurers and marketing teams rely
on are each one line in R: t.test(), prop.test(), chisq.test(), lm(), glm(). The hard part is not running
them. It is choosing the right one, reading the output correctly and explaining it in plain words. That is what
this course teaches.
You need R basics and the first two tidyverse lessons. The Python statistics course is not needed, but if you took it, you will see the same ideas here with less code.
We use a hospital's waiting times, Pune flat rents, a website sign-up test, a class's exam results and a lender's loans.
- Learn lessons explain one method at a time, with small exercises you can try again and again.
- Industry ready lessons give you real files, real questions and the interview questions that go with them.
After this course, the R for health, pharma and insurance course takes you into survival analysis and claim models.
- βΆ Run code in your browser. Nothing to install
- β Exercises that check themselves
- π Tap a word to see what it means
Locked. Sign up free
Learn
Understand each idea with everyday examples. No coding background needed.
- 01 25 min Free sample π AiTeky Pass Describe data and compare groups in a few numbers Sum up a number column with mean, median, standard deviation, quantiles and the interquartile range, describe each group with dplyr, and choose between the mean and the median when data is skewed.
- 02 30 min π AiTeky Pass Margins of error and the t-test Put a 95% confidence interval on an average, read every line of R's t.test() output, compare two groups with a two-sample t-test, check the answer with a non-parametric test, and explain a p-value without the common mistakes.
- 03 30 min π AiTeky Pass Compare rates and counts: prop.test and chisq.test Put a margin of error on a rate, compare two rates with prop.test(), test whether two category columns are linked with chisq.test(), read the expected counts, and use Fisher's exact test when counts are small.
- 04 35 min π AiTeky Pass Linear regression with lm(): what moves the rent? Fit a straight-line model with lm(), read the coefficients, their intervals and R-squared from summary(), add several columns and a category, predict new flats with an honest range, and check the residuals.
- 05 35 min π AiTeky Pass Logistic regression with glm(): yes or no outcomes Model a pass or fail with glm(family = binomial), turn coefficients into odds ratios with their intervals, predict a probability for a new student, and check the model with a simple table at a chosen threshold.
Industry ready
Real problems from real jobs, and the questions interviewers ask about them.
- 06 40 min π AiTeky Pass On the job: report an A/B test honestly, and plan the next one Check an A/B test's split, compare sign-up rates with prop.test(), look at days and devices without fishing for results, write the decision, and use power.prop.test() to plan how many visitors the next test needs, with the interview questions.
- 07 45 min π AiTeky Pass On the job: a loan-default model a credit committee can read Explore 2,000 personal loans, fit a logistic regression for default with glm(), report odds ratios with intervals, test it on loans it has not seen, rank applicants into risk bands, compare approval cut-offs by their cost, and practise the interview questions.

