Uh-Yeah...

Uha, yep.

Saturday, January 28, 2012

 

Solution to Investment Problem

So, as stated in the previous blog post, we have the following known information.

T - Total Investment amount

 

Market value is Last Price times Current Shares, .

The New Market value after our Investment Buy will be, .

As we explained before, these two values should be equal for our new market value, .

Our Total Investment amount is the Asking Price times the Shares Bought plus the Commission Cost.

The individual investments are, , without commission cost.

To get the commission cost added, we multiply by 1.005 to get the 0.5% and then add 7.00 to each individual investment.

The individual investments plus commission are, .

The Total Investment amount then becomes, .

So, at this point we have two equations,  and , to work with.

We can solve for either X or Y by eliminating X or Y if we setup an equation where either X or Y is by itself in each equation and then set the two equations equal to each other.

For this first step we’ll solve for X by eliminate Y in isolating Y for each equation and setting them equal to each other.

becomes  and   becomes .

Since Y = Y, then the right sides of the equations   and   can be made equal to each other, .

The equation   can now be solved for X.

 

We can follow the same process for finding Y and that equation is the following.

 

At this point we haven’t given any values for Stock A or Stock B, so which stock is which?

What stock has a greater market value than the other?

This is where the duality comes in.

Since at this point we do not know the values, Stock A’s value can be inserted in to either A or B and likewise in the opposite, Stock B’s values can be inserted in to B or A.

However, keep in mind that once a stock value is assigned, the other must go in to the unassigned stock values, meaning if Stock A’s values are inserted in to B’s values, then B’s values must be inserted in to A’s values.

It’s kind of like the Pauli Exclusion Principle, you can only occupy one value at a time and the other must go someplace else, however the two are interchangeable in the quantum aspect of it.

If this is true, then when we give some values, we should see that when we swap the values, the X and Y values should be the same but swapped as well.

Let’s say our Total Investment is, T = 2000.00, and Stock A’s values are, AL = 0.25, AP = 0.265, AC = 6780; Stock B’s values are BL = 0.07, BP = 0.08, BC = 2950.

Using the equations we get,

 

and

 

Since shares are purchased in mostly whole amounts, we drop the fractional part and have X = 499 and Y = 23047.

Now, if the duality of the functions holds true, we should be able to swap the values for each stock and see if the buy values are the same but swapped for X and Y.

 

and

 

Dropping the fractional part gives, X = 23047 and Y = 499.

Compared to our original calculation, X = 499 and Y = 23047.

The table below shows the comparison.

 

  Total New Investment =  $2,000.00    
  Original   Swapped
  Stock A Stock B   Stock A Stock B
Last Price 0.25 0.07   0.07 0.25
Ask Price 0.265 0.08   0.08 0.265
Current Shares 6780 2950   2950 6780
Current Market Value $1,695.00 $206.50   $206.50 $1,695.00
Buy Shares 499 23047   23047 499
New Investment Shares 7279 25997   25997 7279
New Market Value $1,819.75 $1,819.79   $1,819.79 $1,819.75
           
Difference Between A and B $0.04     $0.04  


This shows that when we solved for X, we were also solving for Y simultaneously; another indication of the duality in the function.

We have an Excel file you can examine yourself and change values to see the equation in action.

Keep in mind, this is for Scottrade and for stocks under $1.00.

Your investment firm may have a different commission schedule.

http://www.jadexcode.com/EqualizeInvestmentSolution.xls


Comments:
What about other things that affect the price of stock between a and b
1.) quarterly financial reports.
2.) favorable or unfavorable news reports of either a or b.
3.) pump and dump
JAP69,

Those are extraneous effects that are outside the scope of this problem, since this problem is only on the equalization of two different stocks at particular instant they are not necessary for this demonstration; important, yes, but not needed.
Yeah, but by the time you've worked the equation and entered the order, the price has moved. ;-)
True, but most of the stocks we've been watching don't move that frequently.

Usually there is enough time to get the orders in and we have done it before.
Post a Comment

<< Home

Archives

April 2026   March 2026   February 2026   January 2026   December 2025   October 2025   September 2025   August 2025   July 2025   June 2025   May 2025   April 2025   March 2025   October 2024   May 2024   April 2024   March 2024   February 2024   January 2024   December 2023   November 2023   August 2023   May 2023   April 2023   March 2023   March 2021   February 2021   January 2021   December 2020   November 2020   October 2020   September 2020   August 2020   July 2020   June 2020   May 2020   April 2020   March 2020   January 2020   December 2019   November 2019   October 2019   September 2019   August 2019   July 2019   June 2019   May 2019   April 2019   March 2019   February 2019   January 2019   December 2018   November 2018   October 2018   September 2018   August 2018   July 2018   June 2018   May 2018   April 2018   March 2018   February 2018   January 2018   December 2017   November 2017   October 2017   September 2017   August 2017   July 2017   June 2017   May 2017   April 2017   March 2017   February 2017   January 2017   December 2016   November 2016   October 2016   September 2016   August 2016   July 2016   June 2016   May 2016   April 2016   March 2016   February 2016   January 2016   December 2015   November 2015   October 2015   September 2015   August 2015   July 2015   June 2015   May 2015   April 2015   March 2015   February 2015   January 2015   December 2014   November 2014   October 2014   September 2014   August 2014   July 2014   June 2014   May 2014   April 2014   March 2014   February 2014   January 2014   December 2013   November 2013   October 2013   September 2013   August 2013   July 2013   June 2013   May 2013   April 2013   March 2013   February 2013   January 2013   December 2012   November 2012   October 2012   September 2012   August 2012   July 2012   June 2012   May 2012   April 2012   March 2012   February 2012   January 2012   December 2011   November 2011   October 2011   September 2011   August 2011   July 2011   June 2011   May 2011   April 2011   March 2011   February 2011   January 2011   December 2010   November 2010   October 2010   September 2010   August 2010   July 2010   June 2010   May 2010   April 2010   March 2010   February 2010   January 2010   December 2009   November 2009   October 2009   September 2009   August 2009   July 2009   June 2009   May 2009   April 2009   March 2009   February 2009   January 2009   December 2008   November 2008   October 2008   September 2008   August 2008   July 2008   June 2008   May 2008   April 2008   March 2008   February 2008   January 2008   December 2007   November 2007   October 2007   September 2007   August 2007   July 2007   June 2007   May 2007   April 2007   March 2007   February 2007   January 2007   December 2006   November 2006   January 2006   November 2005   August 2005   July 2005   June 2005   April 2005   March 2005   February 2005   January 2005   December 2004  

Powered by Lottery PostSyndicated RSS FeedSubscribe