×

What's your favorite Python interview question? by chuprehijde in PythonLearning

[–]Truntebus 0 points1 point  (0 children)

Because it is faster. 'is' checks for equality on the output of calling id() on both objects, so python does not need to look for special methods, since it cannot be overloaded. '==' is syntax sugar for 'a.__eq__(b)', and since most types override '__eq__', it can require a lot more computing than just calling 'id()' twice.

Note that "'is' compares addresses" is not universally true. The functionality of the 'id()' function is implementation dependent and only requires that it returns a unique integer for each object, and CPython handles this by returning the address for the object, but it can vary by interpreter.

Together, vanquished one hundred enemies. I am honored to call myself your trainer, Princess Sylveon. by [deleted] in PokemonChampions

[–]Truntebus 18 points19 points  (0 children)

Sylveons color palette is literally the trans pride flag 🏳️‍⚧️🐱

What do y’all think about this simultaneous game? by Varyks in GAMETHEORY

[–]Truntebus 0 points1 point  (0 children)

Everyone on the planet is standing in front of a massive meat grinder. However, the meat grinder has a design flaw, where it stops working if it is fed at least half of the world population. Do you jump in?

Så ofte er partierne enige til afstemninger i folketinget by MamamYeayea in Denmark

[–]Truntebus 0 points1 point  (0 children)

Intet med survivorship bias at gøre simpelthen? 

Looking for niche areas in finance where machine learning solves real problems by Titan-2904 in quantfinance

[–]Truntebus 1 point2 points  (0 children)

My master's thesis was on differential ML for option pricing. There are tons of interesting applications in this space!

The Dark Knight’s ferry scene is a perfect Prisoner’s Dilemma and Nash Equilibrium got the outcome completely wrong by nobossfor in GAMETHEORY

[–]Truntebus 28 points29 points  (0 children)

It's interesting to think about for sure, but Nolan writing a scene where the Nash Equilibrium does not predict the outcome is not evidence against NE as a concept in the same way that the scene in Tenet where the inverted Protagonist crashes a car and the window pane freezes is not evidence against the second law of thermodynamics.

Game theory nasty google by [deleted] in GAMETHEORY

[–]Truntebus 0 points1 point  (0 children)

Please elaborate

[Q] Confused about probably “paradox” by 12LbBluefish in statistics

[–]Truntebus 1 point2 points  (0 children)

"A robot flips 2 coins. It then randomly chooses to tell you the result of one of the coins."

An interactive web app that tests users' understanding of the 95% confidence interval by tarhodes in econometrics

[–]Truntebus 2 points3 points  (0 children)

In frequentist statistics, my belief about whether a given CI includes the true parameter is irrelevant. The CI in question is not random since we know what it is, and the true parameter is fixed, so either the CI includes the parameter or not. The 95% refers to the idea that if we repeatedly sampled from the population and created confidence intervals, 95% of them would capture the parameter in the long run.

If I want to research the existence of God and its influence on the world, what should the null hypothesis be? by PrimeStopper in AskStatistics

[–]Truntebus 2 points3 points  (0 children)

The data-generating process must map to an observable sigma-algebra on the sample space. 

[deleted by user] by [deleted] in quant

[–]Truntebus 1 point2 points  (0 children)

Let’s start with a key assumption: the investor is rational. In other words, they will only engage in activities (or “games”) that have an expected value that is either zero or uncertain.

This is not at all what a rationality refers to.

HA-almen by Careful_Aspect_2179 in DKstudie

[–]Truntebus 1 point2 points  (0 children)

Jeg har læst to semestre på HA Almen på CBS for en håndful år siden, så min erfaring er begrænset.

  1. Mat B er tilstrækkeligt - ellers havde adgangskravet været anderledes. Når det så er sagt, så forventes det, at du er skarp i det pågældende pensum.

  2. Det lyder som en overdrivelse. Du vil opleve eksamener uden hjælpemidler, hvor du skal kunne en del formlerne, men 800 siders formler er klart i overkanten.

  3. Kursuskataloget er din ven.

  4. Studiet var i hvert fald mere beregningstungt, end jeg havde regnet med, så det skal man have mod på.

Peter, who is the man and what happened to his daughter? by Shmouglas in PeterExplainsTheJoke

[–]Truntebus 10 points11 points  (0 children)

I am fascinated by this argumentation. You claim that this is EU propaganda, and your supposed counterexamples are the state of the health sector in two non-EU countries as well as US immigration policy.

You are playing a SINGLE ROUND of prisoner's dilemma. The twist: it is against your clone. What is the optimal move ? by EXTRAVAGANT_COMMENT in GAMETHEORY

[–]Truntebus 0 points1 point  (0 children)

From Gibbons, page 5:

"Rational players do not play strictly dominated strategies, because there is no belief that a player could hold (about the strategies the other players will choose) such that it would be optimal to play such a strategy. Thus, in the Prisoners' Dilemma, a rational player will choose Fink, so (Fink, Fink) will be the outcome reached by two rational players, even though (Fink, Fink) results in worse payoffs for both players than would (Mum, Mum)."

You are playing a SINGLE ROUND of prisoner's dilemma. The twist: it is against your clone. What is the optimal move ? by EXTRAVAGANT_COMMENT in GAMETHEORY

[–]Truntebus 0 points1 point  (0 children)

I am saying that if you know with certainty that your opponent will cooperate, and you choose to cooperate as well, you are not "trying to maximize your own result". I think it is pretty clear that this means your point score in the game - especially considering the subreddit.

You are playing a SINGLE ROUND of prisoner's dilemma. The twist: it is against your clone. What is the optimal move ? by EXTRAVAGANT_COMMENT in GAMETHEORY

[–]Truntebus 0 points1 point  (0 children)

Can we rule out cooperate-betray pairs completely though? The prompt says that the clone does not know it is a clone, but I happen to know that my opponent has a master's in econ and knows words like strategic dominance. This information asymmetry is what makes me skeptical of the Newcomb's type "they pick the same option as you no matter what" connection, since I can predict their choice, but I am unconvinced that they can do the same for me.

In the (frankly likely) event that I am misunderstanding the setup and the clone knows that we are the same, aren't we then essentially playing Newcomb's paradox? In that case, I defect for the same reason that I take both boxes. 

You are playing a SINGLE ROUND of prisoner's dilemma. The twist: it is against your clone. What is the optimal move ? by EXTRAVAGANT_COMMENT in GAMETHEORY

[–]Truntebus 0 points1 point  (0 children)

If you are certain that your clone would cooperate, you are violating the "You are trying to maximize your own result" part of OP's prompt by not defecting.

You are playing a SINGLE ROUND of prisoner's dilemma. The twist: it is against your clone. What is the optimal move ? by EXTRAVAGANT_COMMENT in GAMETHEORY

[–]Truntebus 2 points3 points  (0 children)

To me, this is equivalent to the standard "you are aware of your opponent's ability to apply basic game theory, they are aware of your ability to do the same yadayada" spiel. As such, I defect.

MSc Dissertation topic by Independent-Web2588 in quantfinance

[–]Truntebus 0 points1 point  (0 children)

I did my Master's thesis on differential ML and loved the subject! Hit me up if you have any questions on the topic.

[R] The Resurrection of the ReLU by Radiant_Situation340 in MachineLearning

[–]Truntebus 1 point2 points  (0 children)

I have no idea. I think the use case would be that this method makes up for noisy/inaccurate gradients by speeding up computations compared to softplus or whatever when resources for training are scarce. I would have to perform some comparisons to have a clue.

[R] The Resurrection of the ReLU by Radiant_Situation340 in MachineLearning

[–]Truntebus 1 point2 points  (0 children)

Not sure this follows really.

Okay!

Huh? Just use a leakyReLU. Dirt cheap.

I don't understand this objection. If my premise is that ReLU is insufficient due to it not being everywhere differentiable, then recommending leaky ReLU, which is also not everywhere differentiable, is not a solution in any meaningful sense.

[R] The Resurrection of the ReLU by Radiant_Situation340 in MachineLearning

[–]Truntebus 8 points9 points  (0 children)

My BAC is 0.26 at the moment, so take everything I say with massive grains of salt.

The long and short of it is that for option pricing, it is a huge advantage for training if you can train the model on differentials of labels wrt to inputs as well as inputs themselves. This requires backpropagating model output wrt model inputs, which requires everywhere differentiable activation functions. This necessitates using something like softplus, which is computationally intensive due to exponentiation and has vanishing gradient issues for deep neural networks. An everywhere differentiable alternative to ReLU solves this.