BookmarkSubscribeRSS Feed
mei
Calcite | Level 5 mei
Calcite | Level 5

Dear all;

I need to calculate volatility of ROE which is calculated as variance of annual ROE over the last 3 years.

I have ROE lag 1 till lag 3.

How do i calculate variance of ROE, do I calculate std deviation first then squared it?

if yes, is it calculated as

STD_VROE= Std(of ROE_lag1-ROE_lag3);

Thanks

mei

3 REPLIES 3
Haikuo
Onyx | Level 15

Is it rolling (or moving) variance you are after? what does your data look like?

Haikuo

mei
Calcite | Level 5 mei
Calcite | Level 5

ya it is time series data. let me attach the data. (but i have not calculate the ROE lag 1 -Lag3),:smileyblush:

Haikuo
Onyx | Level 15

Not sure which variables you are investigating. But if you have ETS, then take a look at proc expand:

http://support.sas.com/documentation/cdl/en/etsug/60372/HTML/default/viewer.htm#etsug_expand_sect026...

notice the transform operation:MOVVAR (backward moving variance), which seems to meet your need.

Regards,

Haikuo

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 2285 views
  • 0 likes
  • 2 in conversation