Math knowers come

posted in Off Topic
View:
Threaded
Linear
Linear
#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

#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

#4
foythvlr
0
Frags
+
–
Laundry [#2]

Are you sure you have smart shuffle turned off

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

#5
9wntr
0
Frags
+
–
Laundry [#2]

Are you sure you have smart shuffle turned off

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

#6
Laundry
0
Frags
+
–
Laundry [#2]

Are you sure you have smart shuffle turned off

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
+
–
Laundry [#6]

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

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

#8
9wntr
0
Frags
+
–
tua [#3]

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

its a school project lol

#9
tv0rusluke
0
Frags
+
–
9wntr [#7]

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

6/7 chance

#10
tv0rusluke
0
Frags
+
–
9wntr [#8]

its a school project lol

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

#11
Laundry
0
Frags
+
–
9wntr [#7]

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

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.

#12
9wntr
0
Frags
+
–
tv0rusluke [#10]

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

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

#13
9wntr
0
Frags
+
–
Laundry [#11]

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.

Oh
How would I fix it to account for repeats

#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

#15
PP12123213123
0
Frags
+
–

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

#16
tv0rusluke
0
Frags
+
–
9wntr [#12]

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

Appreciate the hustle for bag

#17
9wntr
0
Frags
+
–
sophiewatchedvct [#14]

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

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

#18
sophiewatchedvct
0
Frags
+
–
9wntr [#17]

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

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

#19
PP12123213123
0
Frags
+
–
9wntr [#17]

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

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

#20
tv0rusluke
0
Frags
+
–
9wntr [#17]

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

Is bro referring to quantum randomness

#21
9wntr
0
Frags
+
–
sophiewatchedvct [#18]

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

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

#22
9wntr
0
Frags
+
–
PP12123213123 [#19]

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

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

#23
sophiewatchedvct
0
Frags
+
–
tv0rusluke [#20]

Is bro referring to quantum randomness

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
+
–
tv0rusluke [#20]

Is bro referring to quantum randomness

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

#25
sophiewatchedvct
0
Frags
+
–
9wntr [#21]

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

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

#26
9wntr
0
Frags
+
–
sophiewatchedvct [#25]

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

i c
thanks for the feedback

#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
+
–
9wntr [#27]

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

is ts a more accurate 1 for the shuffle example?

it depends

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

#29
PP12123213123
0
Frags
+
–
9wntr [#27]

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

is ts a more accurate 1 for the shuffle example?

yes

#30
9wntr
0
Frags
+
–
sophiewatchedvct [#28]

it depends

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

i am reshuffling yeah

#31
sophiewatchedvct
0
Frags
+
–
9wntr [#30]

i am reshuffling yeah

then yes that is the correct equation

#32
9wntr
0
Frags
+
–
PP12123213123 [#29]

yes

Yippee

#33
BongBreaker
0
Frags
+
–
tv0rusluke [#9]

6/7 chance

What did you just say-

#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