spoiler

Hello world

  • 164 Posts
  • 27 Comments
Joined 1 year ago
cake
Cake day: July 8th, 2023

help-circle



















  • Or do think there’s something special about the person that makes them flip tails more often?

    Yes, that’s the conclusion that the scientist has come to. The chance of getting 20 in a row is so extraordinarily unlikely that it’s reasonable to conclude that the chance is not 50/50 for that particular surgeon.


  • Sjmarf@sh.itjust.worksOPtoScience Memes@mander.xyz50% survival rate
    link
    fedilink
    English
    arrow-up
    208
    ·
    edit-2
    1 month ago

    The normal person thinks that because the last 20 people survived, the next patient is very likely to die.

    The mathematician considers that the probability of success for each surgery is independent, so in the mathematician’s eyes the next patient has a 50% chance of survival.

    The scientist thinks that the statistic is probably gathered across a large number of different hospitals. They see that this particular surgeon has an unusually high success rate, so they conclude that their own surgery has a >50% chance of success.





  • Sjmarf@sh.itjust.worksOPtoProgrammer Humor@programming.devSus
    link
    fedilink
    arrow-up
    102
    ·
    edit-2
    2 months ago

    not() is a base function that negates what’s inside (turning True to False and vice versa) giving it no parameter returns “True” (because no parameter counts as False)

    Actually, not is an operator. It makes more sense if you write not() as not () - the () is an empty tuple. An empty tuple is falsy in Python, so not () evaluates to True.















  • I’m a developer of a Lemmy client. When you upload an image to a Lemmy instance, the instance returns a “delete token”. Later, you can ask the instance to delete the image attached to the delete token. So as long as you keep hold of the delete token for a specific image, you’re able to delete it later.

    Lemmy-ui (the official frontend) will give you the option to delete an image again shortly after uploading it. However, it’s not possible to remove the image after actually creating the post, as the delete token associated with that post isn’t remembered anywhere on the Lemmy backend.

    As for other Lemmy clients, YMMV. The client I work on (Mlem) deletes images if you remove them from a post before posting it, but has the same pitfall as Lemmy-ui in that it won’t delete the image if you’ve already created the post.

    It would be possible to locally save the delete tokens of every image you upload, so that you can request that they be removed later. I don’t know of any clients that can do this yet, though (if someone knows of one, feel free to mention it).

    Edit: clarity