Wikipedia:Reference desk/Archives/Mathematics/2009 May 9#MLS Matrix transformation
{{#ifeq:{{PAGENAME}}|Special:Undelete| |{{#if:|
Gradient of linear graph
given that a and b are negative, find the gradient of the straight line intersecting the graph of y=x^3+4x at (1,a) and (b,0). —Preceding unsigned comment added by Invisiblebug590 (talk • contribs) 02:37, 9 May 2009 (UTC)
:The point intersecting the graph of y=x^3+4x with the line x=1 is at (1,a)=(1,5). a=5 is not negative. The point intersecting the graph of y=x^3+4x with the line y=0 is at (b,0)=(0,0). b=0 is not negative either. The gradient, meaning the slope, of the straight line is 5. Bo Jacoby (talk) 07:56, 9 May 2009 (UTC).
:Will you rephrase the question in more detail? (your question is clear enough but stated this way looks to much like homework, which is a major taboo for people here, me included. General hint: state your question so as to show more understanding and more personal interest about it. Or wait for somebody who is above the taboo!). --pma (talk) 08:05, 9 May 2009 (UTC)
::Go to [http://www.walterzorn.com/grapher/grapher_e.htm here] and type y=x^3+4x; into the function box. setting x from -3 to 3 and y from -10 to 10 works well. Notice that there is only one point on the function where x=1 and only one point where y=0. now on a second line type y=5x;. See that this second line interests the first function at those two points. Also a, and b are not negative. Jon513 (talk) 14:23, 10 May 2009 (UTC)
okay, is THIS confidence?
I buy a die that is supposed to favor 6's:
so I roll it ten times and get eight 6's.
After getting this result I now want to know how confident I am that it's not just a normal die. So I try a simulation of ten rolls of a normal die, and run this a million times, finding that in 28 of them this happened naturally.
subtracting the twenty-eight, i get... 999972 / 1000000 = 99.9972% of the cases this did not happen.
So do I now have 99.99% confidence that the dice are not normal dice?
Or am I still misusing the word confidence... 79.122.54.77 (talk) 09:53, 9 May 2009 (UTC)
: p.s. please don't mention prior probability or I swear I'll jump out the window! just ignore it, please please please.
:Yes. With a fair die you would only expect to see 8 or more sixes from 10 throws about 1 time in 51,000, or about 20 times in a million tries. So you can be 99.99% confident that your die is not fair. Gandalf61 (talk) 10:47, 9 May 2009 (UTC)
:Yes, but you didn't need to roll the normal die since, by definition, a normal die gets a 6 1/6 of the time, so you already know the probability. You only need to run a control test when you don't know the probability in advance. --Tango (talk) 13:17, 9 May 2009 (UTC)
:: Now you've gotten at the essence of the problem. The real reason for the million rolls is that the behavior the dice are supposed to have are much more complicated than a simple percentage favoring of one number, and so the chances of this happening randomly are hard for me to calculate! But my suspicion is that this complicated "behavior" is one that normal dice would follow just as well as the "loaded" dice will.... So my proposed methodology is to write down the rules that are "supposed" to be followed over n throws, then see what happens in a million runs of n throws of a normal die (via simulation) and then say, if 98% of them don't follow that rule, and the test dice, once I actually throw them n times, do follow the rule, then they are "loaded"! Is this methodology a correct one? I'll leave it up to your imagination what kinds of complicated behavior the loaded dice are supposed to have... 94.27.136.54 (talk) 15:51, 9 May 2009 (UTC)
:::An fair die has very simple behaviour - each roll is independent of all the others and has an equal chance of landing on each number. You can calculate the odds of any particular combination of events pretty easily, there is no need to actually roll the a die. --Tango (talk) 15:59, 9 May 2009 (UTC)
Knowing the probability, , that tossing the die shows a 6, you can compute the distribution of the number, , of 6's you get when tossing the die times. It is the binomial distribution. The formula for the mean value ± the standard deviation of is
:.
This is deduction. This is not the situation you are considering.
Knowing and you can compute the likelihood that
Logistic equation vs logistic map
Hi there - I was wondering where the difference arises in the behaviour or the logistic map and the logistic equation - in the discrete case of the difference equation, we get instability and periodic oscillation of order 2,4,etc... for r>3, but there is no such counterpart in the differential equation - the point '0' remains unstable in both cases, but the other equilibrium point is always stable for the differential equation - why is this? Where does the difference occur?
Thanks, Otherlobby17 (talk) 14:37, 9 May 2009 (UTC)
:Well, let me first try to elude your question with another one: why should they be the same? Discrete and continuous dynamical systems have similar theories, but certainly not the same. Let us consider the most simple case: xn+1=axn versus x'=ax: a simple characterization of stability (in various senses) is available in both cases, but of course it does not give the same condition in terms of a.--pma (talk) 19:24, 9 May 2009 (UTC)
::A fair point, but with the discrete difference equation we're talking about considering xn across some small finite time interval 'dt' say - why is it that the instability vanishes in the limit as dt -> 0? Naturally I'm not saying they certainly -should- be the same, because clearly limiting processes will often screw things up, '1/x' being strictly positive an obvious example. Rather, what I'm saying is, is there an explicit justification which can be given for the disappearance of the instability? Regardless of how differently things may behave when taking a limit, there can usually be given some level of justification for why they are different: is there no such sensible justification with the logistic map? Chaotic or not, it doesn't seem a complicated enough system that the reason for this would be so inexplicable, but I can't think of how to justify it myself. Otherlobby17 (talk) 21:11, 9 May 2009 (UTC)
:::Let's linearize f(x)=rx(1-x) in the equilibrium points, both for the continuous and for the discrete system (here r is a real positive parameter). The differential equation x'=f(x) has equilibria x=0 and x=1 , the two zeros of f. We have f'(0)=r>0 and f'(1)=-r<0, so 0 is unstable (asymptotically in Lyapunov sense) and 1 is stable, as you said. The iteration xn+1=f(xn) has equilibria x=0 and x=1-1/r, the two fixed points of f. We have f'(1-1/r)=2-r , so (leaving alone the limit cases of the parameter, that may require more a delicate analysis) 0 is stable if r<1 and unstable if r>1, while 1-1/r is stable if 1
:::I think that you also have in mind to approximate a differential equation x'=f(x) with a discrete difference equation: in this case, the behavior of the approximating discrete systems would be much closer to the continuous system --but the discrete equation would not be xn+1=f(xn). For instance if you consider the discretization corresponding to unit time increments, that is xn+1=xn + f(xn), you can check that in fact it has more similarity with the ODE (equilibrium points and their stability are the same, for all r>0). --pma (talk) 06:36, 10 May 2009 (UTC)
MLS Matrix transformation
My problem is as follows: I have a collection of vectors Q = {q1,q2,...,qn} and a second collection of corresponding vectors R = {r1,... rm} (same dimensionality). These vectors represent homogenous coordinates. I would now like to find the transformation matrix A, which minimizes ||ri - A * qi||^2 summed over all vector pairs (i = 1 through m). I get the feeling that this is a straightforward problem, analogous to linear least squares in one dimension, but I can't find anything straightforward, dealing with this directly. I'd love to hunker down and delve into the matter, but as always, I don't have a great deal of time.
So my questions are, is there a closed-form solution (or some way to get an approximation without searching), and could you give me a basic walkthrough of a steps required to find a solution, with the terminologyand phrases to help me google the details. If should also mention that this is part of a computer program, rather than say, a proof. Thank you. risk (talk) 18:42, 9 May 2009 (UTC)
:Does n=m? Algebraist 18:58, 9 May 2009 (UTC)
:: Yes, in fact, I meant to use the same letter on both, sorry about that. So each q has an associated r, and the 'ideal' solution would give Aq = r for all points. risk (talk) 19:12, 9 May 2009 (UTC)
: I found the following paper on the subject: [http://www.caip.rutgers.edu/~meer/TEACH/ls3duma.pdf Least-Squares Estimation of Transformation Parameters Between Two Point Patterns]. This certainly provides enough of an answer for me. As for terminology, they call it
...the least-squares problem of the similarity transformation parameter estimation.
:Thanks to anyone who may have mulled the problem over. risk (talk) 12:46, 10 May 2009 (UTC)