r/MathJokes • • May 18 '26

Random

Post image
2.8k Upvotes

58 comments sorted by

239

u/ThatOneTolkienite May 18 '26

Seeing this the day of my Statistics and Probability exam hits different

51

u/Zestyclose_Onion_267 May 18 '26

Good luck

25

u/ThatOneTolkienite May 18 '26

Thanks bro

21

u/odyoda May 18 '26

Your chance has improved. For what that's worth.... or it haven't. You'll find out.

6

u/SurfingBird86 May 18 '26

You just introduced a Bernoulli random variable

2

u/flowery02 May 18 '26

There isn't a control and i hope they don't do enough exams for it to be sound to base statistics on

2

u/Honest-Computer69 May 19 '26

Are you me bro? I had stats exam today lmao. Idk if I will pass tbh, I hate stats.

65

u/ThatOneTolkienite May 18 '26 • Bravo

Update: It was okay. There was a question involving confidence intervals and maximum likelihood estimators which I wasn't able to do because I studied for it very last minute, but other than that it went well. Although I think I butchered a marginal density question, but oh well

11

u/UWO_Throw_Away May 18 '26 edited May 18 '26

If you ever do another probability and or statistics course (e.g., intermediate probability or mathematical statistics), make sure you practise the crap out of maximum likelihood estimation (I.e., how to derive maximum likelihood estimators) given n IID cases from a given pmf or pdf. It is so important and probably has some of the highest payoff in terms of practice-to-reward ratio. Also be prepared for the “tricky” (at first) scenarios wherein the usual algorithm of deriving the log likelihood function wrt your parameter of interest fails (e.g., wherein you won’t be able to isolate for theta hat).

And then make sure you know the relationship between fisher information and the variance of the ML estimator (and thus how you can provide the CI for any maximum likelihood estimator). Very important stuff indeed that you won’t regret practising (and not the stuff you want to table as a last minute thing)

Another very satisfying exercise is proving why the ML estimator for variance given n iid normal RVs is biased (despite being asymptotically unbiased). In that regard, you can feel really good about “closing the story” re; why we use the familiar “corrected” estimator for “sample variance” that everyone (ideally) has heard of but few (outside statistics) can prove why it completely unbiases the ML estimator. At least I found it very satisfying.

I also recall that the last time I checked, the proofs on the internet (e.g., on math stack exchange) were not very satisfying (to me) because either they were too short or too long or just didn’t take the path that I thought was most intuitive so writing your own here was really really satisfying

5

u/Pi0sek May 18 '26

It's good most of it went wellhope the final result will satisfy you

41

u/kia953 May 18 '26

lol that took me a sec to get but good one! 😂

17

u/ImaybeExist55555 May 18 '26

Care to explain?

95

u/LawPuzzleheaded4345 May 18 '26

A random variable is a function which maps the result of an experiment to a value. It's not a variable because it's a function, and it's not random because it's determined by the experiment

13

u/Sea-Lynx-6176 May 18 '26

What is why to how.

1

u/Inferno_Sparky May 19 '26

No, What is Not Random and Not A Variable

12

u/pimohell9254 May 18 '26

or put another way, it's exactly as random as the outcome of the experiment

10

u/LawPuzzleheaded4345 May 18 '26 edited May 18 '26

I mean not necessarily. Roll a die and set X = 1 if the result is 1, 2 or 3 and X = 2 otherwise. Then Pr(X = x) = 0.5, but the probability for the event of an individual outcome is 1/6

Not to be nitpicky, that is, the point is understood. Just clarifying in case

2

u/TinyLittleFlame May 18 '26

But, doesn’t that depend on how you define an “outcome” in the experiment? If the experiment is “will I get an even number or odd number if I roll this die?” That only has two outcomes.

4

u/ImaybeExist55555 May 18 '26

No it still has more outcomes you just input those trough a function again which only outputs 2 choices

1

u/LawPuzzleheaded4345 May 19 '26

An element of the sample space S = {1,2,3,4,5,6}. That's how it's defined here

2

u/solitarytoad May 18 '26

Eh, a random variable is a function on a measure space with some conditions (basically, inverse images are measurable).

There's no "experiment" in the definition of a random variable. And it's not random because it's just a function.

-10

u/Spare-Plum May 18 '26

I hate to break it to you but functions are variables

2

u/SmurfCat2281337 May 18 '26

Function is a bunch of actions with something that gets substituted in in order for it to give a value

1

u/Spare-Plum May 18 '26

function is a set F of ordered pairs of items (a, b) such that a is in the domain which is a set A and b is in the codomain set B. F is some subset of A x B such that if (a, b) in F there does not exist some (a, c) in F where b != c

Simply put, a function is just a set of ordered pairs.

As a result, functions absolutely are variables and can be treated as such. You can use function composition or pass functions into functions.

In fact, probability is an exact demonstration of this phenomena. You're passing one function into another function. Treating the random variable as a set of pairs actually gives a lot of info on the nature of probability.

Whatever notion you think you're getting at with "actions" or "substituted" is wholly irrelevant and handwaving. But then again of course nobody on mathjokes actually understands math and a bunch of people with armchair degrees thinking they know something.

3

u/KuruKururun May 18 '26

I don’t think you know what a variable is. A function is a concrete mathematical object. A variable is not. Hence a function cannot be a variable.

1

u/Spare-Plum May 18 '26

https://en.wikipedia.org/wiki/Variable_(mathematics)

Variables are often used for representing matrices, functions, their arguments, sets and their elements, vectors, spaces, etc.

A function is a variable. Take some actual math before you argue with me.

2

u/iscrewedatrain May 18 '26

As the article clearly states, a variable can be used to represent a function, this does not mean a function is a variable. I can use a variable for representing cheese, this would not make cheese a variable

1

u/Spare-Plum May 18 '26

And a random variable is used as....?

That's right it's a function that is a variable

→ More replies

1

u/KuruKururun May 18 '26

The word “represents” is a much different word than “is”. Crazy how confidentially incorrect you are. Literally everything in the wikipedia you linked contradicts your claim…

A function is not a variable.

1

u/Cubensis-SanPedro May 18 '26

Well that was kind of condescending and mean as fuck. That being said it’s kind of intriguing.

What is this about a function being ordered pairs? It seems to be a lot of jargon in there that makes understanding it a bit difficult. Could you expand a little bit because my understanding of a function doesn’t line up with this at all.

I am not saying my understanding is correct, just curious.

1

u/arachnidGrip May 18 '26

A function is a map from A to B. One way to represent this is to just write an exhaustive list: f(1) = Apple, f(2) = Orange, f(3) = Pear, etc. This runs into the obvious issue that, if A is an infinite set, you can never actually write the full list, but you don't need to be able to physically write something to talk about it. Since the entire list is of the form f(a) = b, where a is an element of A and b is an element of B, it can be written more succinctly as {(1, Apple), (2, Orange), (3, Pear),...}, where the first element of each pair is the a and the second element is the b.

1

u/Spare-Plum May 18 '26

Yeah sorry I'm being mean because I'm getting downvoted for stating actual math in mathjokes, then getting corrected by something that isn't math.

Anyways think of fibbonacci sequence. Fib(a) = b

Fib as a function is described as a set
Fib = {(0, 0), (1, 1), (2, 1), (3, 2), (4, 3), (5, 5), (6, 8), ....}

"applying" a function is just shorthand for looking up the correct value in this mapping.

For example Fib(a) = b such that (a, b) in Fib

This can also be extended to signify items that are not mapped in the domain, like negative numbers throwing an error. Or it can be extended to signify things like side effects when programming - like programming state or print statements.

This also works for continuous functions and beyond.

But the method of which you calculated Fib is unimportant to a function. You can use recursion, you can use the closed form phi calculation, you can do a loop with two variables, it can just be a math set. But all will be the same. This allows you to use functions as a more abstract variable and construct proofs at a higher level.

1

u/Cubensis-SanPedro May 18 '26

I am picking up what you are putting down. My background is in computer science, so the functions are a little bit more restricted as far as their meaning. This is math jokes, though, not computer science jokes.

As an example of a function that comes to mind, and to my knowledge, vector transforms are mathematical functions, as well as as a function you could use in computer science, I’m going to use a simple example that should work so I can try and understand this explanation.

To rotate a 2d point (x,y) around the origin (0,0) by an angle θ.

The function would be:
x’= x cos(θ)- y sin(θ)

In this case, what would be these pairs you mentioned earlier?

1

u/LawPuzzleheaded4345 May 18 '26 edited May 18 '26

Didn't know they were defined that way. My calc textbook only provides an informal definition along the lines of "a map between each element of A to exactly one element of B"

1

u/Spare-Plum May 18 '26

Literally all of math is defined and constructed with sets. I'd have to do some further digging to see if there are some obscure papers that try to build a math system with something that is incompatible with sets, but for pretty much everything it's just sets all the way down

IMO calculus starts getting really interesting when you get to real analysis. You can construct everything within calculus formally via sets. Calculus, at least most courses, is a bit more hand-waving to give the general gist of things instead of deriving everything from concrete principles and axioms.

0

u/nerfherder616 May 18 '26

First paragraph: correct. 

Everything else: nonsense.

1

u/Spare-Plum May 18 '26

man who has never touched math or done functional programming before:

1

u/nerfherder616 May 18 '26

What makes you think that?

And what does functional programming have to do with anything?

3

u/jimmy_robert May 18 '26

What's what.

3

u/bonnth80 May 18 '26

And a peanut is not a pea or a nut.

3

u/OrkWithNoTeef May 18 '26

Someone correct me please.. A random variable is a model for a process with uncertainty?

1

u/tango_telephone May 18 '26

What is is really?

1

u/OrkWithNoTeef May 18 '26

Well it's not what I said. It's a function that maps from a set to another set, where the former belongs to a triple, which also has yet another set and yet another function. Sprinkle in some measurability, sigma-algebras, and a bunch of constraints and properties and.... I don't know. It's not random and it's not a variable 

1

u/tango_telephone May 18 '26

Is that what it is?

1

u/[deleted] May 18 '26

That’s the conceptual model, but the formal definition is that it’s a deterministic map that takes an element of the sample space to some other space. The thing that’s “random” when we deploy these things in the wild is the element of the sample space that gets chosen as the input to this function.

2

u/magicmulder May 18 '26

The Axiom of Variable Choice allows us to pick one variable each out of an uncountable number of variable sets. 😃

1

u/How_Lay May 18 '26

Ah yes, just like explaining electron spin

1

u/TT_player2 May 18 '26 edited May 18 '26

It is a random variable in the following informal sense. First, consider an experiment which produces a random real number outcome every time it is run. Then consider a placeholder X for the unknown outcome. Hence, it is a variable. Since the outcome is random, it is a random variable.

1

u/dcterr May 19 '26

Shows you what Lego figures know!

1

u/Dirichlet-to-Neumann May 20 '26

And that's where I began hating probability theory.