Actually, it’s 5 4 10 12 2 9 8 11 6 7 3 1 for me, but too lazy to edit the image
I recently found out that javascript’s .sort() function, when called without arguments on an array of numbers, converts them all to strings and sorts them alphabetically 🤡
tetris11@lemmy.ml 1 day ago
Which language provides the most random alphabetically sorted sequence?
Data
Plot with Pearson Score
Code
bash gnuplot -p -e ’ set xlabel “Base Sequence”; set ylabel “Alphabetic”; set xtics (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12); set ytics (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12); stats “alphabetic.tab” using 1:2 name “E”; stats “” using 1:3 name “D”; stats “” using 1:4 name “G”; stats “” using 1:5 name “T”; set label 1 sprintf(“Corr. [Eng = %.3f], [Dut = %.3f], [Ger = %.3f], [Tur = %.3f]”, E_correlation, D_correlation, G_correlation, T_correlation) at graph 0.95,0.05 right; plot “” using 1:2 with lines title columnhead(2), “” using 1:3 with lines title columnhead(3), “” using 1:4 with lines title columnhead(4), “” using 1:5 with lines title columnhead(5) ’
Image
It looks like the most random language is Dutch (closest to zero), and Turkish appears to be the least random (probably the 10,11,12 sequence skewed it)
Resonosity@lemmy.dbzer0.com 1 hour ago
c/dataisbeautiful
jaybone@lemmy.zip 23 hours ago
You put a lot of work into this.
FeatherConstrictor@sh.itjust.works 23 hours ago
Thank you for doing and sharing this
null@slrpnk.net 19 hours ago
This is the second comment I’ve seen like this from you.
Please never stop.
diemartin@sh.itjust.works 19 hours ago
I didn’t expect soneone to put that much effort into it.
Thanks! This is awesome!