Stat Courses
Stat Courses
  • 53
  • 2 624 908
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
zhlédnutí: 300

Video

Knowledge Building - The Bayesian Way
zhlédnutí 1,1KPřed rokem
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
zhlédnutí 2,1KPřed rokem
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
zhlédnutí 17KPřed 2 lety
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
zhlédnutí 7KPřed 2 lety
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
zhlédnutí 3KPřed 2 lety
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
zhlédnutí 2,9KPřed 2 lety
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
zhlédnutí 6KPřed 3 lety
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
zhlédnutí 51KPřed 3 lety
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
zhlédnutí 20KPřed 3 lety
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
zhlédnutí 6KPřed 3 lety
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: czcams.com/video/apLNpPQENus/video.html
Proof of Markov's Inequality
zhlédnutí 6KPřed 3 lety
Proof of Markov's Inequality
Markov's Inequality - Intuitively and visually explained
zhlédnutí 8KPřed 3 lety
Markov's Inequality - Intuitively and visually explained
Chi Squared Distribution
zhlédnutí 4,2KPřed 5 lety
Chi Squared Distribution
Beta Distribution
zhlédnutí 21KPřed 6 lety
Beta Distribution
Normal Distribution
zhlédnutí 10KPřed 6 lety
Normal Distribution
Gamma Distribution
zhlédnutí 37KPřed 6 lety
Gamma Distribution
Poisson Process and Gamma Distribution
zhlédnutí 36KPřed 6 lety
Poisson Process and Gamma Distribution
Integrating Normal Density Function
zhlédnutí 81KPřed 10 lety
Integrating Normal Density Function
Univariate transformation of a random variable
zhlédnutí 51KPřed 10 lety
Univariate transformation of a random variable
Uniform Distribution
zhlédnutí 50KPřed 10 lety
Uniform Distribution
Exponential Distribution
zhlédnutí 124KPřed 11 lety
Exponential Distribution
Poisson Distribution
zhlédnutí 41KPřed 11 lety
Poisson Distribution
Lesson 19 Hypergeometric Distribution - Introduction
zhlédnutí 55KPřed 11 lety
Lesson 19 Hypergeometric Distribution - Introduction
Lesson 18: Negative Binomial distribution Part II
zhlédnutí 42KPřed 11 lety
Lesson 18: Negative Binomial distribution Part II
Lesson 17: Geometric Distribution part II
zhlédnutí 33KPřed 11 lety
Lesson 17: Geometric Distribution part II
Lesson 17: Geometric Distribution Part 1
zhlédnutí 61KPřed 11 lety
Lesson 17: Geometric Distribution Part 1
Lesson 18: Negative Binomial Distribution - Part 1
zhlédnutí 48KPřed 11 lety
Lesson 18: Negative Binomial Distribution - Part 1
Lesson 16 Binomial Distribution Part 2
zhlédnutí 27KPřed 11 lety
Lesson 16 Binomial Distribution Part 2
Lesson 16 Bernoulli and Binomial Distribution Part 1
zhlédnutí 51KPřed 11 lety
Lesson 16 Bernoulli and Binomial Distribution Part 1

Komentáře

  • @vinr1187
    @vinr1187 Před 2 dny

    Thank you ❤.

  • @habibullahsaiyed8182
    @habibullahsaiyed8182 Před měsícem

    very nicely explained.

  • @RicharD-fi3ho
    @RicharD-fi3ho Před měsícem

    Ty

  • @lamiasouayah5777
    @lamiasouayah5777 Před 2 měsíci

    Thank you very much for your help!

  • @Ferylopenguin
    @Ferylopenguin Před 2 měsíci

    ZAAAAAAAAAMN

  • @aaronzewdu
    @aaronzewdu Před 2 měsíci

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

  • @miyamotomusashi4556
    @miyamotomusashi4556 Před 2 měsíci

    Amazing video! Thank you.

  • @chahlabedroh4703
    @chahlabedroh4703 Před 3 měsíci

    ty sir

  • @user-qi2vr9hv7j
    @user-qi2vr9hv7j Před 3 měsíci

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

  • @FomekongJean-kk6hl
    @FomekongJean-kk6hl Před 4 měsíci

    Thanks very much ✊🙏

  • @johnaiii1281
    @johnaiii1281 Před 4 měsíci

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

  • @yessethiopia7749
    @yessethiopia7749 Před 5 měsíci

    Thank you for sharing

  • @Mrtnimn
    @Mrtnimn Před 5 měsíci

    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 Před 5 měsíci

    I love you

  • @JustGoatthings101
    @JustGoatthings101 Před 6 měsíci

    i got 0.2912 is that right?

  • @alimortadahoumani1134
    @alimortadahoumani1134 Před 6 měsíci

    wow very nice

  • @alyaqistina597
    @alyaqistina597 Před 7 měsíci

    thankyou. very clear explanation

  • @s.mugundan
    @s.mugundan Před 7 měsíci

    super

  • @ThanhThuy-wb6lm
    @ThanhThuy-wb6lm Před 7 měsíci

    so helpful, thank you 🙏🏼 😊

  • @rocklemillion8041
    @rocklemillion8041 Před 7 měsíci

    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 Před 9 měsíci

    Thank you so much!!!!!

  • @hypergiant03
    @hypergiant03 Před 10 měsíci

    Tysm sir for this video, it was really helpful.

  • @maheswaraanubawawidiatna3022

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

  • @Bibletalkswithsamu
    @Bibletalkswithsamu Před 11 měsíci

    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

    BRILLIANT!

  • @SIRMAPANDAONLINE
    @SIRMAPANDAONLINE Před rokem

    Good work, Sir 👏

  • @deepakoct28
    @deepakoct28 Před rokem

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

  • @ashenafibelete4013
    @ashenafibelete4013 Před rokem

    Thank you for sharing

  • @jonsnow3513
    @jonsnow3513 Před rokem

    thank you sir

  • @horiuchiworld
    @horiuchiworld Před rokem

    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 Před rokem

    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 Před rokem

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

  • @therankingworld7627

    i swear this is a stupid video

  • @bigbarry8343
    @bigbarry8343 Před rokem

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

  • @jrtthamasha7306
    @jrtthamasha7306 Před rokem

    thankyou

  • @humavocado5614
    @humavocado5614 Před rokem

    Thank you very much

  • @firstkaransingh
    @firstkaransingh Před rokem

    Great expectation 👍

  • @mansonvcdl
    @mansonvcdl Před rokem

    Thanks! Very clear and concise. Really appreciate it!

  • @elisab.8266
    @elisab.8266 Před rokem

    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 Před rokem

    Thank you for starting with an example

  • @twilight1176
    @twilight1176 Před rokem

    LIFE SAVER

  • @rupalimohanty9920
    @rupalimohanty9920 Před rokem

    𝓣𝓺𝓼

  • @tejasdeo1749
    @tejasdeo1749 Před rokem

    Where are the answers to the last 2 exercise questions?

  • @ling6701
    @ling6701 Před rokem

    First time I understand covariance, thanks.

  • @anweshbhattacharyya7763

    Awesome 😊🔥👌👍🔥❤️❤️

  • @Aaridesigns_shorts
    @Aaridesigns_shorts Před rokem

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

  • @RoshChavan2328
    @RoshChavan2328 Před rokem

    👏👏

  • @rayraystinz
    @rayraystinz Před rokem

    This is incredibly clear, thank you!

  • @kashyaprao4806
    @kashyaprao4806 Před rokem

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