https://xcancel.com/NateSilver538/status/1853673781350260902

  • kleeon [he/him, he/him]
    ·
    11 hours ago

    the simulation in question:

    for (int i = 0; i < 80000; i++) {
       if (rand() % 2 == 0) {
          printf("Kamala wins\n");
       }
       else {
          printf("Trump wins\n");
       }
    }
    
    • Hexboare [they/them]
      ·
      6 hours ago

      I'm guessing it literally is a few lines in R, plugging in the polling data after running it through a "model" (i.e. tinkering with the variables based on how polls have historically translated into votes)

    • merthyr1831@lemmy.ml
      ·
      7 hours ago

      huh, the sync for Lemmy code block renderer doesn't show the \ even within the code block 👁️👁️

    • carpoftruth [any, any]
      ·
      8 hours ago

      could you please input that into chatgpt so it will give me a summary of the code output? I'm a busy data driven guy so I don't have time for the details. however, I do have time for this post

    • plinky [he/him]
      ·
      edit-2
      8 hours ago

      Seems lots of unnecessary mods tbh,

      S=0

      for i in 1:80000

      S+=rand()

      end

      ceil(S)

      • naom3 [she/her]
        ·
        7 hours ago

        Modding by 2 is just a bitwise operation tho

        • plinky [he/him]
          ·
          edit-2
          5 hours ago

          Gotta dump results in some accumulate tho, and if then logic might be eh (although with branch prediction it might be auto 2 threads actually soviet-hmm or similar utilization at least)

    • SSJ3Marx [he/him]
      ·
      9 hours ago

      Hey! I understood that! That Python class must've taught me something after all.