100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Advanced Statistics and 'R' - lecture - up to week 1 $7.78   Add to cart

Class notes

Advanced Statistics and 'R' - lecture - up to week 1

 1 view  0 purchase
  • Course
  • Institution
  • Book

These are the notes taken during the Continuing Statistics and “R” lectures. The course is taught at Utrecht University.

Preview 2 out of 10  pages

  • November 16, 2024
  • 10
  • 2024/2025
  • Class notes
  • Erika tsingosi & yann hautier
  • All classes
avatar-seller
LECTURE 1: about this course + R and RStudio + fundamentals of statistics VSR

SEMESTER 1 | ERIKA TSINGOSI + YANN HAUTIER




ABOUT THIS COURSE


● learning goals
○ expand statistics toolbox
○ reason about appropriate experimental approaches
and statistical tools
○ critically evaluate analyses and outputs
○ learn the basics of data science
○ master the tools for creating a reproducible analysis
in R
● final grade must be ≥ 5.5
○ attend all computer sessions
○ complete weekly quizzes
○ complete all 4 hand-in assignments (30%) ● ?lm or help(lm) gives you help on lm function
○ pass the exam with a grade ≥ 5.5 (70%) ● helpful sources
○ http://tryr.codeschool.com/
○ http://www.cookbook-r.com/
R AND RSTUDIO ○ https://thecrashcourse.com/courses/what-is%20stat
istics-crash-course-statistics-1/
● statistics are done in R not RStudio; Rstudio is the tool ● outlier has a huge impact on the linear regression
○ RStudio is a IDE for R
● you have to annotate your script using #
● R automatically creates a code when you click on Import
Dataset which you need to paste in the script and save
● library() #get a list of all installed packages
● install.packages("ggplot2") #to install a package
● library(‘’ggplot2’’) #to load a package
○ no need to install a package again after it has been
installed, but it’s important to load it again
● hand in assignments need to be in pdf


● ggplot2 = grammar of graphics
○ https://ggplot2.tidyverse.org/
○ http://www.cookbook-r.com/Graphs/




1

, LECTURE 1: about this course + R and RStudio + fundamentals of statistics VSR

SEMESTER 1 | ERIKA TSINGOSI + YANN HAUTIER


○ n – 1 is used because you might get outliers by change
FUNDAMENTALS OF STATISTICS when you take a sample
⎯ sample measurements are on average closer to their
own mean than to the true mean of the population;
SAMPLING
subtracting 1 can correct for that bias when the
sample size is small
● flowchart of a study ○ Ȳ is a random variable
○ execution; while you're collecting data, you should already
make plots to see if the data makes sense




● to find the distribution of Ȳ we sample multiple times
○ when you add the different samples, you get the sampling
distribution of the sample mean Ȳ
○ sampling distribution of Ȳ is a t-distribution
⎯ t-distribution has a lower peak and fatter tails than the
normal distribution
● statistics quantifies uncertainty; statistics is about making sense
of the variation
○ descriptive statistics quantify
⎯ location or central tendency of the data; e.g. mean,
median
⎯ spread of the data; e.g. range, standard deviation
○ comparative statistics
⎯ compare different groups
⎯ based on location and spread
⎯ How likely is the sample compatible with our
expectation?
● population distribution; ideal value we would know if we’d
have perfect knowledge of measured individuals (almost always
impossible to measure)
○ most common measures for location and spread for a
population distribution are mean (μ) and standard
deviation (σ) ○ mu hat: mean of the sampling distribution of Ȳ
⎯ μ: sum of each individual measurement divided by the which is an estimate for the population mean (μ)
total number of measurements ⎯ you sum the sample means and divide it by the
⎯ σ: you square each measurement subtracted from the
number of samples
mean → sum the squares → divide it by the total
○ σȲ = standard deviation of the population / square
number of measurements → take square root;
standard deviation is the square root of the variance root of the sample size
⎯ population μ and σ are constant (they are not random ○ we usually don’t have the population standard
and don’t change, because the population is always deviation σ → that's why we estimate the spread of
the same) Ȳ with the sample standard deviation s
⎯ the estimate is the standard error of the mean =
sample standard deviation / square root of the
sample size



● sample distribution; random subset of the population
○ sample mean (Ȳ) and sample standard deviation (s)

2

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Ribizlik. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $7.78. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

77254 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$7.78
  • (0)
  Add to cart