News for hackers. Stuff that matters.
Re:Causality in machine learning by epistasis on Wednesday February 01, 2017 @05:26PM (#13546010)
As usual, Pearl has some good writing on this:

http://bayes.cs.ucla.edu/BOOK-2K/causality2-epilogue.pdf

>Take, for instance, Newton’s law:

>f = ma.

>The rules of algebra permit us to write this law in a wild variety of syntactic forms, all meaning the same thing – that if we know any two of the three quantities, the third is determined.

>Yet, in ordinary discourse we say that force causes acceleration – not that accelera- tion causes force, and we feel very strongly about this distinction.

>Likewise, we say that the ratio f/a helps us determine the mass, not that it causes the mass.

>Such distinctions are not supported by the equations of physics, and this leads us to ask whether the whole causal vocabulary is purely metaphysical, “surviving, like the monarchy . . .”.

>Fortunately, very few physicists paid atten- tion to Russell’s enigma. They continued to write equations in the office and talk cause–effect in the cafeteria; with astonishing success they smashed the atom, invented the transistor and the laser.

Re:Causality in machine learning by nonbel on Wednesday February 01, 2017 @05:54PM (#13546224)
How about: In ordinary discourse we say that "the earth orbits the sun" – not that "the sun orbits the earth", and we feel very strongly about this distinction.

It just seems like discussion of "what causes what" is missing the point, just like the above argument. That one persisted for centuries (millenia?) until it was pointed out the answer is neither! It depends on your reference frame.

Re:Causality in machine learning by jasonwatkinspdx on Wednesday February 01, 2017 @10:13PM (#13547785)
I would encourage you to look into Judea Pearl's work. I'd suggest starting with the epilog of his book: http://bayes.cs.ucla.edu/BOOK-2K/causality2-epilogue.pdf to get the general idea.

To be clear: Pearl is not just philosophizing. He provides a formalization that takes causality from being an ambiguous concept to being applied mathematics. The bulk of the book is not a light read, but the mathematics involved are relatively basic.

And to be absolutely clear: Pearl won the Turing prize for his work. It is not simply handwaving or non sequiturs. The common online conversations about causality are several decades out of date with real academic work on the topic.

Re:Causality in machine learning by nonbel on Thursday February 02, 2017 @02:47AM (#13548852)
I read that last time I thought about this topic, and went over it again earlier when epistasis linked to it. The arguments against Russel's position really do not do anything for me. As mentioned elsewhere, they seem to be a bunch of non-sequiturs about what we are told growing up.

Regarding the Turing prize, etc. That type of thing doesn't really convince me. What engineering feats or surprising predictions has Pearl's methodology lead to? When I look at what is successful in machine learning these days, it is RNNs, CNNS, gradient boosting, etc. Correlation-based methods seem to be king, at least for now.

Re:Causality in machine learning by jasonwatkinspdx on Thursday February 02, 2017 @10:33AM (#13551169)
Have you run into bayes nets or probabilistic graphical models? Or read the old Bayesian Automated Taxi paper from the 90's that got people thinking about autonomous vehicles based on these concepts?

Pearl's work is heavily used: https://scholar.google.com/scholar?cites=1099626011922949961...

The Russel quote you posted is in no way some sort of rebuttal of Pearl et all's work. They aren't even in the same ballpark. I don't intended that as a slight agains Russel who I'm generally fond of.

Re:Causality in machine learning by solipsism on Wednesday February 01, 2017 @08:12PM (#13547177)
the answer is neither! It depends on your reference frame

Someone is new to the idea of relativity. This is nonsense. The frame of reference describing the sun rotating around the earth is not inertial (https://en.wikipedia.org/wiki/Inertial_frame_of_reference) and thus does not follow the laws of physics we know and love. In short, "Nope, you cannot say the sun orbits the earth."

Re:Causality in machine learning by drdeca on Wednesday February 01, 2017 @10:16PM (#13547814)
I thought that using a non-inertial reference frame just introduced a "fictitious force"?

Is that not the case?

Re:Causality in machine learning by empath75 on Wednesday February 01, 2017 @10:43PM (#13547925)
You're correct. The laws of physics get very strange in a stationary earth reference frame. Imagine the forces that would be whipping the distant stars around earth.
Re:Causality in machine learning by nonbel on Thursday February 02, 2017 @02:13AM (#13548732)
Well, I've made a solar system simulator before. Nothing great, but it was sufficient to convince me that is just a matter of perspective. The "law of physics" used was:

  d = sqrt(dx^2 + dy^2 + dz^2)  
  F = G*m1*m2/d^3
That would just be summed up over all the objects included in the system. However, when visualizing the results, I could set (0,0,0) wherever I wanted. I could put it at the solar system barycenter, I could put it at the center of the sun, I could put at at the center of the galaxy (this leads to interesting vortex-like trails...), or I could put it at the center of the earth. The easiest was actually to use the solar system barycenter on an arbitrary date.
Re:Causality in machine learning by epistasis on Wednesday February 01, 2017 @06:24PM (#13546473)
Causality is quite different from frame of reference.

Lets return to your equation. r^2 = m1*m2/F is a statement of correlation that's valid to many digits, that also says that "these are all the variables that affect anything here." It allows for calculations of quantities by plugging in numbers. In combination with other equations, it allows extrapolitaion and physical thinking. But equations alone are not enough for a physicist to make progress on problems, they don't combine arbitrarily, they still use that famous "physical intuition" that turns out to involve a heck of a lot of causality that they talk about in the cafeteria but don't often write about.

In the world outside of physics classrooms, most situations involve a huge number of variables interacting with each other, and the variables themselves are leaky abstractions. This means that the correlation of quantities does not go out to many digits, or even one digit. This does not make an equation a useful abstraction. People have developed probabilistic models that stand in for equations in these situations. Sure, it would nice to have an equation that modeled things like they do in the simple situations that Physics publishes on, but when the equations of physics are so weak that they can't even fold a protein, how are we going to use them to model the interaction of a potential drug with a protein?

Equations are great, when they apply. By introducing simplifying assumptions, we can sometimes extend their utility into new domains, but at the cost of introducing fragility because of those simplifying assumptions. They allow for calculating new things with only a very few computations. But nearly every new field of science invents new math. One of the more recent inventions is causality. It works fantastic in those sciences that use experimental interventions. Simple algebraic equations do not.

Re:Causality in machine learning by Xcelerate on Thursday February 02, 2017 @03:40AM (#13549045)
> but when the equations of physics are so weak that they can't even fold a protein, how are we going to use them to model the interaction of a potential drug with a protein

Minor nit: the equations aren't weak at all — they predict the gyromagnetic moment of an isolated electron to ten decimal digits of agreement with experiment. The weakness is in the computational implementation of those equations, i.e., solving the equations in a reasonable time. You can perform a relativistic quantum monte carlo simulation of protein folding, and I guarantee the results will match those obtained in the lab to whatever level of accuracy you desire, but you'll have to wait longer than the age of the universe for the computation to finish running.

Also, for work on small proteins, the calculated chemical properties match the experimentally tested ones very closely nowadays. The problem is all of the unknown interactions that a new drug has with the rest of the human body outside of one protein. And without a large atomistic model of a human body, it's going to be a long time before simulation can solve that problem.

Re:Causality in machine learning by epistasis on Thursday February 02, 2017 @12:34PM (#13552438)
> The weakness is in the computational implementation of those equations, i.e., solving the equations in a reasonable time. You can perform a relativistic quantum monte carlo simulation of protein folding, and I guarantee the results will match those obtained in the lab to whatever level of accuracy you desire, but you'll have to wait longer than the age of the universe for the computation to finish running.

This is precisely what I mean by "weak." The equation looks great on paper, but isn't so useful in practice. And the problem isn't predicting just one protein-drug binding, it's predicting the interaction with all known proteins, all molecular complexes, and the biofilms, etc. I would go so far to say that Physics with a capital P is not so useful for many physical problems at all. Where Physics is useful, it's unbelievably useful, but its domain in the physical world is vanishingly tiny.

Physics kind of has the reverse problem of AI. With AI, when you finally solve a problem, it's no longer considered AI, and AI is continued to be considered a failure. With Physics, a problem isn't part of the body of Physics until it's been solved, at which Physics is now considered a great success.

Re:Causality in machine learning by nonbel on Wednesday February 01, 2017 @06:44PM (#13546603)
Sorry, all these arguments seem like non-sequiturs to me.

Physicists might pray together in the cafeteria to come up with good ideas. It doesn't mean God answered their prayers when they have one.

Useful laws need not be exactly correct. You can keep adjusting to stay on course to account for the error due to any simplifications.

Sure causality seems like it must be at least some kind of heuristic, that doesn't mean looking for causes is the best, or even a good, use of time.

Re:Causality in machine learning by epistasis on Wednesday February 01, 2017 @07:54PM (#13547070)
Well, your arguments seem equally non-sequiter to me. I spend a lot of time in the world of correlations, in biology. They're not so useful. It's much better to get a causation: a knob that when you turn it you get a response, rather than no response. If you can't see the utility of the two, then perhaps there's not much to discuss?
Re:Causality in machine learning by nonbel on Thursday February 02, 2017 @01:40AM (#13548607)
>"Well, your arguments seem equally non-sequiter to me."

Fair enough.

>"I spend a lot of time in the world of correlations, in biology."

I left that field. One reason was because I realized so much of my time was wasted after I attempted to attach numbers to things like "# of receptors required to fit the narrative".

Sure "A causes B", but it must be for some reason totally different from what is usually proposed (and could probably be considered a boring experimental artifact). I just don't care if "A causes B". I want to know for "f(A) ~ B", what is f?

>"It's much better to get a causation: a knob that when you turn it you get a response, rather than no response."

Reminds me of this paper:

  "Biologists summarize their
  results with the help of all-too-well recognizable diagrams,
  in which a favorite protein is placed in the middle
  and connected to everything else with two-way arrows.
  Even if a diagram makes overall sense (Fig. 3a), it is usually
  useless for a quantitative analysis, which limits its
  predictive or investigative value to a very narrow range.
  The language used by biologists for verbal communications
  is not better and is not unlike that used by stock
  market analysts. Both are vague (e.g., “a balance between
  pro- and anti-apoptotic bcl-2 proteins appears to control
  the cell viability, and seems to correlate in long-term with
  the ability to form tumors”) and avoid clear predictions."
https://bml.bioe.uic.edu/BML/Stuff/Stuff_files/biologist%20f...
Re:Causality in machine learning by epistasis on Thursday February 02, 2017 @12:39PM (#13552512)
I think that you would really really like modern causality research if you bothered to look into it. It's all about f(A) ~ B, but recognizes that there are different ways of varying B. Do you disconnect B from the rest of its influences when you vary it, or are you letting them vary.

If you try to model f(A) ~ B in biological systems without simultaneously modeling causality, then it's going to go wrong. This happened to me in year 2 of grad school. The bayesian network built around data without modeling the causality was wrong, the one that took into account the causality from the knockout experiments was right.

Re:Causality in machine learning by solipsism on Wednesday February 01, 2017 @08:07PM (#13547151)
Sure causality seems like it must be at least some kind of heuristic, that doesn't mean looking for causes is the best, or even a good, use of time

I wonder if you'll recommend your doctor use that bit of wisdom the next time you're sick.

Re:Causality in machine learning by nonbel on Thursday February 02, 2017 @02:01AM (#13548688)
After graduate training in biomed, I am horrified of going to a doctor. After seeing what goes on (ie, lots and lots of NHST + p-hacking), it is really difficult for me to understand how anyone can tell if modern medicine is helping or hurting people overall.

It would actually be miraculous to me if it is the former, to the point I would be tempted to believe there is some occult driving force leading humans in the right direction.

However, I was thinking about similar the other day regarding the dentist. Say I go get a teeth cleaning. Did the polishing cause my teeth to be cleaner, or did the cleaner teeth cause the dentist to do the polishing? I feel like there is some kind of semantic game being played there.

Re:Causality in machine learning by solipsism on Thursday February 02, 2017 @02:21AM (#13548773)
Did the polishing cause my teeth to be cleaner, or did the cleaner teeth cause the dentist to do the polishing?

Wow...

Re:Causality in machine learning by nonbel on Thursday February 02, 2017 @02:37AM (#13548823)
I don't think it is that dumb. If the teeth were not going to get cleaner, the dentist would not have taken the action of polishing them. Therefore, cleaner teeth caused the dentist to polish the teeth.

Eh, maybe it is a dumb example, but I'd appreciate if you could put your finger on it rather than sarcasm.