Stat Courses
Stat Courses
  • 53
  • 2 624 490
Indexing: R vs Python
In this video, we show indexing of R vectors and Python's numpy arrays. Not just one of the languages, but both Python and R.
Indexing allows you to select a subset of elements in a given object containing a sequence of data elements. You can index a vector in R and a numpy array in Python by using square brackets [] and specifying the indices of the elements you want to extract.
While square brackets are used for both Python and R indexing, how you specify index values within square brackets differs between the two languages.
For example, x[1] accesses the first element of an R vector x; and y[0] accesses the first element of a numpy array y in Python.
In python, negative indexing can be used to access the elements of a numpy array from the end. For example, the last element has an index of -1, the second last element has an index of -2, and so on.
Negative indexing has a different behavior in R. It has the effect of excluding elements instead of the reverse indexing behavior in Python. For example x[-1] excluded the first element of x and accesses the rest, and x[-2] returns all elements of vector x except the 2nd entry.
#rstats #Python #numpy
Переглядів: 300

Відео

Knowledge Building - The Bayesian Way
Переглядів 1,1 тис.Рік тому
Bayesian Knowledge building process explained using the popular puzzle game Wordle as an example. We, humans, operate as Bayesians! We build on our existing knowledge. What we know as of now gets updated when we receive more information or data. In this video we will introduce the Bayesian knowledge building process using an example - a wordle game. Prior knowledge guide us in making decisions ...
Covariance - Explained
Переглядів 2,1 тис.Рік тому
This educational video delves into how you quantify a linear statistical relationship between two variables using covariance! #statistics #probability #SoME2 This video gives a visual and intuitive introduction to the covariance, one of the ways we measure a linear statistical relationship. Covariance values above zero mean positive linear relationship, negative covariance indicates negative li...
R packages: installing, loading, using and updating R packages
Переглядів 17 тис.2 роки тому
This video is all about R packages: What are R Packages Installing R packages Loading R packages to your current R session Using R packages Updating installed R packages Uninstalling R packages
Joint Probability Density Functions
Переглядів 7 тис.2 роки тому
This video gives an intuitive explanation of the joint probability density function of two continuous random variables. We will mainly focus on understanding what bivariate joint probability density functions are and then extend the concept to multivariate joint probability density functions. To aid the understanding of the concepts, we will plot three-dimensional histograms for a pair of rando...
Probability Density Functions
Переглядів 3 тис.2 роки тому
Probability density functions explained in an intuitive way using an example! This video is intuitive introduction to the probability density function of a univariate continuous random variable. For a continuous random variable, the #probability probability density function at a specific point can be thought of as the relative likelihood of observing values in a very small interval containing t...
Joint Probability Mass Function Example
Переглядів 2,8 тис.2 роки тому
An example of the joint probability mass function (joint PMF) of two random variables. We learn about joint probability mass functions (joint PMFs) by exploring these two discrete random variables jointly: number of goals scored by the home team in a football/soccer game, and the number of goals scored by the away/traveling team. This lesson also showcases how you can use a three-dimensional pl...
Download and Install R and RStudio for Windows
Переглядів 6 тис.3 роки тому
Learn how to install R on a Windows computer. We will also install the open source edition of RStudio - a powerful IDE (integrated development environment) for R and Python. Link for downloading R #RStat: Download R from a CRAN server nearest to you using the link cloud.r-project.org Link for downloading #RStudio: www.rstudio.com/products/rstudio/download/#download About #Rprogramming language ...
Joint Probability Distribution Of Discrete Random Variables
Переглядів 51 тис.3 роки тому
Introductory video for joint probability distribution of two discrete random variables (and probability mass function of discrete random vectors in general). - We introduce joint distribution of two discrete random variables using examples (example 1 - 0:28 and example 2 - 5:08) - We then formally define the joint probability mass function - We lay out the conditions joint probability mass func...
Introduction to Multivariate Probability Distributions
Переглядів 20 тис.3 роки тому
In this video, you learn why we study multivariate distributions. For example, we get more insight when we look at the number of reported COVID-19 cases and deaths by age (or another variable such as pre-existing medical conditions). In another example, we show the relationship between marital status and annual automobile insurance claim amount.
Chebyshev’s Inequality
Переглядів 6 тис.3 роки тому
In this video you will learn about Chebyshev’s inequality using examples, prove Chebyshev’s inequality by utilizing Markov’s inequality, and learn three ways of writing Chebyshev’s inequality. In addition, we describe the scenario for which Chebyshev’s inequality is tight. Related video link: Markov’s inequality lesson: ua-cam.com/video/apLNpPQENus/v-deo.html
Proof of Markov's Inequality
Переглядів 6 тис.3 роки тому
Proof of Markov's Inequality
Markov's Inequality - Intuitively and visually explained
Переглядів 8 тис.3 роки тому
Markov's Inequality - Intuitively and visually explained
Chi Squared Distribution
Переглядів 4,2 тис.5 років тому
Chi Squared Distribution
Beta Distribution
Переглядів 21 тис.6 років тому
Beta Distribution
Normal Distribution
Переглядів 10 тис.6 років тому
Normal Distribution
Gamma Distribution
Переглядів 37 тис.6 років тому
Gamma Distribution
Poisson Process and Gamma Distribution
Переглядів 36 тис.6 років тому
Poisson Process and Gamma Distribution
Integrating Normal Density Function
Переглядів 81 тис.10 років тому
Integrating Normal Density Function
Univariate transformation of a random variable
Переглядів 51 тис.10 років тому
Univariate transformation of a random variable
Uniform Distribution
Переглядів 50 тис.10 років тому
Uniform Distribution
Exponential Distribution
Переглядів 124 тис.11 років тому
Exponential Distribution
Poisson Distribution
Переглядів 41 тис.11 років тому
Poisson Distribution
Lesson 19 Hypergeometric Distribution - Introduction
Переглядів 55 тис.11 років тому
Lesson 19 Hypergeometric Distribution - Introduction
Lesson 18: Negative Binomial distribution Part II
Переглядів 42 тис.11 років тому
Lesson 18: Negative Binomial distribution Part II
Lesson 17: Geometric Distribution part II
Переглядів 33 тис.11 років тому
Lesson 17: Geometric Distribution part II
Lesson 17: Geometric Distribution Part 1
Переглядів 61 тис.11 років тому
Lesson 17: Geometric Distribution Part 1
Lesson 18: Negative Binomial Distribution - Part 1
Переглядів 48 тис.11 років тому
Lesson 18: Negative Binomial Distribution - Part 1
Lesson 16 Binomial Distribution Part 2
Переглядів 27 тис.11 років тому
Lesson 16 Binomial Distribution Part 2
Lesson 16 Bernoulli and Binomial Distribution Part 1
Переглядів 51 тис.11 років тому
Lesson 16 Bernoulli and Binomial Distribution Part 1

КОМЕНТАРІ

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

    very nicely explained.

  • @RicharD-fi3ho
    @RicharD-fi3ho Місяць тому

    Ty

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

    Thank you very much for your help!

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

    ZAAAAAAAAAMN

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

    HUGE SHOUTOUT TO YOU! HELPED ME ON THIS ONE!!!!!!!!!!!!!!!!!

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

    Amazing video! Thank you.

  • @chahlabedroh4703
    @chahlabedroh4703 3 місяці тому

    ty sir

  • @user-qi2vr9hv7j
    @user-qi2vr9hv7j 3 місяці тому

    amazing video - this series has helped me so much!!🇿🇦

  • @FomekongJean-kk6hl
    @FomekongJean-kk6hl 4 місяці тому

    Thanks very much ✊🙏

  • @johnaiii1281
    @johnaiii1281 4 місяці тому

    finally someone taught me how to integrate the normal bell curve, really thanks with all the guided calculations

  • @yessethiopia7749
    @yessethiopia7749 5 місяців тому

    Thank you for sharing

  • @Mrtnimn
    @Mrtnimn 5 місяців тому

    For the probability of the home team winning with atleast one goal = 0.4755 And For the probability of the away team winning with atleast one goal = 0.3372 I definitely think I got the right one here💫

  • @battleshout64
    @battleshout64 5 місяців тому

    I love you

  • @JustGoatthings101
    @JustGoatthings101 6 місяців тому

    i got 0.2912 is that right?

  • @alimortadahoumani1134
    @alimortadahoumani1134 6 місяців тому

    wow very nice

  • @alyaqistina597
    @alyaqistina597 7 місяців тому

    thankyou. very clear explanation

  • @s.mugundan
    @s.mugundan 7 місяців тому

    super

  • @ThanhThuy-wb6lm
    @ThanhThuy-wb6lm 7 місяців тому

    so helpful, thank you 🙏🏼 😊

  • @rocklemillion8041
    @rocklemillion8041 7 місяців тому

    Is the reason that we can simply state that Q=1 rather than +-1 because e raised to a power never creates a negative number?

  • @janng3180
    @janng3180 9 місяців тому

    Thank you so much!!!!!

  • @hypergiant03
    @hypergiant03 10 місяців тому

    Tysm sir for this video, it was really helpful.

  • @maheswaraanubawawidiatna3022
    @maheswaraanubawawidiatna3022 10 місяців тому

    Vid: 🎶🎶🎶🎶🎶🎶 My brain: 📈📈📈

  • @Bibletalkswithsamu
    @Bibletalkswithsamu 11 місяців тому

    ohn has six 1 rand coins, three 2 rand coins and two 5 rand coin and wishes to buy another item that costs 10 rand which is sold by the vending machine. In how many distinct ways may he correctly insert a total of 10 rand into the vending machine for purposes of buying the item (given that the machine does not give change)?

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

    BRILLIANT!

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

    Good work, Sir 👏

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

    Can't wrap my head around the overall volume being the area of one of the equally partitioned regions :)

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

    Thank you for sharing

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

    thank you sir

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

    1. I used a longer way but I still want to share it On-time = 0.40 Satisfactory = 0.50 Neither = 0.25 Let On-time as A and Satisfactory as B and Neither as the complement of AUB ((AUB)'). We will use this Identity of the Sample Space: P(S) = P(AUB) + P((AUB)') By using the identity of the union of A and B, P(S) = P(A) + P(B) - P(A∩B) + P((AUB)') We can now plug-in the three given values, P(S) = 0.40 + 0,50 - P(A∩B) + 0.25 Since P(S) = 1, 1 = 0.40 + 0,50 - P(A∩B) + 0.25 Finally, P(A∩B) = 0.40 + 0,50 + 0.25 -1 P(A∩B) = 0.15

  • @user-pl6fj8rp4o
    @user-pl6fj8rp4o Рік тому

    I found the same answer to the last question through a more convoluted way. P(CUB/F')=P(CUB)P(F'/CUB)/Law of total probability for F' well I figured C and B were disjoint so P(CUB)= P(C)+P(B), but the hard part was finding P(F'/CUB). P(F'/CUB) is the probability that the component didn't fail out of the class C or B components. given earlier P(CUB)= P(C)+P(B)= .12+.18= .3 If .9 of Components B worked and .82 of components C worked (given by P(F'/B)=1-P(F/B) and P(F'/C)=1-P(F/B)) and they are disjoint one could take the average of the working components in class B and C. Class C and B take up .3 of the sample space, and class B takes up .18 of that .3, while C takes up .12 of that .3. So class B is .6 from sample BUC (18/30) and class C is .4 of BUC (12/30). Taking a weighted average of (.9x.6)+(.82x.4) finds the average probability that Components didn't fail out of class C or B. P(F'/CUB)= (.9x.6)+(.82x.4) = .868. Plugging that back in to the original equation finds 0.2751

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

    This is a true beauty. Thank you and may this video live from 0 to infinity!

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

    i swear this is a stupid video

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

    Great videos but i am getting annoying commercials every 2 minutes.

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

    thankyou

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

    Thank you very much

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

    Great expectation 👍

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

    Thanks! Very clear and concise. Really appreciate it!

  • @elisab.8266
    @elisab.8266 Рік тому

    but how can I install a package that I downloaded on my computer? I've got R version 4.2.2 and R studio and my teacher had send me the package "rmf" to install but I don't know how to install it

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

    Thank you for starting with an example

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

    LIFE SAVER

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

    𝓣𝓺𝓼

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

    Where are the answers to the last 2 exercise questions?

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

    First time I understand covariance, thanks.

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

    Awesome 😊🔥👌👍🔥❤️❤️

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

    ggplot2 is not available for 4.2.2 version of r, so what we have to do?,plzz solve my problem 😢

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

    👏👏

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

    This is incredibly clear, thank you!

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

    In the formula of P(A U B U C), it should be +2P(A∩B∩C) right?

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

    0.9146 right?

    • @Samara-ts8fo
      @Samara-ts8fo Рік тому

      that's what I got

    • @253ravuribhargavaram2
      @253ravuribhargavaram2 Рік тому

      how is that?

    • @Mrtnimn
      @Mrtnimn 5 місяців тому

      I think the right answer is 0.9153. Kindly enlighten me of how you got to 0.9146🤔

    • @NphiniT
      @NphiniT 4 місяці тому

      @@Mrtnimn I also got 0.9153.

    • @Mrtnimn
      @Mrtnimn 4 місяці тому

      Thanks for the clarity​@@NphiniT, it really helps when solving such problems🙏