Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: orthogonal complement of a vector


From   Stas Kolenikov <skolenik@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: orthogonal complement of a vector
Date   Sun, 19 Jun 2011 10:01:54 -0400

The problem is ill-defined: there are infinitely many such y's
(differing in magnitude if x is two-dimensional, and differing in
direction as well if the dimension is greater than two). Which one are
you looking for?

mata
x = (1, 2, 3, 4, 5)'
y = rnormal(5,1,0,1)
y[5,1] = -( x[1..4,.]'*y[1..4,.] )/x[5,.]
x'*y
end

On Sat, Jun 18, 2011 at 5:25 PM,  <strobl@poly.polytechnique.fr> wrote:
> Dear Statalist users,
>
> does anybody know how to calculate the orthogonal complement of a vector. In
> other words, if I have a vector x, I am looking for the vector y, so that:
>
> x'*y=0
>
>
> thanks in advance for any help
>
>
> Eric
>
> ----------------------------------------------------------------
> This message was sent using X-WebMail
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>



-- 
Stas Kolenikov, also found at http://stas.kolenikov.name
Small print: I use this email account for mailing lists only.

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index