How to link two rows together? Weights should be tied to returns!!
Hello CB experts! I have a question. It may be simple or it may not; not sure. So, I’m looking for some guidance here. I have historical return on my sheet named ‘Symbols’. In my ‘Returns’ sheet, I have Shares, Return, Volatility, and Weights, along with a Covariance Matrix and a Correlation Matrix on the sheet. I put an Efficient Frontier curve in there and the top performing components of the Dow. I also, have a sheet named ‘Returns-CB’; this is where my CB analysis is. So, from E6:AH6 and E8:AH8, I have defined CB assumptions (they are pretty much all the same). Anyway, my question is this: how do I link the items in row 6 to the items in row 8? If I have 12% return and 30% return for stock AA and stock BA, I should NOT have 0% weight; I want to invest in these stocks. Similarly, if I have a weight of 15% for stock CAT, I should NOT have 0% return. This doesn’t make any sense. Can someone please tell me how to link the returns and weights. It works perfectly fine in the ‘Returns’ sheet; I used MS Solver to get this working. I was trying to do something similar in the ‘Returns-CB’ sheet.
You can download the file from here:
http://www.mediafire.com/view/?5lk0gtcd261cy3c
Thanks everyone!!
I know this has something to do with constraints. For instance, Cell C8 must = 100%. Cells E8:AH8 will change, depending on the weights of the stocks (this is contingent on risk; defined assumptions and parameters of the distribution curves). Likewise, Cells E6:AH6 must change, depending on the potential future returns of the stocks (this is also contingent on the risk). It seems like, if I define an assumption, it wipes out any formula that I have in the cell. So, I'm not sure how to 'link' the E6:AH6 range and the E8:AH8 range. Does anyone here have any ideas on this?
Similar Messages
-
How to link two keyevents together ?
I need to detect Shift + 1 and 1 separately, as these two will trigger different tasks. Normal keys like 1,a can be detected in KeyTyped function (KeyEvent.KEY TYPED) and Shift can be detected from keyPressed function (KeyEvent.KEYPRESSED).
But how can I link these two together ?
It is possible that user gives Shift + 1 and then gives 2.
But in my program how can I make out that this Shift is linked to 1 and not to 2 ?tech_cheetah wrote:
From the APIs I have figured out that I can use this method to check if shift was pressed
public boolean isShiftDown()
The problem with this is that it will still catch sequences such as
[shift down] 2 1 ...
So you wouldn't have the sequence you were looking for, but maybe that's ok?
If you search for my KeyboardCommands class, you'll see there is a way to map arbitrary character sequences (not just shift/control, etc) to an Action. This might be what you're looking for -
Linking two computers together
Can I link two macs together so I have access to both but the other computer doesn't have access to mine?
If you own both and have admin accounts on them, yes. On the "other" computer, go to System Preferences, Sharing, and turn on File Sharing.
When the two computers are on the same network, you should see the other computer appear in your sidebar in Finder. Click it, authenticate with your admin details (from the other computer), and you now have access to its files.
Matt -
Using Sections To Tie Two Rows Together
I use the section capability to join two rows together. I have a button that will duplicate the section. Which on the screen shows perfectly. However, when you save the file, and open it back up it does not maintain those sections. It combines them into one. look at this example:
TABLE 1
ROW 1: element1, element2 -- Row 1&2 are group as a section
ROW 2: element1, element2
User press the add button:
Table 1
ROW 1: element1, element2 -- So when the user press the add button it duplicates the section to add two more rows in order
ROW2: element 1, element2
ROW3: element 1, element2
ROW4: element 1, element2
The user now saves the form and exits...
The user lanuches reader and opens the form. they see the follow result...
ROW1: element1, element2
ROW3: element1, element2
ROW2: element1, element2
ROW4: element1, element2
I need the section to stay together... Any suggestions of what can be done?
RegardsUncheck the checkbox for the "Repeat Row for each Data Item" in the Bidning tab for Row2 and Row3 inside the Section.
You are actually creating a new instance of the section (which includes Row2 and Row3). So this check box should be checked at the Section levl not at the Row level. You have already checked the Section property so remove from Row 2 and Row3.
Thanks
Srini -
How to link two controls?
Hi,
I'm trying to link two controls together, a slider and a numeric, so that if I change the value of one control, the other will also show the new value.
Does anyone knows how to do that? Is that even possible?
Thank you for your help
Solved!
Go to Solution.altenbach wrote:
Tim's answer is correct and appropriate. No code needed.
That's different. Usually Christian shows me yet another, more efficient way, to code something. Well, I guess you can't get more efficient than no code.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
How to compare two rows in PL/SQL?
Hi All,
How to compare two rows in PL/SQL? Is there any method that I can use instead of comparing them column by column?
Any feedback would be highly appreciated.PhoenixBai wrote:
Hi All,
How to compare two rows in PL/SQL? Is there any method that I can use instead of comparing them column by column?What "rows" are you referring to?
If you're talking of rows within a PL/SQL associative array there are techniques as described in the documentation... e.g.
SQL> ed
Wrote file afiedt.buf
1 declare
2 type v1 is table of number;
3 r1 v1 := v1(1,2,4);
4 r2 v1 := v1(1,2,3);
5 begin
6 if r1 MULTISET EXCEPT DISTINCT r2 = v1() then
7 dbms_output.put_line('Same');
8 else
9 dbms_output.put_line('Different');
10 end if;
11* end;
SQL> /
Different
PL/SQL procedure successfully completed.
SQL> ed
Wrote file afiedt.buf
1 declare
2 type v1 is table of number;
3 r1 v1 := v1(1,2,3);
4 r2 v1 := v1(1,2,3);
5 begin
6 if r1 MULTISET EXCEPT DISTINCT r2 = v1() then
7 dbms_output.put_line('Same');
8 else
9 dbms_output.put_line('Different');
10 end if;
11* end;
SQL> /
Same
PL/SQL procedure successfully completed.
SQL>If you're talking about rows on a table then you can use the MINUS set operator to find the rows that differ between two sets of data...
SQL> select * from emp;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 17-DEC-1980 00:00:00 800 20
7499 ALLEN SALESMAN 7698 20-FEB-1981 00:00:00 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-1981 00:00:00 1250 500 30
7566 JONES MANAGER 7839 02-APR-1981 00:00:00 2975 20
7654 MARTIN SALESMAN 7698 28-SEP-1981 00:00:00 1250 1400 30
7698 BLAKE MANAGER 7839 01-MAY-1981 00:00:00 2850 30
7782 CLARK MANAGER 7839 09-JUN-1981 00:00:00 2450 10
7788 SCOTT ANALYST 7566 19-APR-1987 00:00:00 3000 20
7839 KING PRESIDENT 17-NOV-1981 00:00:00 5000 10
7844 TURNER SALESMAN 7698 08-SEP-1981 00:00:00 1500 0 30
7876 ADAMS CLERK 7788 23-MAY-1987 00:00:00 1100 20
7900 JAMES CLERK 7698 03-DEC-1981 00:00:00 950 30
7902 FORD ANALYST 7566 03-DEC-1981 00:00:00 3000 20
7934 MILLER CLERK 7782 23-JAN-1982 00:00:00 1300 10
14 rows selected.
SQL> select * from emp2;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7521 WARD SALESMAN 7698 22-FEB-1981 00:00:00 1250 500 30
7566 JONES MANAGER 7839 02-APR-1981 00:00:00 2975 20
7782 CLARK MANAGER 7839 09-JUN-1981 00:00:00 2450 10
7788 SCOTT ANALYST 7566 19-APR-1987 00:00:00 3000 20
7839 KING PRESIDENT 17-NOV-1981 00:00:00 5000 10
7900 JAMES CLERK 7698 03-DEC-1981 00:00:00 950 30
7934 MILLER CLERK 7782 23-JAN-1982 00:00:00 1300 10
7 rows selected.
SQL> select * from emp
2 minus
3 select * from emp2;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 17-DEC-1980 00:00:00 800 20
7499 ALLEN SALESMAN 7698 20-FEB-1981 00:00:00 1600 300 30
7654 MARTIN SALESMAN 7698 28-SEP-1981 00:00:00 1250 1400 30
7698 BLAKE MANAGER 7839 01-MAY-1981 00:00:00 2850 30
7844 TURNER SALESMAN 7698 08-SEP-1981 00:00:00 1500 0 30
7876 ADAMS CLERK 7788 23-MAY-1987 00:00:00 1100 20
7902 FORD ANALYST 7566 03-DEC-1981 00:00:00 3000 20
7 rows selected.If you actually need to know what columns data is different on "non-matching" rows (based on your primary key) then you'll have to compare column by column. -
Are you able to link two accounts together. For example, I have had an account for a long time, but now my husband has one as well as my son. My son is currently signed in with my account but I would like to give him his own as well as share what I have with my husband.
Thanks,
StephaneeSorry, but it is not possible to merge iTunes Store accounts. You can, however, use content from multiple iTunes Store acounts on any given system or device. You just have to authorize the device to each account. You will have to use the account though which any item was purchased for redownloading, app updates, etc.
Regards. -
How to link two combo boxes? (urgent)
Hello,
I am wondering how to link two combo boxes in Acrobat Pro 9. Basically, I need to link a building with a list of rooms. There are 3 building choices in my first combo box. For the sake of example, Building A, Building B and Building C. When one of the buildings is selected, I want a 2nd combo box to display the rooms that are located in that building. So by selecting building A, you would then be able to choose a room from the list of available rooms in the second drop box. The buildings cannot share a list of rooms because they have the same room numbers. Is anyone able to help?
- TravisYou can also use ajax. When the first combo box element is selected, it will call the ajax function and that ajax function will bring the data from the database and place it in second combo box.
-
How to compare two rows from two table with different data
how to compare two rows from two table with different data
e.g.
Table 1
ID DESC
1 aaa
2 bbb
3 ccc
Table 2
ID DESC
1 aaa
2 xxx
3 ccc
Result
2Create
table tab1(ID
int ,DE char(10))
Create
table tab2(ID
int ,DE char(10))
Insert
into tab1 Values
(1,'aaa')
Insert
into tab1 Values
(2,'bbb')
Insert
into tab1 Values(3,'ccc')
Insert
into tab1 Values(4,'dfe')
Insert
into tab2 Values
(1,'aaa')
Insert
into tab2 Values
(2,'xx')
Insert
into tab2 Values(3,'ccc')
Insert
into tab2 Values(6,'wdr')
SELECT
tab1.ID,tab2.ID
As T2 from tab1
FULL
join tab2 on tab1.ID
= tab2.ID
WHERE
BINARY_CHECKSUM(tab1.ID,tab1.DE)
<> BINARY_CHECKSUM(tab2.ID,tab2.DE)
OR tab1.ID
IS NULL
OR
tab2.ID IS
NULL
ID column considered as a primary Key
Apart from different record,Above query populate missing record in both tables.
Result Set
ID ID
2 2
4 NULL
NULL 6
ganeshk -
[Help] How to merge two rows in a datagrid?
How to merge two rows of a specific column in a datagrid?
ex.
|_______|_____|_____|
| merged |_____|_____|
|_______|_____|_____|
|_______|_____|_____|
thx a lot~I need to merge column heading. Have u find any solution for
ur problem? -
How can update two rows in one query?
How can update two rows in one query?
Edited by: OracleM on May 4, 2009 12:16 AMWhat do you mean with "two rows"? May be two columns??
If the where clause of UPDATE query matches two rows, then it will update two rows. If you want to update two columns, then add column names to your query
UPDATE your_table SET col1=value1, col2=value2 WHERE your_where_clause- - - - - - - - - - - - - - - - - - - - -
Kamran Agayev A. (10g OCP)
http://kamranagayev.wordpress.com
[Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/] -
How to link two user interfaces together through networking using java??
Im doing an java assignmet...the entry system...
I have to create two interfaces ..
one is a interface which is a keypad and let user key in their password
for accessing...
another interface is receive the password and determine whether it is valid or not...
Two interfaces is on different computer.....
I have to link these interfaces together using java....
PLS HELP!!!!!!It sounds like you should probabally use RMI.That is, remote method invocation...these guys are doing a more complicated version of what you want to do:
http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_20680356.html#8935218
Be sure to check out Sun's RMI tutorial:
http://java.sun.com/docs/books/tutorial/rmi/
Happy coding! Sounds like a fun little project...I want to do some RMI sometime when I get a chance... -
How to link two .java files together?
hello everybody,
is it possible to link two or more .java files together? I mean is if I have 3 .java files. (a.java, b.java, c.java) then I have 3 .class files too. How do I use the method in other .java files. For example :
public a extends Applet {
// call b.class
b();
public b extends Applet implements ActionListener {
void title1() {
How to call the b.class? How to call the title1() method?
Is it related to JAR or package??
Thanks for helping me. v(^_^)vO.K, you do not link ".java" files together.
You compile them into class files and they can create new instances of each other and and access their variables and work together.
I recommend "Sam's Teach Yourself Java in 21 Days".
It will start you out with the basics.
--Ian -
Hi there, I'm trying to use pages 5.2 for the first time and I cannot find how to connect two consecutive pages together as I use to do with earlier versions of Pages... Any help?
Word Processing templates have what is called a Document Body.
That is the area defined by the margins and holds a default text area which flows from page to page.
Examples of WP templates are the Letters, Reports, CVs etc.
Layout templates have that switched off and require you to add Textboxes or Shapes into which you can type text. Each page is an individual Section and no text flows from page to page.
Examples of Layout templates are the Brochures, Business Cards, Posters, Newsletters etc
In Pages '09 you can manually link Textboxes to flow in your own set order and across pages. Pages 5 has dropped this along with 100 other features.
Peter -
How to link two ID account to only one
I have two Apple ID account, and I would like to link them into one account without losing my purchase on both account. How this is possible?
You cannot link two Apple ID's together. You can only log into one and download its purchases, and then log out and into the other account. You should choose one to continue using for the foreseeable future, and hope that someday Apple allows you to link accounts.
Maybe you are looking for
-
Hi Friends I'm doing a BDC .... in the recording I have found that I've to change different line items.. the part of recording in which I'm facing problem is as below: BDC_CURSOR VBAP-ABGRU(06) VBAP-ABGRU(01) 10 VBAP-ABGRU(02) 10 VBAP-ABG
-
I would like to renumber photos within an event
I want to renumber a batch of photos within an event but havent been able to find the info
-
Hi, I need to use one Java module in Forms 9i, i use the Import Class Java, no problems. But when i try to use this function, i can't recuperate the data in this object in Forms. In this program works the 2 first instruction, but the 3 work, but i do
-
Why does my trash hang on emptying?
I have an external G-Tech Raid drive attached to my MBP and just recently as I try to empty the trash it has started to hang. When I try empty the trash a message tells me I have 6 items more than I can see in the trash can. I am not super knowleagab
-
How can i change my security questions? i dont remeber them
does any of your guys know how to change youe security questions? i forgot mine and i want to change it.