DSPRelated.com
Forums
Online · Live + on demand
February 9-11, 2027
Price goes up Jan 1: register now to lock in today's rate
Register Now →

orthogonal and correlation

Started by cfy30 ●May 30, 2010
On May 31, 12:08�pm, spop...@speedymail.org (Steve Pope) asked:
> > �in 2-MSK, are the two tones orthogonal or not?
Yes, the two tones, at frequencies f_c + 1/(4T) and f_c - 1/(4T) are orthogonal over each T-second bit interval even though this violates the usual shibboleth that tones are orthogonal over any interval whose length is an integer multiple of the inverse of the frequency difference. Here, the frequency difference is 1/(2T) whose inverse is 2T, and so the shibboleth requires intervals of length 2mT where m is an integer. The reasons that the MSK tones still manage to be orthogonal over T-second intervals are (i) the start and end points are fixed as the endpoints of each bit signaling interval. (ii) the phases of the signals are carefully controlled. More generally, cos(2 pi (f_c + 1/(4T) + theta) and cos(2 pi (f_c - 1/(4T) + phi) are *not* orthogonal over the interval (tau, tau + T) of length T (too short) but they are orthogonal over (tau, tau + 2T) or over (tau + 2mT) where m denotes an integer. --Dilip Sarwate
Thanks all for the inputs!

It seems to me now
1. If both x and y are deterministic signal and periodic, orthogonality is
the integration of x*y from 0 to T while correlation is the integration of
x*y from 0 to n*T. The only difference between orthogonality and
correlation is the integration length.
2. If both x and y are random variable, there is no orthogonality as T
cannot be defined but correlation can still be found since T is arbitrary.

Consider an ideal receiver with random data n(t) as input, and ideal I and
Q down-converters, cos(omega*t) and sin(omega*t), respectively. The I and Q
outputs, namely n(t)*cos(omega*t) and n(t)*sin(omega*t), they are
uncorrelated and no orthogonal can be defined. Is this aligned with
everyone's understanding?


cfy30


>On May 31, 12:08=A0pm, spop...@speedymail.org (Steve Pope) asked: >> >> =A0in 2-MSK, are the two tones orthogonal or not? > >Yes, the two tones, at frequencies f_c + 1/(4T) and >f_c - 1/(4T) are orthogonal over each T-second bit >interval even though this violates the usual shibboleth >that tones are orthogonal over any interval whose length >is an integer multiple of the inverse of the frequency >difference. Here, the frequency difference is 1/(2T) >whose inverse is 2T, and so the shibboleth requires >intervals of length 2mT where m is an integer. > >The reasons that the MSK tones still manage to be >orthogonal over T-second intervals are > >(i) the start and end points are fixed as the endpoints >of each bit signaling interval. > >(ii) the phases of the signals are carefully controlled. > >More generally, cos(2 pi (f_c + 1/(4T) + theta) >and cos(2 pi (f_c - 1/(4T) + phi) are *not* orthogonal >over the interval (tau, tau + T) of length T (too short) >but they are orthogonal over (tau, tau + 2T) or over >(tau + 2mT) where m denotes an integer. > >--Dilip Sarwate > > > > >
On May 31, 10:23&#4294967295;pm, "cfy30" <cfy30@n_o_s_p_a_m.yahoo.com> wrote:
> Thanks all for the inputs! > > It seems to me now > 1. If both x and y are deterministic signal and periodic, orthogonality is > the integration of x*y from 0 to T while correlation is the integration of > x*y from 0 to n*T. The only difference between orthogonality and > correlation is the integration length.
No.
> 2. If both x and y are random variable, there is no orthogonality as T > cannot be defined but correlation can still be found since T is arbitrary. >
No.
> Consider an ideal receiver with random data n(t) as input, and ideal I and > Q down-converters, cos(omega*t) and sin(omega*t), respectively. The I and Q > outputs, namely n(t)*cos(omega*t) and n(t)*sin(omega*t), they are > uncorrelated and no orthogonal can be defined. Is this aligned with > everyone's understanding?
It is not aligned with my understanding. Some others will undoubtedly agree with the above interpretation. --Dilip Sarwate
My two cents, feel free to disagree and correct, or just complain
about going a little
off-topic :)


To really answer the original question, it's important to understand
the intuitive as well
as the mathematical concepts. Just understanding that a definition
corresponds
to an equation is not very illuminating when it comes to trying to use
the concepts.
With that introduction, and in the interest of further complicating
everything, here
we go:


Intuitive
---------

In communications, the important property of orthogonal signals is
that they may
be added together and their individual weights be uniquely and
unambiguously
determined from the sum alone, e.g. if x(t) and y(t) are orthogonal
functions
then we may sum these together as:

z(t) = a x(t) + b y(y)

and determine the values of both a and b from knowledge of z(t) alone.
The same
is true of any pair/set of orthogonal signals/functions. This is a
basis for digital
communication systems. a and b may be determined from z(t) by the
appropriate
operation which would typically be a correlation (see the mathematical
part further
down).

The simplest examples on paper involve just sine and cosine, i.e.

z(t) = a sin(wt) + b cos(wt)

but in practice an actual transmitted signal is cannot be a signal
with infinite time
support. It is for this reason that shaping such as raised cosine
shaping is used.
e.g. r(t) is a shaping function (e.g. raised cosine), then our
orthogonal functions
may be x(t) = r(t)sin(wt) and y(t) = r(t)cos(wt), and

z(t) = a r(t)sin(wt) + b r(t)cos(wt)


Continuing this example, the raised cosine shape corresponds to a
finite time
support signal (it's truncated, I know) which may be imposed on sine
and cosine
without losing the orthogonal property (it's approximate because of
the truncation,
but still). Note that the raised cosine also has lots of other nice
properties of course
(sensitivity to receiver timing, controllable bandwidth expansion,
etc.) but this discussion
is about orthogonality. OFDM transmission is easy understood by this
reasoning too,
replacing r(t) with a simple rectangular window.




Mathematical
------------

Mathematically, it's both simpler, and more complicated and for this
reason I'm just going to state some facts without detail.

Two functions are orthogonal when their inner product is zero
(subject
to Hilbert space, etc., etc.). Typically for functions, the inner
product is
defined as correlation (from -infinity to +infinity), and thus
orthogonality
and correlation are equivalent.

e.g. we form z(t) from orthogonal functions x(t) and y(t), and denote
the inner product by <., .>

z(t) = a x(t) + b y(t)

we can uniquely determine the values of a and b by taking the
following
inner products

<z(t), x(t)> = a <x(t), x(t)> + b <y(t), x(t)> = a
<z(t), y(t)> = a <x(t), y(t)> + b <y(t), y(t)> = b

or equivalently (directly written using correlation and
assuming that's the definition of the inner product that
we're using)

+infinity
integrate (z(t) x(t)) = a
-infinitiy

+infinity
integrate (z(t) y(t)) = b
-infinitiy

(okay there's an assumption of orthonormality there too, sue me)


Note that there is no proof in the sense of the original question.


Frank
On Jun 2, 1:54&#4294967295;pm, Frank <frank.snow...@gmail.com> wrote:
> e.g. we form z(t) from orthogonal functions x(t) and y(t), and denote > the inner product by <., .> > > z(t) = a x(t) + b y(t) > > we can uniquely determine the values of a and b by taking the > following > inner products > > <z(t), x(t)> = a <x(t), x(t)> + b <y(t), x(t)> = a > <z(t), y(t)> = a <x(t), y(t)> + b <y(t), y(t)> = b
If you know what x and y are, then taking the inner product of z with any two linearly independent functions will give you two simultaneous equations for a and b, thereby uniquely determining a nd b provided that x and y are also linearly independent. It has nothing to do with x and y being orthogonal. illywhacker
On Jun 1, 5:23 am, "cfy30" <cfy30@n_o_s_p_a_m.yahoo.com> wrote:
> Thanks all for the inputs! > > It seems to me now > 1. If both x and y are deterministic signal and periodic, orthogonality is > the integration of x*y from 0 to T while correlation is the integration of > x*y from 0 to n*T. The only difference between orthogonality and > correlation is the integration length. > 2. If both x and y are random variable, there is no orthogonality as T > cannot be defined but correlation can still be found since T is arbitrary. > > Consider an ideal receiver with random data n(t) as input, and ideal I and > Q down-converters, cos(omega*t) and sin(omega*t), respectively. The I and Q > outputs, namely n(t)*cos(omega*t) and n(t)*sin(omega*t), they are > uncorrelated and no orthogonal can be defined. Is this aligned with > everyone's understanding?
As another poster has pointed out, there are two definitions of 'correlation'. I suggest that you forget the word 'correlation' when it means 'orthogonality': use 'orthogonality' instead and you will not get confused. Reserve 'correlation' for probabilistic statements. Secondly, do please forget the idea of a 'deterministic signal' or a 'signal that is a random variable'. These statements have no meaning: 'random' and 'deterministic' are not properties of signals, or of the real world external to you at all, but of your knowledge of it. 'Deterministic' means you have no uncertainty (i.e. perfect knowledge) of the phenomennon under consideration; 'random' means you do not. illywhacker;
On Jun 3, 12:38&#4294967295;pm, illywhacker <illywac...@gmail.com> wrote:
> On Jun 2, 1:54&#4294967295;pm, Frank <frank.snow...@gmail.com> wrote: > > > e.g. we form z(t) fromorthogonalfunctions x(t) and y(t), and denote > > the inner product by <., .> > > > z(t) = a x(t) + b y(t) > > > we can uniquely determine the values of a and b by taking the > > following > > inner products > > > <z(t), x(t)> = a <x(t), x(t)> + b <y(t), x(t)> = a > > <z(t), y(t)> = a <x(t), y(t)> + b <y(t), y(t)> = b > > If you know what x and y are, then taking the inner product of z with > any two linearly independent functions will give you two simultaneous > equations for a and b, thereby uniquely determining a nd b provided > that x and y are also linearly independent. It has nothing to do with > x and y beingorthogonal. > > illywhacker
Indeed, I was trying not to make the whole piece become too overwhelming, but allow me to address your point and hopefully also clarify mine. That two functions are linearly independent means that those two such functions may be converted to two orthogonal functions (in the sense above) by projection allowing a conversion which gives exactly the formulation I originally provided (and implicitly solving the simultaneous equations you mention). In this sense, it has a lot to do with being orthogonal since the linearly independent functions are in fact just formed from two orthogonal basis functions. I apologize that my exact original choice of words was misleading and not 100% mathematically correct, but I was hoping to make my point without covering every nuance and making it inscrutable. In summary, the point I wanted to make was simply that orthogonal functions are chosen for use in communication systems because of the (relative) simplicity of both the interpretation and implementation. Frank
On Jun 3, 3:17&#4294967295;pm, Frank <frank.snow...@gmail.com> wrote:
> On Jun 3, 12:38&#4294967295;pm, illywhacker <illywac...@gmail.com> wrote: > > > > > > > On Jun 2, 1:54&#4294967295;pm, Frank <frank.snow...@gmail.com> wrote: > > > > e.g. we form z(t) fromorthogonalfunctions x(t) and y(t), and denote > > > the inner product by <., .> > > > > z(t) = a x(t) + b y(t) > > > > we can uniquely determine the values of a and b by taking the > > > following > > > inner products > > > > <z(t), x(t)> = a <x(t), x(t)> + b <y(t), x(t)> = a > > > <z(t), y(t)> = a <x(t), y(t)> + b <y(t), y(t)> = b > > > If you know what x and y are, then taking the inner product of z with > > any two linearly independent functions will give you two simultaneous > > equations for a and b, thereby uniquely determining a nd b provided > > that x and y are also linearly independent. It has nothing to do with > > x and y beingorthogonal. > > > illywhacker > > Indeed, I was trying not to make the whole piece become too > overwhelming, but allow me to address your point and hopefully also > clarify mine. > > That two functions are linearly independent means that those two > such functions may be converted to two orthogonal functions (in > the sense above) by projection allowing a conversion which gives > exactly the formulation I originally provided (and implicitly solving > the simultaneous equations you mention). In this sense, it has a > lot to do with being orthogonal since the linearly independent > functions > are in fact just formed from two orthogonal basis functions. I > apologize that my exact original choice of words was misleading and > not 100% mathematically correct, but I was hoping to make my point > without covering every nuance and making it inscrutable. > > In summary, the point I wanted to make was simply that orthogonal > functions are chosen for use in communication systems because > of the (relative) simplicity of both the interpretation and > implementation.
This last point is true, of course, but your original point was confusing. Linear independence has no dependence on orthogonality: this is putting the cart before the horse. Any vector space has the notion of linear independence, but in order to have orthogonality, you need an inner product as well. Since by definition, an inner product is a bilinear form, it depends on linearity for its definition, but not the other way around. illywhacker;
On Jun 3, 5:18&#4294967295;pm, illywhacker <illywac...@gmail.com> wrote:
> On Jun 3, 3:17&#4294967295;pm, Frank <frank.snow...@gmail.com> wrote: > > > > > > > On Jun 3, 12:38&#4294967295;pm, illywhacker <illywac...@gmail.com> wrote: > > > > On Jun 2, 1:54&#4294967295;pm, Frank <frank.snow...@gmail.com> wrote: > > > > > e.g. we form z(t) fromorthogonalfunctions x(t) and y(t), and denote > > > > the inner product by <., .> > > > > > z(t) = a x(t) + b y(t) > > > > > we can uniquely determine the values of a and b by taking the > > > > following > > > > inner products > > > > > <z(t), x(t)> = a <x(t), x(t)> + b <y(t), x(t)> = a > > > > <z(t), y(t)> = a <x(t), y(t)> + b <y(t), y(t)> = b > > > > If you know what x and y are, then taking the inner product of z with > > > any two linearly independent functions will give you two simultaneous > > > equations for a and b, thereby uniquely determining a nd b provided > > > that x and y are also linearly independent. It has nothing to do with > > > x and y beingorthogonal. > > > > illywhacker > > > Indeed, I was trying not to make the whole piece become too > > overwhelming, but allow me to address your point and hopefully also > > clarify mine. > > > That two functions are linearly independent means that those two > > such functions may be converted to two orthogonal functions (in > > the sense above) by projection allowing a conversion which gives > > exactly the formulation I originally provided (and implicitly solving > > the simultaneous equations you mention). In this sense, it has a > > lot to do with being orthogonal since the linearly independent > > functions > > are in fact just formed from two orthogonal basis functions. I > > apologize that my exact original choice of words was misleading and > > not 100% mathematically correct, but I was hoping to make my point > > without covering every nuance and making it inscrutable. > > > In summary, the point I wanted to make was simply that orthogonal > > functions are chosen for use in communication systems because > > of the (relative) simplicity of both the interpretation and > > implementation. > > This last point is true, of course, but your original point was > confusing. Linear independence has no dependence onorthogonality: > this is putting the cart before the horse. Any vector space has the > notion of linear independence, but in order to haveorthogonality, you > need an inner product as well. Since by definition, an inner product > is a bilinear form, it depends on linearity for its definition, but > not the other way around. > > illywhacker;
First a clarification: I never mentioned linear independence in my original point, nor did I say that linear independence depends on orthogonality for its definition (although I did make a possibly invalid related assumption - see my question further down), nor did I say that the inner-product was the only way to reach a solution (which may have been implied, but not intended). My original post - the related part - was a much simpler point; simply that orthogonal functions could be summed together and their respective weights determined by inner-product. The intention was to show that correlation was equal to orthogonality only where it was defined so, and that it often is defined in this way for communication systems. Don't get me wrong, I understand your points and appreciate the feedback greatly. Certainly I hadn't considered the relation between linear independence and orthogonality in that way before (or at all really, since I'm a DSP engineer and the question doesn't arise in the systems I typically deal with). With that said, there is one point that I can't work out (assumption I made really), and maybe you can answer it (and this is getting off- topic for this group, I apologise): If an inner-product does not exist, then is it still possible to construct the two simultaneous equations you mentioned in your previous post? I had assumed that this would not be possible (or not with unique solution ?) Frank
On Jun 4, 5:01&#4294967295;pm, Frank <frank.snow...@gmail.com> wrote:

> If an inner-product does not exist, then is it still possible to > construct the two simultaneous equations you mentioned in your > previous post? I had assumed that this would not be possible (or not > with unique solution ?)
Sure. You have n constraints, where n is the dimensionality of the vector space - in principle infinite in this case - and only two unknowns. Just write down the equations for several values of t, and you will see what I mean. illywhacker;