Who are you?
How will this course work?
What are we doing here?
Rethinking everything
Name
Lab
Brief research description
Why are you here?
Who are you?
How will this course work?
What are we doing here?
Rethinking everything
https://etherpad.wikimedia.org/p/609-intro-2024
To share polls and code
Can use for collaborative note-taking
Research shows that this enhances learning!
It’s also a way to ask me a question during class
## Some Scaffolding Reading
The Questions I Will Ask About Readings at Random - What did you not get? (Don’t be shy!) (This might be all we talk about).
What blew your mind?
How do you apply this to your own work?
(but be Bayesian about it)
Who are you?
How will this course work?
What are we doing here?
Rethinking everything
Objective 1) To learn how to think about your study system and research question of interest in a systematic way and match it with a realistic process-based model.
Objective 2) To understand how to build and fit complex models in a Bayesian framework.
Objective 3) Provide the grounding needed to effectively collaborate with statistical experts.
Objective 4) Allow students to gain the knowledge necessary to become life-long learners of data analysis techniques, able to incorporate new techniques into their analytic toolbelt as needed.
@juliaprogramming Which one are you? #statistics #mathtok #mathematics #math #cs #computerscience #bayesian #stem #stemtok #probability #maths
♬ problems by mother mother - ₍ᵔ·͈༝·͈ᵔ₎
Who are you?
How will this course work?
What are we doing here?
Rethinking everything
Who are you?
How will this course work?
What are we doing here?
Rethinking everything
Estimate probability of a parameter
State degree of believe in specific parameter values
Evaluate probability of hypothesis given the data
Incorporate prior knowledge
I have a bag with 6 stones. Some are black. Some are white.
I’m going to draw stones, one at a time, with replacement, and let’s see
the number of ways that the draw could have been produced.
After 4 draws, let’s calculate the probability of W white stones and B
black stones. Let’s formalize how we made this calculation. This leads
to conditional versus marginal probabilities.
Now, I will look at the stones, and introduce a prior or some sort
for W.
Let’s do a new set of draws, but this time, on the board, update our
posterior.
And finally, relate this to the definition of Bayes theorem in 2.3.4 pg
36.
Use dplyr
and mutate for the following.
This is from the Rcode on page 42, box 2.6. Assume 100 draws.
library(rethinking)
#alist is a list for used to define a model
draws_mod <- alist(
#our likelihood
w ~ dbinom(100, p)
#our prior - can be something else if you want!
p ~ dunif(0,1)
)
#define the data - you fill in the probability
draws_data <- list(w = XXX)
#We will use map - maximum a posteriori sampling
#Note, I use rethinking:: in case you've loaded purrr
draws_fit <- rethinking::map(draws_mod,
data = draws_data)