s-news
[Top] [All Lists]

Re: Semi-Variance

To: <mandans_p@yahoo.com>, <s-news@lists.biostat.wustl.edu>
Subject: Re: Semi-Variance
From: David.Jessop@ubsw.com
Date: Fri, 21 Mar 2003 13:28:32 -0000
Thread-index: AcLvrcTJkyVS/lrdEde5wgAGWwHaZg==
Thread-topic: Semi-Variance
Hi,

Defining semi-variance as 

        (1/n) SUM { (Min (0, x - t))^2 }

then coding this straight into S would be pretty good as

        (x [x < t] %*% x [x < t]) / length (x)

or
        SUM (x [x < t] ^ 2) / length (x)

You'd have to do some checking on dimensions / size etc. 

Calculating a min variance portfolio is much trickier.  The NUOPT library will 
happily do it (if you have it / can afford it). If you have an unconstrained 
problem then the solution is just matrix multiplication. 

Regards,

David Jessop

>-----Original Message-----
>From: Mandans [mailto:mandans_p@yahoo.com]
>Sent: 20 March 2003 14:11
>To: s-news@lists.biostat.wustl.edu
>Subject: Semi-Variance
>
>
>Hi there,
>
>It is been such a great a community here. Thanks all
>you guys.
>
>I have a question regarding how to calculate
>semi-varince using splus. Any one know how to
>calculate semi-varaince using splus.? And also any
>functions or scripts which might be able to use to
>calculate min varince portfolio...(actually minimum
>semi variance portfolio.)
>
>All your help is highly appreciated.
>Thanks
>
>
>__________________________________________________
>Do you Yahoo!?
>Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
>http://platinum.yahoo.com
>

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


<Prev in Thread] Current Thread [Next in Thread>