Hacker News new | past | comments | ask | show | jobs | submit | more laplacesdemon48's comments login

Here's a great video explaining the National Popular Vote Interstate Compact:

https://www.youtube.com/watch?v=tUX-frlNBJY&t=122s


Why is this post flagged? Does this not adhere to any guidelines? Genuinely curious.


It's in the first section of the guidelines:

"Off-Topic: Most stories about politics, ... If they'd cover it on TV news, it's probably off-topic."


> Throughout the last five years, we have failed repeatedly. We have mislabeled tubes and used ethanol instead of water to dilute DNA. We have dropped flasks, shattering glass and spilling bacteria on the floor. We have been frustrated, again and again. But we continued on, inching closer to mastery over the molecular wiring of genomes. In the future, we’d like to extend this work to other organisms; perhaps even humans.

This. I love the honesty about the scientific process. This is completely lost to most science students while they cram facts before an exam. The road to most beautiful discoveries is often paved with lots of fumbles.


I agree. Unfortunately, the typical undergraduate experience in biology involves a lot of rote memorization and cookbook experiments, not actual discovery. Probably filters out some people who would actually make good scientists.


It filtered me out. I spent several years in a non-science field and always had that itch I couldn't quite scratch with my day-to-day work. I left my career earlier this year to pursue a new one in science. Went back to school for the first time in a while, not cramming but actually taking the time to learn. I love it.


I wanted to post the video first but accidentally sent it to the comments. That is most of the video title.

I can not remove this post or edit the title. I understand the rules but don’t think this title is misleading.


(not my) video explaining this: https://www.youtube.com/watch?v=tUX-frlNBJY


Definitely not an expert but there's a fundamental hurdle to this.

One way to think of this is to realize how easy it is to multiply numbers but how much more work it takes to divide numbers.

For something like automatic differentiation, you're essentially applying the chain rule for partial derivatives repeatedly. This is analytically pretty straightforward to do for most applications. All you need is an analytical derivative for the simple functions your more-complex function is comprised of (e.g. a neural network).

For integration, the analogue of the chain rule is integration by substitution [1]. The toolbox for solving integration problems is more limited than for differentiation. You run into issues where the answer cannot even be expressed using standard mathematical notation [2]. Sometimes you get lucky and the answer can be expressed via an alternating Taylor series so you can estimate the answer within some margin of error [3].

Stan is a piece of software that runs state-of-the-art MCMC methods to basically just compute fancy integrals. A Stan model will take an order of magnitude more time to run than a simple neural network via something like PyTorch on the same dataset. But they answer different questions.

[1] https://math.stackexchange.com/questions/1635949/is-there-a-...

[2] https://math.stackexchange.com/questions/1397132/why-cant-so...

[3] https://math.stackexchange.com/questions/145087/how-to-calcu...


Slightly tangential fact I heard recently on a podcast [0]: historically the problem of integration preceded that of differentiation. But because differentiation is so much easier, we teach that to kids first. It's one of the many ways that schools obscure the intuition of calculus and turn it into so many formulae to be memorised.

[0] https://newbooksnetwork.com/david-bressoud-calculus-reordere...


You're assuming that you want to express the integral as an elementary function, or as a member of another narrow class of functions. It's only in that case that the lack of a chain rule is a problem. What you actually want is the ability to evaluate the integral to within epsilon numerically, which is a much more flexible problem.

But then again, it's not clear what the OP meant by "automatic integration" anyway.


You are right, however the same way with automatic differentiation, you never get the expression, with automatic integration it would be the same.


Can you please elaborate on "you never get the expression"?

When you input the variable values into a symbolic derivative you just get a value at the end. d/dx x^2 = 2x. If x = 0.5 then d/dx = 1. The same is true for symbolic integrals. For most practical applications, we don't really care about the full symbolic expression. We just want the answer, or at least a good approximation. This post uses a specific example of the difference between two Beta distributions. We want to get that 0.71. It is very hard to "automatically" make that happen.


For algebraic expressions you get an expression if you expand in dual numbers.

But what about something like cos(x). Either you can lazily evaluate the power series or you know its sin(x).


Are you familiar with automatic differentiation? https://blog.demofox.org/2014/12/30/dual-numbers-automatic-d... note that you get f(x) and f'(x) for some x without getting the derived function.


Ooh, that's a neat technique. I think you can get an expression for the derivative from it.

Say we want the derivative of f(x) = x^3 - 2x^2 + 5. That becomes:

(x+e)^3 - 2(x+e)^2 + 5

= x^3 + 3x^2e - 2x^2 -4xe + 5

= (x^3 - 2x^2 + 5) + (3x^2 - 4x)e

The term in front of 'e' is "3x^2 - 4x", which is f'(x).


Just to clarify: This result follows directly from the definition of the derivative:

f'(x) = lim_{e->0} (f(x+e) - f(x))/e

If you're able to express f(x+e) on the form (f(x) + y e) then it follows that y is the derivative.

It also should be noted that auto-diff doesn't let you skip the rules for derivation and you're using the same calculation as you would to show that e.g. f'(x^n)=n*x^{n-1}.


Closed form integration is fundamentally different.

What's the integral of exp( sqrt ( 1 + (tan^(3/2) X)2 ) ) ) ?

We only know a handful of forms that can be integrated in closed form and its down to our creativity to discover new forms that can be integrated (same deal with solving differential equations and the reasons are the same).

The forms that we know how to integrate can be done by a computer. CAS tools will do that for you. For example Mathematica.


Are you familiar with automatic differentiation?


The reason why auto-diff is exact and amazing is because (1) the derivative operation is "decomposable" through the chain rule and (2) we've found the symbolic derivative of the basic functions. There's not a mathematical trick in auto-diff which we recently discovered. It's mainly a reformulation of the properties of the derivative which turns out to be useful for computers.

Finding an "auto-integrate method" would probably involve finding a way of calculating the integral in a decomposable way, and that indeed would be amazing, but I don't really see that happening any time soon.


I am. Try the integration analogue of it on the fairly simple example i gave. The auto-diff of that is a straightforward.


Right. I'm still working out the autoint thing so no. I can't try it right now.


U made me think integration approximations on GPU might be a valid optimization.


There was also an ancillary study to VITAL that focused on looking at depression & vitamin D3. Here's some good commentary on that study:

https://peterattiamd.com/randomized-controlled-trials-when-t...

tl;dr Due to the study's flawed design, you can't claim there's no connection between depression and oral vitamin D3 supplementation.


Are there any active studies on intermittent fasting in healthy young adults? (NY area)

I’m interested in intermittent fasting but I’d like to objectively track the effects beyond fat/weight loss. For example: ketone body blood concentration, respiratory exchange ratio, heart rate variability, etc.

I couldn’t find anything here but maybe I’m not looking in the right place: https://clinicaltrials.gov/ct2/results?term=intermittent+fas...


I remember the frequentist approach taught in introductory stats classes never making sense to me. I didn't want to shove "stats" into the back of my brain and just focus on graduating. I genuinely wanted to understand the world a little better.

I began to research alternative approaches to modeling and conducting inference a few years ago. Discovering Bayesian Inference has had a large impact on the way I think and conduct research. There's a lot of hype and uncertainty about what "Bayesian" actually means. Here's a compact definition that I hope will attract some interest:

Bayesian Inference allows you to explicitly quantify your prior beliefs and get a more complete picture of uncertainty when modeling something.

If you'd like to learn more, the links below should be helpful.

Introduction to Bayes' Theorem (short): https://www.countbayesie.com/blog/2015/2/18/bayes-theorem-wi...

Bayesian A/B testing example (short): https://www.countbayesie.com/blog/2015/4/25/bayesian-ab-test...

If you're interested in spending some time learning about applied Bayesian Inference, I highly recommend Statistical Rethinking. The book doesn't assume a strong mathematical background and its filled with practical examples. https://xcelab.net/rm/statistical-rethinking/

McElreath is currently working on a second edition of that textbook, due around 2020: http://elevanth.org/blog/2018/07/14/statistical-rethinking-e...


Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: