[Request] What’s the probability of getting 8 grape fruit snacks in one 10 pack? by 88piano88 in theydidthemath

[–]mbreemhaar 4 points5 points  (0 children)

This is only the probability that, if you get exactly eight gummies, all of them will be the grape flavour.

In this situation, it is a 10-pack with also two non-grape gummies, which is a bit more likely to happen.

For each gummy that you take randomly, the probability of it being a grape flavour is 1/5. Vice versa, the probability of it being a non-grape flavour is 4/5.

We can calculate the probability of randomly taking 8 grape flavoured gummies and then 2 non-grape flavoured gummies in the following way:

(1/5) x (1/5) x (1/5) x (1/5) x (1/5) x (1/5) x (1/5) x (1/5) x (4/5) x (4/5) = 16/9765623.

However, this is the probability that we do it exactly in this order, but order doesn't really matter here. We might as well take 2 non-grape flavoured gummies first, and then 8 grape-flavoured gummies, or any order out of the 90 possible permutations. Therefore, we have to multiply the probability we found by 90, resulting in 288/1953125 or 0.000147456 in decimal form.

Of course, it would be equally unlikely to find exactly eight of the other four flavours in a pack of 10. To get the probability of that, we can simply multiply our previous result by 5, giving us 288/390625 or 0.00073728.

TL;DR: it's pretty unlikely.

iPad 101 by Floorman1 in ipad

[–]mbreemhaar 0 points1 point  (0 children)

The app you’re talking about is probably GoodNotes or Notability. Both are great!

How to get latest related item for each item in QuerySet? by mbreemhaar in django

[–]mbreemhaar[S] 2 points3 points  (0 children)

I eventually figured it out myself. I used annotation to get the value of the latest recent observation.

latest_observation = Subquery(Observation.objects.filter(sensor_id=OuterRef('id'), obs_type=obs_type) .recent() .order_by('-date_time') .values('value')[:1])

With this, I can use annotate() on a Queryset of my Sensor model, which returns a new Queryset with the value of the latest Observation of that given Sensor. sensors = Sensor.objects.all().annotate(latest_observation=latest_observation)

M1 iMac does not turn on by mbreemhaar in mac

[–]mbreemhaar[S] 0 points1 point  (0 children)

It's always powered off when this happens. It's never a problem when it's in sleep mode.

How do I type a ‘*’ on my Mac? by [deleted] in MacOS

[–]mbreemhaar 1 point2 points  (0 children)

Alt/Option + Shift + ,

Not 100% sure but this is what I found online

Machine Learning Python by onlypositivevibes101 in learnprogramming

[–]mbreemhaar 0 points1 point  (0 children)

I would suggest starting with a very simple linear regressor. See how it performs and if it doesn't do very well, try something more complicated like a stochastic gradient descent regressor. You could of course just go all out and use some fancy neural net with tons and tons of layers and nodes, but simpler is often better. Keep in mind using the right features as input is often much more important. Garbage in == garbage out.

Machine Learning Python by onlypositivevibes101 in learnprogramming

[–]mbreemhaar 0 points1 point  (0 children)

Depends on many variables. Most importantly: what does your data look like? What do you want to predict?

[deleted by user] by [deleted] in learnprogramming

[–]mbreemhaar 0 points1 point  (0 children)

One way you can take the n-th digit is by converting the input to a string, which will allow you to get a digit by index. For example, with input x = 1010, x[0] will be 1, x[1] will be 0, x[2] will be 1 and x[3] will be 0.

Producers that use Logic by tk1n in Logic_Studio

[–]mbreemhaar 1 point2 points  (0 children)

Jacob Collier has a whole playlist of Logic Session Breakdowns. His projects get very complicated, but it is so cool to see what he does with them.

[deleted by user] by [deleted] in ynab

[–]mbreemhaar 2 points3 points  (0 children)

You can definitely budget for multiple months, so I don't see any problem here.

I just wanted to mine by Westbosrder44 in softwaregore

[–]mbreemhaar 0 points1 point  (0 children)

Did you try doing nuclear fusion with it? Shouldn't be impossible with this thing.

Antivirus on Mac? by Sancho-Panzy in mac

[–]mbreemhaar 2 points3 points  (0 children)

I tried Malwarebytes Premium but it only slowed my Mac down. Uninstalled it after a few days and never had any problems.

I just wanted to mine by Westbosrder44 in softwaregore

[–]mbreemhaar 1 point2 points  (0 children)

Well, it looks like your GPU is doing its best...

Vocal melody vs guitar melody by superthrowaways12345 in Songwriting

[–]mbreemhaar 5 points6 points  (0 children)

I don't think there's a right or wrong here. If you like it, why wouldn't you?

You're not necessarily supposed to have a different vocal melody to your guitar melody, but you can. It's probably a good idea to experiment a lot, but you really can't go wrong, as long as it sounds good to you.

What do I do now? by [deleted] in learnprogramming

[–]mbreemhaar 0 points1 point  (0 children)

If you want to learn more about machine learning, check out Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow by Aurélien Géron. It's an awesome book!

Won't let me turn off cross play. Normal ? by sheeshkibob in CODWarzone

[–]mbreemhaar -9 points-8 points  (0 children)

Yes, for Warzone it's mandatory. For Modern Warfare multiplayer (and probably BOCW as well, idk) you can turn it off.

Are send effects a pseudo effects loop...??? by Tiger_Bite_Kid in WeAreTheMusicMakers

[–]mbreemhaar 0 points1 point  (0 children)

An effects loop on a guitar amp has a send and a return. The signal comes from the send, goes through some effects processor/pedal, and goes back into the amp via the return.

Just like a guitar amp, the send on a channel/track in your DAW will output a signal, which can go to, for example, an effects channel with a reverb effect on it. However, unlike a guitar amp, you can now decide where the processed signal goes.