R Green and Python
R Green and Python
  • 10
  • 7 672
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
Переглядів: 43

Відео

Positron: Next Generation IDE for #python and #R
Переглядів 861Місяць тому
Positron: Next Generation IDE for #python and #R
#Polars Tutorial 3 (#with_columns)
Переглядів 363 місяці тому
Create new columns in polars
#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.

КОМЕНТАРІ

  • @chenlevi-y4x
    @chenlevi-y4x 11 днів тому

    it can be better if github copilot supported

  • @pldvs
    @pldvs Місяць тому

    Why this and not neovim, or vim, even vi? Even nano is catching up.

  • @OzgeCiftci-lc8pu
    @OzgeCiftci-lc8pu Місяць тому

    👏🏻 danke für Information

  • @ozivandeka6386
    @ozivandeka6386 2 місяці тому

    PP_check looks just great, congrats

  • @patricktomchacko1909
    @patricktomchacko1909 Рік тому

    Thanks, better understanding now

  • @faceprofesor
    @faceprofesor 2 роки тому

    Great, thanks for the video !!! How do you set the autocomplete tool in R studio?

    • @rgpy
      @rgpy 2 роки тому

      In RStudio, simply go to tools -> global options -> Code -> Completions -> Make everything automatic

  • @somy30
    @somy30 2 роки тому

    Great tutorial, keep it up

    • @somy30
      @somy30 2 роки тому

      Would it be possible to do a tutorial on how to create a logistic regression with random effects using rstan?

  • @swanmute5713
    @swanmute5713 2 роки тому

    Thanks for the clear explanation, now I understand very clearly.

    • @rgpy
      @rgpy 2 роки тому

      Many thanks ☺️

  • @yemretapan
    @yemretapan 2 роки тому

    It is a useful tutorial for bilinguals, thanks

  • @cbasile22
    @cbasile22 2 роки тому

    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!!!

    • @rgpy
      @rgpy 2 роки тому

      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