Math knowers come

posted in Off Topic
View:
Threaded
Linear
Threaded
#1
9wntr
0
Frags
+
–

im doing an IA on how spotify shuffle works
but first Im beginning but showing how a true random shuffle would work (spotify isnt true random)

https://ibb.co/zVqtfc1Z
is there any obvious mistakes in my math?

#2
Laundry
0
Frags
+
–

Are you sure you have smart shuffle turned off

#4
foythvlr
0
Frags
+
–

even turned off spotify shuffle is based on recent activity and not actual randomness

#5
9wntr
0
Frags
+
–

spotify shuffle (even the normal) is percieved randomness
https://engineering.atspotify.com/2025/11/shuffle-making-random-feel-more-human

#6
Laundry
0
Frags
+
–

Also ya ur math is wrong, cuz ur using shuffle and not skip, collisions can happen, so 100/717 is wrong

#7
9wntr
0
Frags
+
–

the wording isnt clear i think
i mean like my playlist is 717 songs
and i shuffled 100 (assuming true random shuffle)
whats the chance of each song appearing in those 100

#9
tv0rusluke
0
Frags
+
–

6/7 chance

#33
BongBreaker
0
Frags
+
–

What did you just say-

#11
Laundry
0
Frags
+
–

No, that’s assuming every song that gets played can’t repeat

If you shuffle 100 times, you’re bound to get the same song twice, so the probability for getting any given song isn’t 100/717 because 100 unique songs aren’t played.

#13
9wntr
0
Frags
+
–

Oh
How would I fix it to account for repeats

#3
tua
0
Frags
+
–

Just turn it off and on again
There you go, true shuffle
I just did more work than all the spotify developers

#8
9wntr
0
Frags
+
–

its a school project lol

#10
tv0rusluke
0
Frags
+
–

Weren't you a math tutor 81wntr
Or is that side hustle

#12
9wntr
0
Frags
+
–

I tutor the Math AI sl ppl /myp ppl
That’s a lower level course

#16
tv0rusluke
0
Frags
+
–

Appreciate the hustle for bag

#14
sophiewatchedvct
0
Frags
+
–

the last line assumes you are choosing with replacement i.e. you can get the same song twice in a row

#17
9wntr
0
Frags
+
–

well in a truly random (not perceived random) set
you should be able to get the same song twice no?

#18
sophiewatchedvct
0
Frags
+
–

i'm just saying that your math assumes the chance of getting the same song twice in a row ~ my idea of a playlist shuffle is that it plays all 717 songs in a predetermined order one-by-one

#21
9wntr
0
Frags
+
–

oh i c
thats how it actually works (which ill attempt to explain later in the paper)
this is just a theoretical assuming songs are randomly picked from a pile each time

#25
sophiewatchedvct
0
Frags
+
–

your formula will use a lot of choose functions and a lot of factorials then

#26
9wntr
0
Frags
+
–

i c
thanks for the feedback

#19
PP12123213123
0
Frags
+
–

I’m not sure how Spotify works, but your work allows the same song to be played twice

#22
9wntr
0
Frags
+
–

spotify is perceived randomness
https://engineering.atspotify.com/2025/11/shuffle-making-random-feel-more-human
it isnt random at all it just pretends to b

#20
tv0rusluke
0
Frags
+
–

Is bro referring to quantum randomness

#23
sophiewatchedvct
0
Frags
+
–

i believe we're expected all outcomes to be equally likely so yes we'd need quantum randomness as opposed to pseudorandomness

#24
9wntr
0
Frags
+
–

kinda
this is a theory
it isnt supposed to be applicable to a real platform (cus ppl would hate it)

#15
PP12123213123
0
Frags
+
–

P = k!(n-r)!/n!(k-r)!

#27
9wntr
0
Frags
+
–

https://ibb.co/SDVwf3V1
1−(717/716​)^100≈0.131​

is ts a more accurate 1 for the shuffle example?

#28
sophiewatchedvct
0
Frags
+
–

it depends

if you reshuffle after every song, yes
if you don't reshuffle after every song, no

#30
9wntr
0
Frags
+
–

i am reshuffling yeah

#31
sophiewatchedvct
0
Frags
+
–

then yes that is the correct equation

#29
PP12123213123
0
Frags
+
–

yes

#32
9wntr
0
Frags
+
–

Yippee

#34
dimmed
0
Frags
+
–

Someone correct me if I'm wrong but for a specific song, you could just model this as a binomial distribution and taking n as the number of songs played, p=1/(total songs in playlist). Since songs can be played more than once you want the probability P(X>0) which is 1-(1-p)^n in your example that'd be:

1 - (1-1/717)^(100) ≈ 0.13

  • Preview
  • Edit
› check that that your post follows the forum rules and guidelines or get formatting help
Sign up or log in to post a comment