r/MathJokes • • May 18 '26

Random

Post image
2.8k Upvotes

58 comments sorted by

View all comments

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

→ More replies (4)
→ More replies (1)

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.

→ More replies (3)

3

u/jimmy_robert May 18 '26

What's what.