5. Discrete Random Variables I

Поділитися
Вставка
  • Опубліковано 20 вер 2024

КОМЕНТАРІ • 114

  • @edwardbanner1117
    @edwardbanner1117 9 років тому +354

    "A random variable is not random. It's not a variable. It's just a function from the sample space to the real numbers." Good stuff!

    • @MuhammadAsifthepassion
      @MuhammadAsifthepassion 9 років тому

      +Edward Banner sir can you explain more.. plz

    • @chandreshmaurya8102
      @chandreshmaurya8102 8 років тому +6

      +Muhammad Asif he is just re-iterating the definition of random variable. From the term "random variable", one be mistakenly guess/say that random variable is variable that is random.

    • @d0805446
      @d0805446 7 років тому

      random variable is not a function but a number. The colon that covers r.v is so-called function, like g(x) when x is a r.v.

    • @d0805446
      @d0805446 7 років тому

      If you regard r.v as capital x, then is a conglomerate of number x. If you regard r.v as x, then it's indeed a number.

    • @adilibrahim5141
      @adilibrahim5141 5 років тому

      Can u help me to get the material of this course please

  • @georgemorcos659
    @georgemorcos659 7 років тому +182

    I thought that i'm not smart to understand probability, but turned out that it depends on who is teaching it. this prof. is great.

    • @quasar9999
      @quasar9999 4 роки тому +2

      SAME

    • @sahilanchal7679
      @sahilanchal7679 4 роки тому +1

      exactly

    • @2070-y4u
      @2070-y4u 4 роки тому +1

      Agree

    • @domb7210
      @domb7210 3 роки тому +1

      it is just that there are teachers that are really good at articulating concepts. Some are good on showing it.
      There are a lot of complicated concepts that some people cannot really verbalize them but can understand them.

  • @richardxue1506
    @richardxue1506 Рік тому +11

    28:00 The expectation of a random variable is just the center of gravity. This is a killing point of this class, literally explaining what expected value is and how it naturally be used. I have never been this jealous of students at MIT until I see someone explaining the logic of expectation in a sentence like this.

  • @delYdelX
    @delYdelX 3 роки тому +10

    0:54 Outline
    2:36 Random Variable
    24:53 Expectation
    43:00 Variance

  • @fuckooo
    @fuckooo 11 років тому +33

    This man is extremely clear, excellent lecture!

  • @biologiersjov7763
    @biologiersjov7763 5 років тому +12

    Your teaching is amazing. I am a teacher myself and I know that teaching is not easy but it seems very easy to you. Thank you for these videos. I am very grateful for them :)

  • @Shmishaan
    @Shmishaan 9 років тому +31

    the best maths teacher ive come across!

  • @Eagle-eyed978
    @Eagle-eyed978 4 роки тому +3

    Excellent explanation about Random variables. Random variables are just dunctions or simply a routine which give us some numerical value.

  • @sushrutkaul9516
    @sushrutkaul9516 8 років тому +24

    That is why MIT is called the "Mecca of Engineering". Brilliant !!!!!!!!!

  • @bole79
    @bole79 7 років тому +1

    (28:13) Regarding the analogy with the center of gravity of a light rod with weights at discrete positions, if you'd like to visualize the balancing, the position marks should be further apart, 2 a unit to the right from 1, and 4 further two units to the right.

  • @Robert420L
    @Robert420L 10 років тому +19

    amazing teaching methodology...salute sir!:)

  • @MRxPoundcakes
    @MRxPoundcakes 7 років тому +12

    This guy is really good. Wish my professor could articulate the material like this!

  • @Stu49583
    @Stu49583 10 років тому +8

    Python scipy + matplotlib:
    import matplotlib.pyplot as plt
    import scipy.misc
    import math
    def binomial(n,k,p):
    nk = scipy.misc.comb(n,k)
    return nk * math.pow(p,k) * math.pow((1-p),n-k)
    def getProbabilityList(n, p, calcFun):
    vals = []
    for i in range(n+1):
    vals.append(calcFun(n,i,p))
    return vals
    def PlotProbabiltyRange(n,p):
    x = range(n+1)
    y = probRange(n,p, prob)
    plot(x,y)
    def main():
    n = 100
    p = 0.5
    for i in range(1,n+1,1):
    y = getProbabilityList(i,p, binomial)
    x = range(len(y))
    plt.plot(x, y)
    plt.show()

  • @Lilac9001
    @Lilac9001 8 років тому +3

    So glad I came across this!! Thank you so much MIT!

  • @abdulghafor4295
    @abdulghafor4295 8 років тому +8

    Really sir want to thank for your great job.

  • @TeresaSarasa
    @TeresaSarasa 5 років тому +1

    I love the way this guy says "way" and "when"

  • @paulolameiras5298
    @paulolameiras5298 4 роки тому +1

    Randomness is relative, it does not have a absolute meaning. It is wrong to say that something is random or that something is not random. You could say that something is more random or less random depending on the criteria that is being used. You could even eventually consider a scale do measure "randomness" depending on the outcome distribution type of a variable. The true meaning of "randomness" would be, for instance, a discrete variable whose possible outcomes have EXACTLY the same probability of happening. The more random a discrete variable is the more likely it's outcome distribution follows a certain type (independently of the specific values that it will assume). A uncertain outcome of a discrete variable may reveal or prove itself as being more or less random considering the type of outcome distribution that it will take. All the exercises that are done resolving binominal, polinominal, multinominal, call them what you want distributions are assuming that all possible values of a discrete variable have exactly the same probability/chance of happening. In other words they' re assuming that the variable is actually random to it's fullest extent. The truth is that the correct answer to these problems is only theoretic because in application it would be impossible in most cases to replicate randomness. This would mean that the actual practical, real life answer to all these exercises would have to consider a more likely convergent distribution type in comparison to the more likely theoretic random distribution type. A random variable is indeed a variable but should not be initially considered random until proven, through a certain number of trials (the more the better), to have a more likely theoretical random outcome distribution type . A random variable could be associated with a function (with no input values and with a given range of possible outcome values that follow a certain distribution type). The possible values that a discrete variable could take doesn't necessarily have to be numbers. They could be anything including shapes, colors, objects, symbols. In other words they could represent anything. This would be the big difference compared to continuous variables.Take the example of dices that, as everybody knows, assume the following outcomes "1,2,3,4,5,6". You could consider the numbers as being symbols and not numbers. In this particular case the outcome values "1,2,3,4,5,6" could be looked at as being symbols without any arithmetic value. In this case any correlation between the sequence of these symbols and their distribution should be seen as a coincidence. Meaning that there is no sense to calculate the mean or the variance in this particular case, because there is no arithmetic correlation value between symbols or things independently of a more or less random outcome.

  • @bandar1606
    @bandar1606 10 років тому +24

    This is my MATLAB code for his example at 23:35 min,
    ----------------------------------------------------------------------------
    clear all
    clc
    outcome = 2; % outcome # of a coin (Head & Tail)
    n = 4; % tossing #
    k = 0:n; % # of getting Head or Tail ( zero means no Head or no Tail)
    p = 1/outcome; % the probability of a single outcome
    Px = zeros(1, size(k,2)); % store the results in a vector
    for i = 1:size(k,2)
    Px(i) = nchoosek(n,k(i))* p^k(i) * (1-p)^(n-k(i));
    end
    plot(k, Px)
    xlim([ min(k), max(k)])
    ylim([min(Px), max(Px)])
    -----------------------------------------------------------------------------------
    The only thing you need to change is n. Play around with it.

    • @Zeegoku1007
      @Zeegoku1007 5 років тому +1

      Ok.

    • @game-f-un-limitedgamer8958
      @game-f-un-limitedgamer8958 5 років тому +3

      @Bandar H The script works well. Thanks a lot.

    • @SkiingBiologyGod
      @SkiingBiologyGod 3 роки тому

      This is my code, gets the job done
      -------------------------------------------------------
      clear all
      clc
      n = 1000
      k = (0:n)
      p = 0.5 % (probability of heads)
      bruh=[]
      for i=0:n
      bruh = [bruh, nchoosek(n,i) .* (p.^i) .* (1-p).^(n-i)];
      end
      bar(k,bruh)

  • @Krishna-zh3pw
    @Krishna-zh3pw 6 років тому +1

    link to lecture notes ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-041-probabilistic-systems-analysis-and-applied-probability-fall-2010/video-lectures/lecture-5-discrete-variables-probability-expectations/MIT6_041F10_L05.pdf

  • @tawnericcunningham7755
    @tawnericcunningham7755 6 років тому +2

    Great video! Just one question. At the very end when talking about Variances. I know he said it is two lines of algebra, but how did he get from the sum of [(distance from the mean) * p(X)] to E[X^2] - [E(X)]^2 ??

    • @mond2440
      @mond2440 6 років тому +1

      Above = sum (x^2.PX(x) - 2.x.E[X].PX(x) + (E[X])^2.PX(x) ) = sum(x^2.PX(x)) - sum(2.x.E[X].PX(x) - E[X]^2.PX(x)) = E[X^2] - E[X](sum( 2.x.PX(x) - E[X].PX(x)) = E[x^2] - E[X]( 2E[X] - sum(E[X].PX(x)) = E[x^2] - (E[x])^2

  • @martinsanchez-hw4fi
    @martinsanchez-hw4fi 4 роки тому +1

    Would be nice to make an insight on the functions over random variables. If i have Y=e^X for example

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

    9:24 so glad for this clarification, was confusing me while reading a different textbook that didn't quite cover that detail. P(X = x) huh?

  • @boquanerwinchen5198
    @boquanerwinchen5198 8 років тому +10

    There is a mistake at 38:53. It should be E[alpha] = alpha.

    • @eecakir
      @eecakir 7 років тому +7

      E[alpha] = 2. This is true for always mate. sorry. deal with it.

    • @barancan3691
      @barancan3691 7 років тому +1

      Hacı alpha bir constant olduğu için Expected value alpha = alpha olmayacak mı? alpha = 2 dememiş ki

  • @suchalooser1175
    @suchalooser1175 4 роки тому +1

    whoooo!!, just lost in the wild. I have to watch it again.

  • @guhanpurushothaman9313
    @guhanpurushothaman9313 4 роки тому

    Does anyone else have a pet peeve with the mathematical notation used for numerical value generated by the random variable as g(x) at 41:00? The professor says at 9:10 that "x" (in lower case) refers to the numerical value generated by the random variable. Why does he use g(x) for it later? Loosely speaking, he could have referred to it as g(sample space) as well, and although it isn't strictly a function of the sample space, it at least honours the the initial conception of "x" as the value generated by the random variable (which can be thought of as a function of the sequence(s) of events that satisfy the constraint g(sample space)=x).

  • @Bento-wx5wy
    @Bento-wx5wy 2 роки тому +1

    This video is a masterpiece!!!

  • @yaweli2968
    @yaweli2968 5 років тому +1

    Omg Professor, you are awesome,where is the abstract concept when you explain them in reference to reality!

  • @abhinandanjain5090
    @abhinandanjain5090 3 роки тому +1

    Wonderful Explanation!

  • @welsher30
    @welsher30 7 років тому +1

    Was there an inconsistency in what he did at 34:33 and 34:37, he pointed to different lines? It seemed intentional, can anyone explain why he multiplied by a number on the "y=g(X)-axis" and then a number on the "x-axis" when everything maps to the same number on the y-axis?

    • @AZTECMAN
      @AZTECMAN 4 роки тому

      I think this was a mistake in the lecture.
      Here is my reasoning:
      If we treat X as giving some huge values, such as we make 1, 2, 3, or 4 million dollars in sales, and Y as a small amount that we get as our portion of the proceeds (such as $10 for 1 or 2 million; $20 for 3 or 4), it would be a big problem if we include some large chunk of a million dollars in our expected payout for Y... since in reality we are going to make between 10 and 20 dollars.

  • @Atlas92936
    @Atlas92936 3 роки тому

    at 29:57 wouldn't the center of gravity of the pmf be (n+1)/2 not n/2 because the numerical values start at 0, not 1, so there are n+1 numerical values of uniform frequency. the middle would be (n+1)/2 no?

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

      But we are not marking the 0 as 1. He is not rescaling it. Just as an experiment take a scale and mark 0, 1,2,3
      Where n=3, so where is the middle ?
      It's 3/2 = 1.5
      Also if you do the algebra, the numerator comes out as n(n+1)/2. The denom is already (n+1) so the answer comes out again as n/2. Hope this helps 👍🏻

  • @abaundwal
    @abaundwal 4 роки тому +2

    This professor is just amazing

  • @physicswithbilalasmatullah
    @physicswithbilalasmatullah 12 днів тому

    A beautiful lecture!

  • @satheeshkumar0
    @satheeshkumar0 6 років тому +2

    Great lecture

  • @elfadlaouielfadel932
    @elfadlaouielfadel932 6 років тому +1

    i ask our lourd to preseve you and your whole familly .and thanks MIT open courseware for all

  • @nikolaymanolov6226
    @nikolaymanolov6226 10 років тому +1

    Great lecture, really concise.

  • @poino11
    @poino11 6 років тому +2

    This is very good.

  • @siddharthasharma5900
    @siddharthasharma5900 6 років тому +1

    good informative lecture .

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

    Why he kept calling excepted value mean? Mean is average,right?

  • @太陽日-c7k
    @太陽日-c7k 2 роки тому

    This lesson is so great! Thank you so much!!!

  • @sinajahadi2973
    @sinajahadi2973 6 років тому +1

    OMG!
    Amazing teaching!

  • @tewodrosalebachew4152
    @tewodrosalebachew4152 9 років тому

    Thank you very much .You are great teachers

  • @ignaslamabelawa7903
    @ignaslamabelawa7903 10 років тому +1

    Thanks,very clear

  • @menelaosperdikeas1353
    @menelaosperdikeas1353 6 років тому

    Awesome series! However, starting at 31:00 he's using loose language and is not very precise with notation (or I am missing something). IMHO, it is not correct to write Y=g(X). Moreover, below that he is also writing g(x) (lower case "x"). I think the correct ought to be Y=g o X (where "o" is function composition). Only then does g(x) (lowercase "x") make sense. Otherwise if what he is writing "Y=g(X)" is the correct form, what is the domain of g?

    • @computerscientist5953
      @computerscientist5953 5 років тому

      I think the mentioned earlier that we can think of g() or f() as a subroutine (function) in a programming sense, not in a math sense

    • @samedy00
      @samedy00 2 роки тому +1

      Y=g o X might be less confusing in general case, but how then would you write down some particular function, like Y = log(X)? In terms of function composition it will look strange Y = log o X. So in this case "Y=g o X" and "Y=g(X)" just means the same, it is not a loose language, just the definition.

  • @rishikakkar4906
    @rishikakkar4906 5 років тому

    I do not understand the fact that why the summation of expected values gives mean?? Could u please help Thanks in advance.

  • @miv_cleric
    @miv_cleric 5 років тому

    I thought "discrete" and "continuous" random variables were statements about their domains instead of codomains.

  • @sak6012
    @sak6012 9 років тому

    Why you give as an examples about the hight , in min 40 , if we know that it is continuous variable and we talk about discrete variables ? Plz correct my ideas If I miss understand some thing

    • @connorsimpson6780
      @connorsimpson6780 9 років тому +2

      Shroof Alshamsii Height may be continuous, but don't forget that when we measure height it comes out discrete. Nobody ever says that their height is 5 foot 29/7 inches, because we don't know if that's true, see?

    • @oussb7660
      @oussb7660 9 років тому +1

      +Shroof Alshamsii it's not the hight that should be discrete it's the student who are a discrete thing not a continious one

    • @hamdytawfeek8528
      @hamdytawfeek8528 8 років тому +2

      +Shroof Alshamsii he said if we round Height it will become a discrete variable .

    • @ishandave3542
      @ishandave3542 8 років тому +1

      we dont know whether a variable is continuous or discrete as such we are the ones who decide if the variable is continuous so if i decide random variable height is a continuous variable it is a continuous +connor simpson now even if the values that the height will take will be too far away from each other my variable will still be cont. similarly if i decide to take height as a discrete variable with values rounded off to some integers you get the point i guess.

  • @alejandromojarro3046
    @alejandromojarro3046 2 роки тому +1

    if the gods give everyone a boost of 10cm... lolll we have a true champ here.

  • @varunn3286
    @varunn3286 6 років тому

    This guy is great.

  • @jayantpriyadarshi9266
    @jayantpriyadarshi9266 5 років тому

    Thank u sir. Hope u read this !!

  • @ShwetankT
    @ShwetankT 5 років тому +8

    "god gives everybody a bonus of extra 10 cm"

  • @annu1327
    @annu1327 3 роки тому

    sir is explaning gud.. but slides are not visible properly.. can someone plz provide me it's soft copy?. it will be really helpful to me.. thank you.

    • @mitocw
      @mitocw  3 роки тому +6

      The slides and any other materials we have are posted on MIT OpenCourseWare at: ocw.mit.edu/6-041F10. Best wishes on your studies!

  • @pant1371
    @pant1371 3 роки тому +1

    Greek professor!!

  • @keenandiggs4137
    @keenandiggs4137 9 років тому

    Good lecturer.

  • @mohamedjb67
    @mohamedjb67 3 роки тому

    THANK YOU SIR!

  • @archito.goswami
    @archito.goswami 6 років тому

    beautiful

  • @arjit450
    @arjit450 9 років тому

    Thank a ton Sir.

  • @youssefel-shabasy833
    @youssefel-shabasy833 6 років тому

    TY

  • @iprakhar22
    @iprakhar22 6 років тому +39

    I believe in god now

  • @parimalgajbhiye4497
    @parimalgajbhiye4497 3 роки тому

    20:36 Great

  • @KhaledBadr28
    @KhaledBadr28 10 років тому

    I

  • @ryangustafson9592
    @ryangustafson9592 7 років тому +1

    43:44

  • @abdelrhmandameen2215
    @abdelrhmandameen2215 3 роки тому

    177.5

  • @samsoft4968
    @samsoft4968 5 років тому

    which books do they follow??

    • @mitocw
      @mitocw  5 років тому +4

      The text for this course is: Bertsekas, Dimitri, and John Tsitsiklis. Introduction to Probability. 2nd ed. Athena Scientific, 2008. ISBN: 9781886529236. See the course on MIT OpenCourseWare for more materials and information at: ocw.mit.edu/6-041F10. Best wishes on your studies!

    • @samsoft4968
      @samsoft4968 5 років тому

      Thanks for the information and your wishes...
      @@mitocw

  • @周睿-l5v
    @周睿-l5v 7 років тому

    NB

  • @demef.q6943
    @demef.q6943 11 років тому

    Greeks. Russians. No difference.
    Just like with Nuclear Physics and Music Theory!

  • @alexanderyau6347
    @alexanderyau6347 6 років тому

    Can I become pretty good at probability after attending all the lectures of this course?

    • @paulolameiras5298
      @paulolameiras5298 4 роки тому +2

      With this teacher I doubt It. If you want to be good in anything you have to study a lot. This means studying all the theory (concepts, formulas, rules,etc) that is given to you. If you want to be excellent and truly excel you should be able to reach all these conclusions by yourself without the aid of books,teacher,internet or anything for that matter. This teacher probably has a good resume(CV) and actually knows a lot, being a professor at IMT. The problem is that his teaching approach is deficient to say the least. He's burying his students and himself in all this theory, which is important to know, especially in a academic environment, but should never be a starting point when giving lectures (even in a university). I encourage you to find on the internet videos of continuous and discrete variables, binominal, polinominal, multinominal exercises that start of with simple practical examples and with objective and clear explanations and answers, which is the best and the most natural way to truly understand, opposed to trying to memorize all this theory without a clue of what this actually means and what your actually doing. After truly understanding, the theory with all it's formulas will seam more natural and become a mere formality.

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

    A "random variable is a function in programming".... mic drop!

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

    Se

  • @dreamtheater1999
    @dreamtheater1999 11 років тому +2

    he is indeed very good but actually he is greek

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

    2024 June ???

  • @paulolameiras5298
    @paulolameiras5298 4 роки тому

    I have seen a lot of videos on the internet mostly through UA-cam regarding random variables, binominal, polinominal and multinominal random distributions. I've seen several vids of this teacher and considering myself a guru on this particular subject, all I can say is that his approach, when it comes to teaching, is not the most adequate. To much theory and very few practical and clear examples. Being myself a college graduate and having the experience of knowing all lot of teachers, normally these kind of theorists are the ones who know less. They hide themselves in all this theory to try to disguise there lack of teaching capacity. Don't get me wrong, as theorists they're very good. Their lecture is very detailed and well studied. It's almost like you're hearing a recorder or a machine repeating the same thing over and over and over. Normally these kind of teachers won't even admit any sort of questions while the "recording" isn't finished playing (these are the worst kind). Even if you try to ask a question, anything out of the norm would cause discomfort, almost causing the "machine" to short-circuit. It's noticeable that he has a foreign accent. Maybe he doesn't feel very comfortable with his English and that's why he gives his lectures/classes the way he does. I don't know. I think I actually saw a video of this teacher in mutinominal distribution video where he actually says something like "the multinominal distribution is a NICE generalization of the binominal distribution"?!?!? "Nice generalization"?!?!?!? When your teaching or talking about maths there is no place for words like "NICE". When you're teaching mathematics try to be OBJECTIVE . No wonder I have seen several videos of this guy and almost not a single practical case with a final answer. There are a lot of good videos on the internet that actually give clear examples and with final results like this one ua-cam.com/video/WWv0RUxDfbs/v-deo.html

  • @paulolameiras5298
    @paulolameiras5298 4 роки тому

    When talking about continuous random variables don't use the word random because there is nothing random about the distribution of the outcomes of these particular variables due to the nature of the samples being analyzed. Unfortunately this seems to be a misleading concept throughout almost all the videos on the internet regarding this subject. Even discrete random variables shouldn't initially be considered random due to the uncertainty of their distribution outcome. Uncertainty and randomness do not have the same meaning. An uncertain discrete variable could prove to be more likely random in it's outcome according to a more likely random type distribution. When analyzing continuous variable distributions you're are admitting the existence of a value range (similar to a discrete distribution), but contrary to a discrete distribution you are also admitting that, without any trials and without knowing the outcome, that you are going to have a certain type of distribution that follows a certain type of symmetrical curve. As the values tend to get further from the peak of the curve their frequency starts to decrease more or less proportionally. It's almost like a rule that you follow. Being that the uncertainty lies only in the variance of the distribution. Normally dealing with continuous distributions you are analyzing co-related values (correlation between a infinite value and it's frequency), who's relationship is given through a formula. The problem is that there are no predefined rules, formulas or predefined co-relations for uncertain outcomes. Notice that I used the word uncertain and not random.

  • @harshametmon
    @harshametmon 11 років тому

    so what ?

  • @harshametmon
    @harshametmon 11 років тому

    love this russian lecturer

  • @vevo5086
    @vevo5086 4 роки тому

    his lectures are extremely trrible i don not u8nderstand how all comments agree that they are great it seems like they are watching kim during the lecture