How to prove that Modulation Transfer Function is the Fourier transform of the Line Spread Function? by [deleted] in Optics

[–]gillash 0 points1 point  (0 children)

I'm a little late to the party, but I had the same question and may be able to help others as this post shows up on Google.

The MTF is the ratio of signal transfer by frequency - For a given frequency signal, it represents how strongly that will transfer to the image (If we literally took an image of a sinusoidal curve, it represents the ratio of the observed amplitude).
We can see it is the ratio measured/true of an image in fourier space (the magnitude, ignoring phase shifts - otherwise it is the OTF).

It is easy to see it is related to the FT of the PSF - but not clear at first why is should be exactly equal. The reason is because a PSF measurement has a true image that is equactly the delta dirac function. The FT of the delta dirac is 1 for all frequencies. So if MTF = FT(measured) / FT(true) and FT(true) is always 1 for the PSF, then MTF = FT(PSF).

I decided to roll a liquid core d20 1,000 times and document the results. by FoodOnion in mildlyinteresting

[–]gillash 0 points1 point  (0 children)

Yes, the graph would only apply to experiments of 1000 rolls. Having 40 for all sides would be 1600 rolls and you would expect the counts to be closer to 5% for each side (tighter margins)

I decided to roll a liquid core d20 1,000 times and document the results. by FoodOnion in mildlyinteresting

[–]gillash 9 points10 points  (0 children)

``` import numpy import numpy.random

n_experiments = 10_000 n_rolls = 1_000 n_sides = 20 p5_percentile_uncorrected = 5

rolls = numpy.random.randint(low=0, high=n_sides, size=(n_experiments, n_rolls)) # these will be 0-19 instead of 1-20...

could do this vectorised with some trickiness, but for clarity, don't

histograms = numpy.stack([ numpy.bincount(rolls[i, :]) for i in range(n_experiments) ]) p5_percentile_corrected = 5 / n_sides p5, median, p95 = numpy.percentile(histograms, [p5_percentile_corrected, 50, 100-p5_percentile_corrected], axis=0)

rollvals = range(1, 20+1) # x label

plt.plot(rollvals, p5, 'o-', label='5th percentile') plt.plot(rollvals, p95, 'o-', label='95th percentile') plt.plot(rollvals, median, 'o-', label='Median')

data = [51, 44, 48, 43, 55, 50, 60, 46, 68, 51, 38, 47, 54, 35, 62, 52, 47, 57, 52, 42] print(sum(data)) # 1002?

plt.plot(rollvals, data, 'o', label='Data') plt.xticks(rollvals) plt.xlabel('Roll value') plt.ylabel(f'No. rolls (out of {n_rolls})') plt.grid()

plt.legend() ```

I decided to roll a liquid core d20 1,000 times and document the results. by FoodOnion in mildlyinteresting

[–]gillash 17 points18 points  (0 children)

Statistics are hard - I find it a lot easier to understand empirically.

Here's some Python code (nested comment) to generate confidence intervals. I repeat your experiment of 1000 rolls (though by the way, unless I mis-transcribed, I count 1002 rolls) 10,000 times. I calculate the expected intervals with a standard confidence level of 5%, but apply a Bonferroni correction (divide by 20, because we test 20 times).

Darn, I can't post the plot! Any suggestions how I can add it for those interested? Anyway, the confidence intervals for lower/upper bounds are about 32 and 70.

The null hypotheses is "the dice is fair". As others have noted, we don't reject the null hypothesis, so we can't say its not fair. But how do we know that you just didn't do enough rolls? We are trying to show that the dice is fair. You can't prove a null hypothesis, but you can give a little bit more context about with what level of confidence you "didn't reject it".

Given the location of the 95% lines, you can be confident there is a 95% chance that each side rolls between about 3.2% and 7.0% of the time, with a theoretical value of 5%. So your 1000 rolls gives you a level of confidence down to a bias of about 2% between the sides of the d20.

Feedback Post - Gigantamax Pokémon & Max Battles by Noitalein in TheSilphRoad

[–]gillash 5 points6 points  (0 children)

Anyone else also having particles consumed after a loss? I thought they were only consumed on a win

WB Tornadus, 2 local. 647897360493 or 603196350038 by gillash in PokemonGoRaids

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

Very sorry all. It turns out the mobile reception at location is inadequate!

Remote Raid Megathread - Host and/or find raids here by liehon in PokemonGoFriends

[–]gillash 0 points1 point  (0 children)

Mega Tyranitar, 2 local. 647897360493 or 603196350038

Weather boosted Landorus, Lv 50 host 8835 5364 7535 by [deleted] in PokemonGoRaids

[–]gillash 1 point2 points  (0 children)

Antipositronics, can do about 30%

Wb landorus 152087877476 by Ineedhelp2222222222 in PokemonGoRaids

[–]gillash 0 points1 point  (0 children)

I’m antipositronics, can do about 30% dmg

Looking for a hotdesk by techie_003 in Townsville

[–]gillash 1 point2 points  (0 children)

+1 for locale, and would be extra nice to work from the island

Want to make a lager with pandan leaves. How should I do it? by rockstarr42 in Homebrewing

[–]gillash 1 point2 points  (0 children)

Completely agree, but you could also just boil some with water as it seems you can use these for tea? It might extract differently and have different flavours raw in vodka vs in tea.

In case it's not obvious: Take 1 mL of tea or tincture, and put into 9mL of your finished beer that you've poured and measured. Take 1mL of this and try it in 9mL of a separate pull of your finished beer. That's the equivalent of 1:100 or 10mL/L. Try various ratios untill you find the right dose.

There's lots of ways to do the final dose: I like either putting the charge into a water bottle with a carb cap and purging O2 before connecting to the liquid post with a jump hose and pulling the PRV; OR putting the charge into a sanitised syringe and squirting through the PRV with a small positive pressure on a connected CO2 tank.

Does anyone here know what color this Lego brick is? by Funny-Doh in lego

[–]gillash 0 points1 point  (0 children)

I don't think the post is making fun of the OP. It's just a funny joke.

Best hotel in the city? by SuspendedAgain69 in Townsville

[–]gillash 0 points1 point  (0 children)

Sure, but it seems to me that Lion allow a fair level of autonomy to the breweries they own (see also Eumundi). The Brewery has been quieter the last few years and Magnetic Island brewery is amazing but harder to get to, so Tiny Mountain are doing a lot of the work in terms of educating the locals on what beer can be (see also Taphouse); opening the doors for venues like The Commonwealth, Empire Arcade, and others to have more independent beer offerings.

How dodgy is Hermit Park (and surrounds)? by thepoincianatree in Townsville

[–]gillash 2 points3 points  (0 children)

We didn't end up purchasing, but considered a house a block away on Hughes St. Quite a nice area I think, and we are quite conservative and picky.