NeatNit
@NeatNit@discuss.tchncs.de
- Comment on Soup of Theseus 18 hours ago:
/u/TranquilTurbulence@lemmy.zip fairly sure the distribution you should use is hypergeometric distribution, found via urn problem.
- Comment on Soup of Theseus 18 hours ago:
In python the closest I could find was (untested): sum(random.sample([1, 0], spoon_size, counts=[soup_count, water_count]))
But this would create an intermediate list of length spoon_size which is not a good idea.
- Comment on Soup of Theseus 20 hours ago:
Interesting. I don’t know why I didn’t think of just keeping a count of soup molecules. Must have been late!
Another interesting point, your simulation is subtly wrong in a different way from my calculation. When there is only one soup molecule left, there is a chance (however tiny) that
rbinom
will return 2 or more, taking out more soup molecules than there really are.If you run it enough times with a bowl of 3 molecules and a spoon of 2 molecules, I’m sure you’ll hit -1 soup molecules some of the time.
For a simulation I think we can do better. There must be a random function that does it properly. The function we want is like pulling balls of 2 colors out of a sack without replacement. Pretty common combinatorics question, I would expect a random function to match.
- Comment on Soup of Theseus 1 day ago:
By the way, how did you actually stimulate it? Surely you didn’t keep 10^25 variables in memory…
- Comment on Soup of Theseus 1 day ago:
You rock! Thank you :)
If I find myself in the right mood I might try to work out the actual distribution. If I do, your simulation will be a very handy sanity check!
- Comment on Osama boeing laden💀 1 day ago:
how do you hijack a sentient plane?
I’m glad you asked. en.wikipedia.org/…/Ophiocordyceps_unilateralis
- Comment on Soup of Theseus 2 days ago:
:)
What I would like to do is give a margin of error, e.g. “there is a 95% change that it will be between spoonful 1000 and spoonful 1300” or something like that. But I don’t have the time to figure that out now, sounds like it would be harder to figure out than the expected value.
- Comment on Soup of Theseus 2 days ago:
Ok, let’s do the probability math properly. Others have mentioned how it’s a matter of probability how long until the last molecule of soup is taken out.
Suppositions:
There are N molecules in every ml of soup and every ml of water.
All soup molecules are the same.
Every spoonful takes out exactly 25N molecules out of the bowl selected at random, and they are immediately replaced by 25N molecules of water.
At the start, there are 500N molecules of soup in the bowl.
The question is:
How many spoonfuls is it expected to take until all soup molecules are removed?
For every spoonful, each molecule of soup in the bowl has a 25/500 chance of being removed from the bowl.
For ease of calculation, I will assume that each molecule being removed is independent of all others. This is technically wrong, because this implies that there is a very very tiny chance that all soup molecules are replaced in the very first spoonful. However, for the large number of molecules we are going to be working with, this shouldn’t affect the final result in any meaningful way.
Number all soup molecules in the bowl: 1, 2, …, 500N.
Define X_i to be the number of iterations it took until molecule i was removed. All X_i are I.I.D.:
P(X_i = 1) = 25/500 P(X_i = 2) = (475/500) * 25/500 P(X_i = 3) = (475/500)² * 25/500 … P(X_i = n) = (475/500)^(n-1) * 25/500
This is a geometric distribution with p = 25/500.
Now what we’re interested in if the maximum value between all X_i
That is: max_i { X_i }
Specifically we want the “Expected Value” (basically the average) of it: E[ max_i { X_i } ]
This is exactly the question asked here: math.stackexchange.com/q/26167
According to the answer there, there is no closed-form exact answer but a very good approximation for the solution is:
1/2 + (1/λ) H_N
Where λ = -log(1-p) and H_n is the nth harmonic number.
Now it’s just a matter of plugging in the numbers.
According to Wolfram Alpha, there are N = 3.333*10^22 molecules in 1mL of water.
Again using Wolfram Alpha, the Nth harmonic number is H_N = 52.438
With the formula given we get λ = -log(475/500) = 0.051293
Plugging it all in we get the expected number of spoonfuls:
1022.8
- Comment on The White House Rose Garden was replaced by pavement 2 days ago:
If you just want to be a contrarian for the hell of it, you’re doing great.
- Comment on The White House Rose Garden was replaced by pavement 2 days ago:
It’s more nature that what’s there now
- Comment on Especially the Ø... 4 days ago:
I’m guessing (not sure) that AltGr, visible in the picture, switches between the two options like Shift would. Shift still switches case.
I think the main reason they didn’t make an umlaut modifier is that ä is considered a distinct letter from a. It would be like asking why have a key for w (“double u”) when it could have been typed as uu. Not a perfect analogy but the best I can think of right now.
- Comment on Bird 4 days ago:
Either that or he’s a follower of Hank Green: youtu.be/-C3lR3pczjo (plus a few more of his recent videos)
- Comment on Can any scientists confirm this important fact? 5 days ago:
You know what, you’re right, framing it as a “scientific discovery” isn’t cool.
- Comment on Can any scientists confirm this important fact? 5 days ago:
All I’ll say is cats meow at humans and they don’t meow at other cats except their own mom. To me this instantly defeats this take.
It’s just a fun post though so I’m not judging.
- Comment on Is it possible to make wireless charging broadcast electricity throught an entire house similar to how wifi can broadcast to the entire house? 6 days ago:
IIRC this was kind of the dream of either Nikola Tesla or Thomas Edison (I forgot which one). But no, it’s not really possible, as others have said.
- Comment on Google Gemini deletes use's code 1 week ago:
I see, that’s different from how I interpreted it. Thanks for clarifying.
I don’t really see it that way. To me it’s not downplaying anything. AI ‘hallucinations’ are often disastrous, and they can and do cause real harm. The use of the term in no way makes human hallucinations sound any less serious.
As a bit of a tangent, unless you experience hallucinations yourself, neither you nor I know how those people who do feel about the use of this term. If life has taught me anything, it’s that they won’t all have the same opinion or reaction anyway. Some would be opposed to the term being used this way, some would think it’s a perfect fit and should continue. At some point, changing language to accommodate a minority viewpoint just isn’t realistic.
I don’t mean this as a blanket statement though, there are definitely cases where I think a certain term is bad for whatever reason and agree it should change. It’s a case by case thing. The change from
master
tomain
as the default branch name in git springs to mind. In that case I actually think the termmaster
is minimally offensive, but literally no meaning is lost if switching tomain
and that one is definitely not offensive so I support the switch. For ‘hallucination’ it’s just too good of a fit, and is also IMO not offensive. Confabulation isn’t quite as good. - Comment on Google Gemini deletes use's code 1 week ago:
I genuinely considered writing “confabulated” instead of “hallucinated” but decided to stick with the latter because everyone knows what it means by now. It also seems that ‘hallucination’ is the term of art for this: en.wikipedia.org/…/Hallucination_(artificial_inte…
So while I appreciate pedantry and practice it myself, I do stand by my original phrasing in this case.
- Comment on Google Gemini deletes use's code 1 week ago:
None of this would happen if people recognized that, at best, AI has the intelligence level of a child. It has a lot of knowledge (some of which is hallucinated, but that’s besides the point) but none of the responsibility that you’d hope an adult would have. It’s also not capable of learning from its own mistakes or being careful.
There’s a whole market for child safety stuff: corner foam, child-proof cabinet locks, power plug covers, etc… You want all of that in your system if you let the AI run loose.
- Comment on I turned 30 yesterday but I look 18. Nobody believes me when I tell them my age. What do I do? Do I date a 20 year old guy or a 35 year old guy who looks twice my age? 1 week ago:
Happy birthday!
Just for the sake of anyone interested, OP recently made another post about looking too young (but not about relationships): discuss.tchncs.de/post/40800887
If nothing else, it might give more context.
- Comment on the living dead 2 weeks ago:
that seems to be the consensus, I’ve accepted it :P
- Comment on the living dead 2 weeks ago:
Why “human”? Seems a weird way to phrase it but I can’t deny it works.
- Comment on the living dead 2 weeks ago:
well “skill issue” was one of the options so it might be that
- Comment on the living dead 2 weeks ago:
Depends on the human. en.wikipedia.org/wiki/Cotard's_syndrome
Side note: I am furious that I wasn’t able to find the name of this syndrome without ChatGPT. Is this a skill issue or are traditional search engines (in this case DuckDuckGo) just completely useless now?
- Comment on Is it weird I don't typically answer how old I am anymore, because literally nobody besides my family believes me? 2 weeks ago:
I don’t have much to say other than I once worked with someone in this exact situation. She was 30 but looked like she’s still in highschool. It’s surreal.
What you do with it is up to you! Like most things, it’s a blessing and a curse. Try to look on the bright side. As I’m sure you’ve been told hundreds of times, when you’re way older you’re going to reap a lot of benefits of looking young.
If it were me (for reference, I’m 31 male) I’d probably just keep giving straight answers and make the best of whatever reactions I get. Obviously in different contexts you’d prefer different reactions but in any case you get what you get.
Please tell me most people, when they eventually believe you, say you look freaking amazing!
- Comment on Is it weird I don't typically answer how old I am anymore, because literally nobody besides my family believes me? 2 weeks ago:
When I was about 25 I started adding10 years to my age when people asked, just to see the reaction.
I love it. This is the way.
- Comment on [deleted] 2 weeks ago:
Yup. When it’s required in order to access something then it’s no longer a donation, it’s a fee.
I wasn’t aware of that instance and I can’t really advise. To me that’s a bit of a red flag (specifically the fact that it wasn’t mentioned upfront) but not necessarily a reason to count them out if you really think they stand out.
- Comment on investment 2 weeks ago:
I love that factoid! It was also a question on Lateral podcast. I just spent a few minutes trying to find it on their highlights channel on YouTube, but no luck.
- Comment on irresistable 3 weeks ago:
I’ll take it, and I stand corrected.
- Comment on Since we're doing magic eyes now... 3 weeks ago:
Awesome! I cross-posted this to !crossview@lemmy.world :)
- Comment on UwU brat mathematician behavior 3 weeks ago:
My thoughts exactly lol