AITeky Learn

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.

Locked. Sign up free

Learn

Understand each idea with everyday examples. No coding background needed.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.

  1. 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.
  2. 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.

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in