6 ms·
Before you can sell me a wrench, have to let me know what nuts it will turn, and I have to have some such nuts to turn. For big data, what nuts does it turn?
by graycat 14y ago
Before you can sell me a wrench, have to let me know what nuts it will turn, and I have to have some such nuts to turn.
For big data, what nuts does it turn? I'm still waiting to hear just what nuts people want turned, especially those for which 'big data' is essential.
It's easy enough to find cases where analysis has been stopped due to far too little data or far to little ability to handle more data. A classic example is R. Bellman's "curse of dimensionality" especially for his work in dynamic programming -- i.e., best decision making over time under uncertainty (with flavor quite different from the uses of dynamic programming in some computer science algorithms).
Broadly, for the curse of dimensionality, we can start with the set of real numbers R, a positive integer n, and the real n-dimensional space R^n, that is, just the set of all n-tuples of real numbers. Then as n starts to grow, it takes 'big data' to start to 'fill', say, the n-dimensional 'cube' with each side 100 units long, [0, 100]^n. So, if want to describe something in such a cube and want a lot of accuracy, then can start with 1 MB of data and start multiplying by factors of 1000 over and over. We can zip past a warehouse full of 4 TB disk drives in a big hurry.
Here is a general situation in 'analysis': We are looking for the value of some variable Y. Since we don't know Y, we can say we are looking for the value of a random variable. Or we can look for its distribution. For input, maybe we have many pairs (x, y) where x is in R^n and y is in R. Then, maybe we are told that in our case we have some X in R^n and want the corresponding Y or its distribution.
Well, essentially there is one, just one, one to rule all the rest, way to answer this. May I have the envelope, please? Yes, here it is (drum roll): Simple, plain old cross-tabulation. Why? Because cross tabulation is just the discrete version of the joint distribution from which we use the classic Radon-Nikodym theorem (Rudin, 'Real and Complex Analysis') to say that the best answer we can get (non-linear least squares) is just the conditional distribution or its expectation the conditional expectation, that is, E[Y|X] which is the best non-linear least squares approximation of Y as a function of X, and taking an average from a cross tabulation is the discrete approximation of this. For a good approximation for a lot of values of X, we can suck up 'big data' and ask for many factors of thousands of times more. The conditional distribution of Y given X is P(Y <= y|X) and is addressed similarly. So, net, I agree that there can be some good uses for big data.
Still, before proposing an answer and picking the tools, let's hear the real questions. Okay?
Why? For one, as general as cross tabulation is, it commonly requires so much data that even realistic versions of 'big data' are way too small. So, typically we use methods other than just cross tabulation to make better use of our limited TBs of data, and to select such methods we really need to hear the question first.
Before I select a wrench, I want to look at the nut. Is this point too much to ask in the discussion of 'big data'?
I will end with one more: Suppose we want to estimate E[Y] by taking an average of n 'samples'. Under the usual assumptions, the standard deviation of our estimate goes down like 1 over the square root of n. So, to get the standard deviation 10 times smaller, we need n to be 100 times bigger. So, roughly for each additional significant digit we want in the estimate, we need another 100 times as much data. Once we start asking for more than, say, five more significant digits, we are way up on a parabola in the amount of data we need. Net, if we want really accurate estimates, then even big data has to struggle. So, really, we accept the law of diminishing returns and just use medium or small data.
- lifeisstillgood 14y agoCould you explain that again? I think I got there is some correlation between x and y that makes us money, and to find Y there is an approximation of cross-tabulation which is really simple, and the exponential cost of accuracy is so great it will defeat us then we should just live with fast simple analysis on smaller sets But I don't think I got the maths - cheers
- oscilloscope 14y agoFrom this Wikipedia article, it looks like the key is the sparsity of data is problematic for statistical methods: http://en.wikipedia.org/wiki/Curse_of_dimensionality http://en.wikipedia.org/wiki/Curse_of_dimensionality An alternative is to use multidimensional visualization techniques like parallel coordinates. This is a viable way to answer many questions and get a sense of the data, even if you're only working with sample. http://en.wikipedia.org/wiki/Parallel_coordinates http://en.wikipedia.org/wiki/Parallel_coordinates Questions like: Is this dimension ever relevant? Where are there strange outliers? How densely populated is the data? Do these dimensions have a relationship worth investigating? Of course you can answer most of these questions directly with code that computes the answer, but the advantage of high-dimensional visualization is it lets your visual system notice patterns which lead to questions you didn't think to ask.
- graycat 14y ago"some correlation between x and y that makes us money" Well, there is a relationship between X and Y but it might not be an actual 'correlation'. Why? Because the relationship might be non-linear. For an easier explanation, consider just real random X and Y. That is, they are just real numbers (but 'random variables'). Okay, time out, what is a 'random variable'? It's general: Go in a lab, measure a number. That's a random variable. The specific number we measured is one of others that we 'might have' measured (observed). So, we did one 'trial' among many other trials we might have done. With the modern view (modern since Kolmogorov's paper in 1933), all we ever observe in all the universe is just some one trial; still we imagine that there are other trials we might have observed. Useless? Not really: It may be that we have other measurements we can make, that is, other random variables. Maybe we have reason to believe that these other random variables have the same distribution (from all those other trials we never see) but are independent of Y. So, we can use these other random variables to say things about Y. That's the 'modern' setup. Can any such mathematical objects actually exist? Yes. Classic measure theory provides the foundation. That's much of what Kolmogorov wrote in 1933. Back to X and Y. Okay, go into Excel and get a 3D graph. Get lots of pairs (x,y) and plot them on the X-Y plane. Then up the Z axis, build a histogram. Have a lot of data so that we get a nice, accurate histogram. So, the histogram will look like a mountain range. That's the joint probability density of X and Y if we scale the mountain range to have total volume 1. Okay, we are told that we just measured X and want to know about Y. So, we go to our Excel 3D graph, find X on its axis (too many X's in this explanation -- there is better notation but it would take more explanation), and then see what the histogram says about Y. So, at X we get the distribution of Y 'given' X (after we scale to 1). That's the 'conditional density distribution' of Y given X. The cumulative version is written P{Y <= y|X) and read the 'conditional probability that Y is <= y given the value of X'. Well, with that conditional distribution, either the density version or the cumulative version, we can find the expectation of Y given X, and that is written E[Y|X]. Then there is a real valued function of a real variable f such that E[Y|X] = f(X). With all the assumptions clear and also all the details, that is the classic Radon-Nikodym theorem. There is a famous proof by von Neumann -- i.e., he took it seriously -- in Rudin's book, and there the theorem is a big thing; in modern probability and stochastic processes, it's a huge thing. E.g., Markov means that the past and future are conditionally independent given the present. A martingale is the present is the same as the conditional expectation of the future given the past. Every stochastic process is the sum of a martingale and a predictable process. Every martingale that doesn't run off to infinity has to converge to a point. Get very deep into modern mathematical finance and get a lot on conditional expectations, Markov processes, and martingales. As in the classic Halmos-Savage paper, sufficient statistics is just an application of the Radon-Nikodym theorem. E.g., for Gaussian data, sample mean and sample standard deviation are sufficient statistics which means that anything that can be done with all the data can also be done just as well starting with just the sample mean and sample standard deviation -- so long a lot of 'big data'! Order statistics are always sufficient. Net, conditional expectation from the Radon-Nikodym theorem is a big thing. So, we can use f(X) = E[Y|X] to approximate Y. Maybe we'd like the least squares approximation. Coming right up: Let our approximating function be g. Then our error is Y - g(X). Then our squared error is (Y - g(X))^2. Then on average our squared error is E[(Y -g(X))^2], and we want to pick g, non-linear, to minimize that. Presto: The g we want is just f. That is g(X) = f(X) = E[Y}X] minimizes E[(Y - g(X))^2], and that's the very best we can do with any function, including non-linear, of X. So, if we want to approximate Y, the very best (least squares) use we can make of X is just f(X). Moreover, our estimate of Y is 'unbiased', that is, E{Y] = E[f(X)] = E[E[Y|X}}. So, we have the best non-linear, minimum variance, unbiased estimator of Y. We should ask for more? Then for f(X), for the discrete approximation, we can get that just from that 3D graph in Excel that we developed from just cross tabulation. So, net, if we have enough data, then cross-tabulation is the discrete approximation of the best estimation we can do, that is, cross tabulation is the one statistical method to rule them all, if we have enough data. So, this is a reason for 'big data'. "exponential cost"? Well, for the average I mentioned, the 100 times n, etc., the cost is just quadratic, but it still gets too large too fast. If all we really want to consider is just correlation, then we can use linear statistical methods that are basically a perpendicular projection where we get to use the Pythagorean theorem.