![R Green and Python](/img/default-banner.jpg)
- 10
- 7 672
R Green and Python
Germany
Приєднався 26 чер 2020
Welcome to my personal channel. I usually share random content that I like. Hope you will enjoy it.
When Central Limit Theorem (CLT) Fails?
library(tidyverse)
library(Rcpp)
library(patchwork)
n = 30
num_samples = 1000
# Normal dist:
normal_means = rnorm(num_samples, mean = 0, sd = 1 / sqrt(n))
# cauchy Dist:
sourceCpp('cauchy_dist.cpp')
cauchy_means = dist_cauchy(n = n, num_samples = num_samples)
mydata = tibble(
dist_norm = normal_means,
dist_cauchy = cauchy_means
)
p1 =
ggplot(data = mydata, aes(x = dist_norm)) +
geom_density(fill = 'orange') +
labs(title = 'Normal Distribution', x = NULL, y = NULL) +
theme_minimal()
p2 =
ggplot(data = mydata, aes(x = dist_cauchy)) +
geom_density(fill = 'orange') +
labs(title = 'Cauchy Distribution', x = NULL, y = NULL) +
theme_minimal()
p1 + p2
library(Rcpp)
library(patchwork)
n = 30
num_samples = 1000
# Normal dist:
normal_means = rnorm(num_samples, mean = 0, sd = 1 / sqrt(n))
# cauchy Dist:
sourceCpp('cauchy_dist.cpp')
cauchy_means = dist_cauchy(n = n, num_samples = num_samples)
mydata = tibble(
dist_norm = normal_means,
dist_cauchy = cauchy_means
)
p1 =
ggplot(data = mydata, aes(x = dist_norm)) +
geom_density(fill = 'orange') +
labs(title = 'Normal Distribution', x = NULL, y = NULL) +
theme_minimal()
p2 =
ggplot(data = mydata, aes(x = dist_cauchy)) +
geom_density(fill = 'orange') +
labs(title = 'Cauchy Distribution', x = NULL, y = NULL) +
theme_minimal()
p1 + p2
Переглядів: 43
Відео
Positron: Next Generation IDE for #python and #R
Переглядів 861Місяць тому
Positron: Next Generation IDE for #python and #R
#Polars Tutorial 2 (#filter)
Переглядів 433 місяці тому
I briefly demonstrate subsetting the rows in #polars
#Polars Tutorial 1 (#select)
Переглядів 593 місяці тому
I briefly demonstrate how to select columns in polars
#Tidyverse (#R) style data wrangling in #Python - Part 1
Переглядів 2862 роки тому
Apply the #Tidyverse style data wrangling in #Python using pipes. It gets much easier to apply the same syntax in Python if you are #R user.
Frequentist Confidence Intervals and Bayesian Credible Intervals
Переглядів 1,8 тис.2 роки тому
This video aims to explain a commonly misunderstood concept, the confidence intervals.
Use R and Python Together
Переглядів 1382 роки тому
This video shows how to use #R and #Python together in one single #Rmarkdown file. Then we create a simple plot in #Matplotlib using the values created in #R.
Estimate A Basic Bayesian Regression with rstanarm package in #R
Переглядів 4,4 тис.3 роки тому
This video demonstrates a basic bayesian regression in #R using the #rstanarm package.
it can be better if github copilot supported
Why this and not neovim, or vim, even vi? Even nano is catching up.
👏🏻 danke für Information
PP_check looks just great, congrats
Thanks, better understanding now
Great, thanks for the video !!! How do you set the autocomplete tool in R studio?
In RStudio, simply go to tools -> global options -> Code -> Completions -> Make everything automatic
Great tutorial, keep it up
Would it be possible to do a tutorial on how to create a logistic regression with random effects using rstan?
Thanks for the clear explanation, now I understand very clearly.
Many thanks ☺️
It is a useful tutorial for bilinguals, thanks
Great video !! thank you for making it!!! Do you have any tips for calculating the credible sets? And, for performing different type of censorship? Thanks!!!
Sorry for late reply. I guess " bayestestR " package should be helpful. You might want to see github.com/easystats/bayestestR and easystats.github.io/bayestestR/articles/credible_interval.html