4. In the lab, we have created the VBA function, myConstantCorr, to calculate the constant correlation variance-covariance matrix. This function takes two parameters: a matrix of historical returns and the average correlation. Let us get rid of the second parameter and write a new VBA function, ConstantRhoHistthat only takes one parameter: the matrix of historical returns. The average correlation among all stocks should be calculated inside this function(include all correlations less than 100%). Use ConstantRhoHistand the return data in Tab Q4to construct the constant correlation var-cov matrix. Use “Option Base 1” to finish this question. (Hint: you can reuse any functions we derived in the lab.
5. Using the functions ConstantRhoHist from step 4 (which computes the constant correlation var-covar matrix) and the functions SIM and Var Covar (which compute the single index model and sample var-covar matrices used in prior labs), create a new function named Shrinkage(ASSET_RETURNS, CHOICE1,CHOICE2,LAMBDA,[MKT_RET]). This function creates the Shrinkage variance-covariance matrix seen in Topic2 that gives weight LAMBDA to the var-covar matrix specified in CHOICE1 and weight (1-LAMBDA) to the var-covar matrix specified in CHOICE2.
The choices specified in the input parameters CHOICE1and CHOICE2can be “sample”, “SIM”, or “constant-corr” to indicate which variance-covariance matrix to choose [login to view URL] ASSET_RETURNSis a matrix of asset [login to view URL], the input MKT_RET is an optional parameter that provides the series of historical returns of the stock market portfolio that is needed if computing the SIM var-covar matrix.
Use the Shrinkagefunction and the asset and market return data in Tab Q5to estimate the shrinkage variance-covariance matrices that result from the following choices:
a)CHOICE1=“sample” , CHOICE2=“SIM” , LAMBDA=0.25
b)CHOICE1=“sample” , CHOICE2=“constant-corr” , LAMBDA=0.60
c)CHOICE1=“SIM” , CHOICE2=“constant-corr” , LAMBDA=0.75
Lastly, when calling upon your function make sure to only add the optional parameter as an input to your function if needed for the computation, otherwise leave it blank.
Hi Sir,
Gone through the job details and happy to help you. I am an expert in excel formulas, dashboards, macros. I will be able to finish before the deadline.
Thanks
Ruma
Hi, Greetings! ✅checked your project details.
I can help you for vba coding
I have completed the M.SC. (Statistics) . I Have 4 years of experience with Data entry, Data analysis, and MIS Management.
I have strong analysis, and Excel/google sheet skills and am able to provide solutions to most Excel/google sheet problems, including VBA programming.
If you work with me you will get good value for your money and a flexible approach to carrying out your work. I am great with deadlines and I will keep you updated throughout the process and the quality of my work is high.
Please Ping me the chat box for further discussion
Thank you
Greeting! My name is Vipin Kumar Garg and I am a software engineer (MCA). I have 20+ Yrs. Exp. in MS Excel VBA (Macro)
I have developed around 500 macros & modules for the global sales team, paper mill, manufacturing companies and upload data on websites, send Emails as automatic, create a database and fetch data from the database as per requirement etc.
I have worked on 200 million data in MS Access & SQL Server and created a database.
I have Created google sheets for an automation process.
Examples: -
Market, Portfolio, Funnel, Revenue, Vision and True North for (Sales Playbook)
Module for paper size cutting (stop for wastage)
Macro for purchase paper reels (as per requirement)
Macro for finance balance sheets for maintaining as (opening, closing & GST)
Module for data entry (inward & outward material PMS & IMS)
Macro for send automatic Emails for customers by the sales department
Module for PIR as production process as machine wise.
Customize the ribbon in excel VBA with XML by “Custom UI Editor for Microsoft Office”
Scraped data from websites in excel with formatting
Created database in MS Access and SQL server
Please let me know a time for discussion with you
Regards,
Vipin Garg
Give the employer an idea of the timeframe you can finish the project in. While some projects may not be as time sensitive, it's still wise to address how quickly you can deliver. This shows the employer that you're prioritizing their project. The caveat here? Don't overcommit. Only commit to deadlines on which you can realistically deliver.
For extra points, specify how long it will take you to complete the project.
For example:
"...I can get this done in 48 hours"