tag:blogger.com,1999:blog-56138508299572188692024-03-14T04:58:54.305-07:00Quant NotesQuantitative Financial Principles, and the advanced mathematics associated with it.Q. B.http://www.blogger.com/profile/08502256579896627307noreply@blogger.comBlogger13125tag:blogger.com,1999:blog-5613850829957218869.post-50113750928106795972010-06-23T20:33:00.000-07:002010-06-23T20:33:15.489-07:00Selling Puts Vs. Selling Calls (Options Strategies)This discussion outlines some of the simple differences between selling puts and selling calls. To start with, it is good to understand that options trading, stock trading, and investing in the stock market can be risky. <i>Because of this risk, most investment houses require individual investors to use either covered calls, or cash covered puts. </i><br />
<br />
This article will focus on the situation where an investor is limited to 100% covered calls, and 100% cash covered puts. Investors that are willing to assume more risk and leverage should take the quantitative principles outlined here, and apply them to the more highly leveraged margin based naked puts and naked calls.<br />
<br />
<b>Quick background:</b><br />
<div class="noindent">First a quick refresher on buying and selling call and put options. With options there are basically 4 positions that you can take: </div><ul class="itemize1"><li class="itemize">long the call option - in this case you are buying a contract that gives you the right to purchase an underlying on or before a future date at a predetermined ‘strike ’ price. You give up some money so that you can hold this right. </li>
<li class="itemize">short the call option - in this case you are the party that sells a contract which gives someone else the right to purchase (from you) an underlying on or before a future date at the strike price. </li>
<li class="itemize">long the put option - in this case you are buying a contract that gives you the right, but not the obligation, to sell an underlying on or before a future date at the strike price. </li>
<li class="itemize">short the put option - in this case you are selling to someone else a contract that gives them the right, but not the obligation, to sell an underlying (to you) on or before a future date at the strike price.</li>
</ul>Each of the four options mentioned above can be either in or out of the money.<br />
<br />
In order to fully understand Covered Calls, please see the article:<br />
<a href="http://www.quantprinciple.com/invest/index.php/docs/quant_strategies/buy-write/">Buy-Write or Covered Call Strategy Analysis</a><br />
<br />
<b>Ground Rules:</b><br />
Based on the ground rules which will be enforced here, an investor wanting to engage in selling calls will have to make 2 transactions each time he/she enters into the contract. The investor will have to buy n*100 shares of a given stock or ETF, and sell n call contracts against it. Some brokerage houses will actually make this a single atomic transaction.<br />
<br />
<b>Covered Call Outcomes:</b><br />
<ol><li>Stock price stays below the call strike price. The option expires worthless, and the investor keeps the proceeds.</li>
<li>Stock price moves above the call strike price, and the investor is forced to sell the stock at the strike price to a counter party.</li>
</ol><br />
In case 1, if the stock price remains relatively unchanged, then the investor did good because he/she generated cash flow from the owning of a stock.<br />
<br />
In case 2, the investor did ok because he/she made money. Which is good.<br />
<br />
There is also a 3rd case, the stock drops in price. This is the worst possible case because due to the investors long-stock position, the investor will loose money.<br />
<br />
This position has 2 somewhat unfortunate issues, the first is that a strong bull market will outperform a covered call strategy, and in a bear market, an investor will only have the protection of the premium generated from the sale of the call. <br />
<br />
The maximum upside is the capital gain from the stock plus the proceeds from the sale of the call option.<br />
<br />
In a very strong bull market, it is difficult to get out of this position before expiry. What that means is that you may have a large amount of cash "tied up" and waiting for expiry.<br />
<br />
<b>Cash Covered Put:</b> <br />
<br />
Here one is selling a put, and using "Cash" to back the contract. In this case, only 1 trade is required, that trade is the sale of n put contracts. <br />
<br />
This position allows an investor to exit the position very easily in a bull market because the investor can buy back the put cheaply in the event of a bull market, and if desired immediately re-sell another n put contracts with a higher strike price. Because of this, this strategy does not have the opportunity cost associated with being forced hold an strategy until expiry.<br />
<br />
Issue: in a strong bear market, this investor is forced to "buy" a depressed stock above the fair market value. <br />
<br />
Strategies to "Hedge" against a bear market include selling in-the-money puts, and buying out-of-the money puts. This allows the investor to capitalize on the bull market, while protecting from a bear situation.<br />
<br />
Concrete example:<br />
6/22/2010:<br />
Sell 4 contracts of Ford with a strike price of 12.00 USD,<br />
Buy 4 contracts of Ford with a strike price of 10.00 USD,<br />
<br />
Cash IN 292.98 (76 *4 - commission)<br />
Cash OUT 44.01 (9*4 + commission)<br />
<br />
At Expiry, the payout will exactly match the "intrinsic" value of the position:<br />
Therefore, the maximum profit will be 292.98 - 44.01 = 248.97<br />
The maximum loss will be 800.00 - 248.97 = 551.03<br />
<br />
Max Profit: 248.97<br />
Max Lost: 551.03<br />
<br />
However, with options, at any time before expiry, the maximum loss will be less than 551.03 because as the stock price drops the put with a strike price of $12.00 will approach the intrinsic value, whereas the put option with a strike price of $10.00 will be composed mostly of its implied volatility value.<br />
<br />
Of course as an investor if you find yourself in a position where the stock has taken a loss, you will have to make the decision to "close" out the position at a loss before expiry to ensure that you don't get caught with the maximum lost of 551.03.Q. B.http://www.blogger.com/profile/08502256579896627307noreply@blogger.com0tag:blogger.com,1999:blog-5613850829957218869.post-26416312093952777102010-03-03T07:29:00.000-08:002010-03-03T07:29:51.878-08:00Quick Notes and Tips On VMware TuningThis is by no means a comprehensive of detailed list of tuning of a VM running in VMWare's ESX server. However, I wanted to add a couple of hints or tips that others my find useful.<br />
<br />
Windows as the Guest OS: <br />
<ul><li> High Context Switching: If you are experiencing high context switching, it is best to try to understand why. Several Things can cause this:</li>
<ul><li>COM+ calls to out of process COM+ servers<br />
You may want to sacrifice memory and security by making the COM+ server an in-process call. This can reduce context switches. </li>
<li>System Calls<br />
Not much you can do here. </li>
<li>Large Numbers of Threads running<br />
Reduce the number of threads that are servicing requests, for IIS you can just reduce threads, for a home grown application this will be done progromatically and should be configurable.</li>
<li>Page Faults<br />
This is a tricky one: you may want to understand your "Working Set" size and ensure that your applications "Working Set" size is set large enough to accomodate all memory pages. Windows uses a 4K page Size or 4096 bytes per page, and working sets by default hold about 300 or so pages of memory.</li>
</ul></ul>ALL Virtulization Environments: <br />
<ul><li>Disable all Screensavers, animations, or Xservers on Linux or windows. Any background processing will be counted by VMware's virtulization statistics. This also means that you should have any Virus Scanners well-tuned such that you are not doing on-access demain scanning for known secure directories.</li>
<li>Disconnect all unused devices on both the host and guest operating system.</li>
<li>CPU Bound Applications: for applications that are CPU bound, CPU Virtulization will cause a degradation in performance. For applications that are not CPU bound CPU Virtulization will have little perfromance degradation.</li>
<ul><li>Use the minimum number of Virtual CPUs possible.</li>
<li>Note that in some guest operating systems, the Idle loop (nothing on the processor) still counts against that Virtual CPU in the VMware CPU statistics.</li>
<li>Multithreaded applications - Pin guest threasd or processes to Virtual CPUs.</li>
<li>Monitor the Idle Loop Spin Parameter.</li>
<li> Monitor the Service Console Activity with esxtop.</li>
</ul><li>Memory Overhead</li>
<ul><li>Virtulization Translation Activities. OS (the guest os) will abstract memory for each process. When the process needs to access memory, it will request that memory. Here is the High level of what happens:</li>
<ul><li>Request memory -> translate to Relative Page.</li>
<li>Guest OS Segments page -> get OS's physical Address.</li>
<li>VMWare translates OS's physical -> Get Real Physical Page.</li>
</ul><li>Usage Overhead. </li>
<ul><li>Service Console uses < 300M.</li>
<li>VMWare kernal uses a small amount of memory for various data structures.</li>
</ul><li>Host memory Sizing - make sure that the host OS has more physical memory than all the ESX overhead plus the maximum of all the working set sizes of all the running applications in all the VMs.</li>
<li>Allocate Enough memory to each VM to hold all the workings sets of all the applications that will be run in that VM.</li>
<li>If Over Committed Memory is too large, the ESX sever may start swapping. This will degrade performance significantly.</li>
</ul></ul>These are just some of the simple low-haning fruit.<br />
VMWare has published a very comprehensive document:<br />
<cite>www.vmware.com/pdf/vi_<b>performance</b>_<b>tuning</b>.pdf</cite><br />
<br />
<br />
<ul></ul>Q. B.http://www.blogger.com/profile/08502256579896627307noreply@blogger.com0tag:blogger.com,1999:blog-5613850829957218869.post-76362842189812159572010-02-19T21:13:00.000-08:002010-02-19T21:47:28.717-08:00Buy-Write Options Strategy (AKA Covered Call)The Buy-Write Options strategy (AKA covered call) is starting to gain some attention again. The reason it is starting to gain attention again is because it is effective at reducing the impact of a bear market on your overall portfolio value, and because it is highly effective at generating cash flow during a neutral market. The strategy will however consistently under perform the market during a bull run. <br />
<br />
Advantages of the Covered Call:<br />
<br />
<ul><li>Generate Cash Flow from your long portfolio.</li>
<li>Reduce the effect of market volatility</li>
<li>Reduce your un-realized losses during a bear market.</li>
</ul><br />
The strategy amounts to 2 simple steps:<br />
<span class="Apple-style-span" style="color: #422424; font-family: Verdana; font-size: 13px; line-height: 18px;"></span><br />
<span class="Apple-style-span" style="color: #422424; font-family: Verdana; font-size: 13px; line-height: 18px;"></span><br />
<span class="Apple-style-span" style="color: #422424; font-family: Verdana; font-size: 13px; line-height: 18px;"><ol class="enumerate1"><li class="enumerate" id="x1-3002x1">Buy N 100 share blocks of the stock where N is some integer 1 or more. This will obviously depend on how much money you have to invest. Some stocks that trade for 5 dollars will only cost you 500 dollars per block, while other stocks like Berkshire Hathaway will cost 11,000,010.00 per 100 share block as it is trading at 110,000.10 per share at the time of this writing. Also, just for completness BRK-A does not have exchange traded options written against it.</li>
<li class="enumerate" id="x1-3004x2">Sell N Call contracts against the stock or ETF you just purchased, where N is the number of blocks you bought. The selling of the call will generate cash (put money into your account). However, if the call expires in the money you will be forced to sell the N blocks of stock you just bought.</li>
</ol></span> The image below shows the maximum profit that the portfolio can achieve during a "bull run" which shows the significant limitations of the strategy in a bull market.<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhv8XXzTkm5Bc9EJ7pp7AnNiPHg6xrlbKhxCeylouo0Fp1aX58jzwQ0mgC7eTWd7Ls4eRHR6YH57q4ywnUEwiEUvd3zMcfnwWyiDBGWt4M1uh_MYGhmuF1-EYweveuqyui4__120yiI1G4/s1600-h/3dExpiryPayout.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="249" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhv8XXzTkm5Bc9EJ7pp7AnNiPHg6xrlbKhxCeylouo0Fp1aX58jzwQ0mgC7eTWd7Ls4eRHR6YH57q4ywnUEwiEUvd3zMcfnwWyiDBGWt4M1uh_MYGhmuF1-EYweveuqyui4__120yiI1G4/s320/3dExpiryPayout.jpg" width="320" /></a></div><br />
This posting is intended to wet your appetite for understanding the Buy-Write strategy. <br />
Much greater detailed discussion is presented at:<br />
<a href="http://www.quantprinciple.com/invest/index.php/docs/quant_strategies/buy-write/">Quantprinciple's Buy-Write/Covered Call Strategy</a><br />
<br />
And of course if you like the article, please digg it: <span class="Apple-style-span" style="color: #634047; font-family: 'Lucida Grande', sans-serif; font-size: 14px; line-height: 16px;"><a class="tweet-url web" href="http://digg.com/d31JMd3" rel="nofollow" style="color: #088253; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: underline;" target="_blank">http://digg.com/d31JMd3</a></span><br />
<br />
<br />
Q. BoilerQ. B.http://www.blogger.com/profile/08502256579896627307noreply@blogger.com0tag:blogger.com,1999:blog-5613850829957218869.post-15857285429300483152010-02-04T07:38:00.000-08:002010-02-04T07:38:17.027-08:00A solution to the VirtualBox Under Linux Running a Windows Server 2003 HangsVirtualBox is Free, runs on Windows, Linux, Mac, and other OSes. Virtual box is lightweight and has some other nice features. <br />
<br />
Using Sun's virtual box (Sun is no more, Sun got engulfed by Oracle) on Linux to run a Windows 2003 Server, I was not able to get the Server to start up. The Server Windows 2003 VM would just hang when I pressed the run button. So after searching a bit, I stumbled on the solution. I am posting it back to this blog just to make it a bit easier to find the solution for others.<br />
<br />
<br />
The solution to this hang issue is to make sure that you check the "Enable IO APIC" box. To find this box, go to:<br />
Settings -> Select "System" in the left -> "Motherboard" tab<br />
See the attached image:<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7r-_BSxcEGgHVFsva8BM0hbsRJqgWOid6HTLSYm43M7dPL9XRtgL9F8iq40gHRx8luXWYFJF7Tt_U84Hcvbz4u26Q3LHorc0Dd3yXSlKEOgRp0OLAeZxtOk8XlUXnQs_DZRVoE1xOBNU/s1600-h/VboxSettingImage.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="357" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7r-_BSxcEGgHVFsva8BM0hbsRJqgWOid6HTLSYm43M7dPL9XRtgL9F8iq40gHRx8luXWYFJF7Tt_U84Hcvbz4u26Q3LHorc0Dd3yXSlKEOgRp0OLAeZxtOk8XlUXnQs_DZRVoE1xOBNU/s400/VboxSettingImage.jpg" width="400" /></a></div>Q. B.http://www.blogger.com/profile/08502256579896627307noreply@blogger.com0tag:blogger.com,1999:blog-5613850829957218869.post-76559154601006559502009-11-23T22:37:00.000-08:002009-11-23T22:37:58.854-08:00Risk Reversal or Synthetic Long Stock Position<b>A "Risk Reversal" or Synthetic Long </b>position is where an investor will simultaneously buy and sell, out-of-the-money options with the goal of simulating a long stock position. However, the goal of the synthetic position is to obtain much higher leverage, and reduce the down side risk. After hearing the folks at fast money talk endlessly about this position, I decided to create a document so people can study it and think <i><b>Quantitatively</b></i> about it. The full article is at: <br />
<br />
<a href="http://www.quantprinciple.com/invest/index.php/docs/quant_strategies/riskreversal/">http://www.quantprinciple.com/invest/index.php/docs/quant_strategies/riskreversal/</a><br />
<br />
Here is the Abstract:<br />
<br />
<div class="noindent"><span class="cmbx-9">Abstract</span><br />
</div><!--l. 14--><div class="indent"> <span class="cmr-9">This article discusses a form of Financial Derivative investment</span> <span class="cmr-9">strategy called a ‘Risk Reversal.’ A ‘Risk Reversal’ is also referred to</span> <span class="cmr-9">as a ‘Synthetic Long’ in some literature. The article explains the theory,</span> <span class="cmr-9">and shows you what risks you are exposed to. It also shows you how</span> <span class="cmr-9">to protect your investment once the market has moved in a favorable</span> <span class="cmr-9">direction. The theory, the mathematics and a theoretical example are</span> <span class="cmr-9">presented. If you would like to contact the author, send a message to</span> <img alt="q.boiler@QuantP rinciple.com " class="math" src="http://www.quantprinciple.com/articles/riskreversal/riskreversal0x.png" /><span class="cmr-9">. </span><i><span class="cmsl-9">If there are any errors, typos, or defects</span> <span class="cmsl-9">with this article please make the effort to contact the author.</span></i><br />
</div><div class="indent"><br />
</div><div class="indent"><br />
</div><div class="indent"><i><span class="cmsl-9"><b>Once you have read the article please discuss below (good or bad!).</b></span></i><br />
</div><div class="indent"><i><span class="cmsl-9"><b> </b> </span></i> <br />
</div>Q. B.http://www.blogger.com/profile/08502256579896627307noreply@blogger.com3tag:blogger.com,1999:blog-5613850829957218869.post-7905841095349306342009-11-18T22:14:00.000-08:002009-11-18T22:27:59.649-08:00How to Nohup an already running unix processStarting a job at a Unix Command prompt will cause that job to be attached to the shell that started the job. If that shell is terminated, the job(s) that were started under it will be terminated as well. This is caused by the fact that when a UNIX process ends all the processes contained within that processes' process tree are also terminated.<br /><br />If you have ever had the need to nohup a unix job that was already running, then I have the website for you. <a href="http://www.quantprinciple.com/invest/index.php/docs/tipsandtricks/unix/jobcontrol/">http://www.quantprinciple.com/invest/index.php/docs/tipsandtricks/unix/jobcontrol/</a> This website shows how to disown, nohup, suspend and resume jobs in UNIX.<br /><br />Nohup stands for no hang-up. When a process is started in the nohup mode, then when the parent shell or process dies, the child process will not die. Disown is a built in bash command that allows you to nohup jobs that are already running.<br /><br />Keep in mind that jobs and processes are to different things. Jobs are tasks or processes that are tied to a shell. Whereas processes are operating system notions. The above mentioned website gives a very clear description of job control in UNIX.<br /><br />If you are impatient, and just want a command that will most likely do what you want:<br />prompt% disown -ar<br /><br />If you are pretty comfortable with UNIX and UNIX job control, then<br />prompt% man bash<br />and search for disown<br /><br />If you need a bit of help understanding jobs, processes, and job control then<br /><a href="http://www.quantprinciple.com/invest/index.php/docs/tipsandtricks/unix/jobcontrol/">http://www.quantprinciple.com/invest/index.php/docs/tipsandtricks/unix/jobcontrol/</a><br /><br />BTW<br />I BECAME AN UNCLE TODAY!Q. B.http://www.blogger.com/profile/08502256579896627307noreply@blogger.com0tag:blogger.com,1999:blog-5613850829957218869.post-81430626398002082662009-11-11T20:26:00.000-08:002009-11-11T20:30:03.988-08:00Chicago Quant Meetup Group StartedThe Chicago area now has a Quant Meetup group. <br /><a href="http://www.meetup.com/ChicagoQuants">http://www.meetup.com/ChicagoQuants</a><br /><br /><div class="D_boxsection"> <div class="groupDesc"> <p>This group will meet to study and understand Quantitative topics in financial engineering. Typically this group will be working through a chapter each month from a well known book in quantitative finance. However, this group is by no means an academic only group. Some of the group members will form organizations to try out the strategies studied in the real world (By actually pooling capital together and forming an investment club or joint venture). Topics that will be discussed: Volatility, Delta Neutral Hedging, Leverage, Risk Arbitrage, Statistical Arbitrage, Strangles, Straddles, Barrier Options, and other strategies.</p> <p>ALL levels of quantitative financial engineer or investor wishing to understand will be welcome. </p> <p>ALL members should be willing to chip in a few bucks each month to help defer the cost of a meeting place, and printing of some handouts, plus coffee.</p> <p>ALL Members are expected to do some reading and preparation before each meeting. </p> <p>There is NO NEED to have a Ph.D. some knowledge of Calculus is helpful, but almost all of the concepts can be picked up and understood with just an inquisitive mind. That said, Ph.D.s are more than welcome.</p> <p><br />About the meetings, we will meet 1 or 2 times per month depending on needs. The meeting will be about 2 hours long, 50 minutes of a presentation, followed by open discussion/questions, and finally a social period over some coffee. </p> </div> </div>Q. B.http://www.blogger.com/profile/08502256579896627307noreply@blogger.com0tag:blogger.com,1999:blog-5613850829957218869.post-69094685769467808062009-11-05T10:02:00.000-08:002009-11-05T10:22:23.729-08:00Unix Script To Suspend Resume a ProcessHave you ever wanted to programmatically suspend and resume a Unix process. Possibly setting up to do this in a periodic fashion for N cycles. This can be done easily using Unix signals such as SIGSTOP, and SIGCONT. The SIGSTOP will cause a process to suspend but not stop, and the SIGCONT will cause the process to resume.<br /><br />So the trick is to determine the PID for the process you want to suspend or resume, and then set up the parameters governing the amount of time you want the process to sleep and run. Additionally, you may want to control the termination of he underlying process based on a number of cycles, time, or some other criteria. Well I have found an excellent script to do just that:<br /><br />A brief discussion can be found at <a href="http://www.quantprinciple.com/invest/index.php/docs/tipsandtricks/unixsuspendresume/">Discussion</a>. <br />Of Course, for the impatient a <a href="http://www.quantprinciple.com/invest/index.php/docs/tipsandtricks/unixsuspendresume/#script">The Script.</a>Q. B.http://www.blogger.com/profile/08502256579896627307noreply@blogger.com0tag:blogger.com,1999:blog-5613850829957218869.post-77813028028860732032009-11-05T05:31:00.000-08:002009-11-05T05:38:12.588-08:00Dark Pools in Equity Markets<h2><span style="font-style: italic; font-family: arial;font-family:georgia;font-size:78%;" ><span style="font-weight: bold;">I had written up a discussion of Dark Pools in equity markets at QuantPrinciple.com see <a href="http://www.quantprinciple.com/invest/index.php/docs/realworld/darkpools/">Dark Pools</a>. I am entering the main text here.</span></span><br /></h2><h2>Dark Pools in the Equity Markets</h2> <p>What are dark pools? Dark pools are large blocks of equities traded off the exchange floor. In order to understand dark pools, and how they arose, we first must look at why they would even arise in the first place. As Mutual Funds, Hedge Funds, Pension Funds, Insurance Funds and other large blocks of equity increased in size, it became much more challenging for these entities to move their money in and out of a stock. Funds started to look at strategies for how to move money into and out of stocks. These strategies would get quite complex, and would have Quants (typically Ph.D.s in Mathematics or Quantitative Finance) develop them. The strategies were typically assembled by a team of quants, and carried out by a team of traders. However, as soon as a fund's "hat was tipped" other traders would start to take advantage of that knowledge, thus moving the price of the underlying in a disadvantageous direction. Therefore, the Quants would develop strategies that were unpredictable. These could include buying or selling options or other derivative type contracts to allow for protection as the funds tried to move large amounts of equity in or out of an underlying stock.</p> <p>This worked well while trading was done mostly on the floor. Times changed. Trading moved to electronic systems which are far more analytical and far more sophisticated. Possibly the most significant aspect of the electronic trading and clearing is that the time scales decreased. An equity's price can move much more rapidly today than it could in an open call system. Digital computers are far less forgiving than market makers standing on the floor of the stock exchange.</p> <p>All these factors lead to the natural desire for a third party to find a more efficient way to move large blocks of equities, without forcing the price up or down in the process. Dark pools allow funds to quietly trade large blocks of stock in the same manner that smaller players can trade. This is really very important for the liquidity of the market because the large player and the small players are really two different equity pools. Therefore, making the large funds play in the small pool of equity would mean that every move they make drives the price in that direction. </p> <h3><a name="tape"></a>Consolidated Tape</h3> <p>Dark pools are recorded to the national consolidated tape. However, they are recorded as over-the-counter transactions. Therefore detailed information about the volumes and types of transactions is left to the crossing network to report to clients if they desire and are contractually obligated.</p> <p>Dark Pool transactions are recorded on the exchange's consolidated tape. The SEC, and anyone else that wants to purchase the consolidated tape, has some limited visibility into those transactions.</p>Q. B.http://www.blogger.com/profile/08502256579896627307noreply@blogger.com0tag:blogger.com,1999:blog-5613850829957218869.post-17976073347128671512009-10-31T00:45:00.000-07:002009-10-31T01:05:30.985-07:00Unix Utils For Windows<span style="font-weight: bold;">Years ago I had stumbled on this rather cool project UnixUtils at sourceforge.net</span><br />The project is a complete native port of most of the common unix utils for windows.<br /><br />Choose these Utils A La Carte style at Quant Principle's <a href="http://quantprinciple.com/invest/index.php/docs/tipsandtricks/unixutils">Unix Utils Page</a>.<br /><br />While I am aware of the fact that most hard core unix gurus will just install cygwin or possibly get the z-shell to work on a windows environment, Some people would just like to copy one or two (or 12) of their favorite unix utils to a windows box. In personally find that if you have wc (word count), tail, less, ls, grep, egrep, cat, bunzip2, bzip2, chmod, cksum, diff, gawk, gunzip, gzip, make, patch, sed, touch, ufind (I renamed find to ufind so it would not conflict with the dos version of find), unrar, zip and unzip; with these executables you will be able to function very nicely on a windows box.<br /><br />When I pull these files onto my box, I place them in c:\usr\local\bin. However if I am on a foreign system that does not have unix utils installed, I will just grab the one or two I need from the Quant Principles <a href="http://quantprinciple.com/invest/index.php/docs/tipsandtricks/unixutils">Unix Utils List</a>, and place them in the [windows]\system32 directory. That directory is Alwasy in the path. it is usually located at c:\windows\system32<br /><br />You can get the official source and binary from unixutils on sourceforge.net, or you can download the bianaries individualy at Quant Principles <a href="http://quantprinciple.com/invest/index.php/docs/tipsandtricks/unixutils">Unix Utils List</a>.Q. B.http://www.blogger.com/profile/08502256579896627307noreply@blogger.com0tag:blogger.com,1999:blog-5613850829957218869.post-7052944491122861692009-10-28T20:11:00.000-07:002009-10-28T20:47:18.777-07:00Inertial Confinement FusionWhat does Inertial Confinement Fusion have to do with Quantitative Finance?<br /><br />Not Very Much. However it does have 1 thing in common, me. Prior to working in finance, I spent time working on helping to solve the Inertial Confinement Fusion problem. What is Inertial Confinement Fusion (ICF)? ICF is a technique to use LASER light or particle beams to compress fusion able fuel such as D-T. There are many issues with this concept. One of the most significant issues is the fact that in order to compress a fuel pellet to the number density required to achieve fusion, fluid instabilities arise which tend to disrupt the compression phase of the cycle. My thesis studied Numerical Modeling of the Rayleigh-Taylor and Kelvin-Helmholtz instabilities. You can find an HTML version of the thesis at <a href="http://quantprinciple.com/qboiler/icf.html">http://quantprinciple.com/qboiler/icf.html</a>.<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4Im8mzwXsz4t3F6dWEJq_oXMN3bDvaPIJqGoJxy1Jee7H-ZqDzG96E0O7_WWViv8crkpXHPeJ9b6GpuTdgZkHmIKx9L8UcQmF5eJ4W26-U6_Rhb8seN43eTe5k412qBxaUmDul-k_nSI/s1600-h/icfeng.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 286px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4Im8mzwXsz4t3F6dWEJq_oXMN3bDvaPIJqGoJxy1Jee7H-ZqDzG96E0O7_WWViv8crkpXHPeJ9b6GpuTdgZkHmIKx9L8UcQmF5eJ4W26-U6_Rhb8seN43eTe5k412qBxaUmDul-k_nSI/s320/icfeng.jpg" alt="" id="BLOGGER_PHOTO_ID_5397858003459264562" border="0" /></a><br /><br />ICF as a concept is very similar to the internal combustion engine. While I was working on my thesis, I drew a picture that showed the phases of ICF, verses the phases of the internal combustion engine.<br /><br /><br />Why am I putting this out now? I finished up my thesis in 1995, using latex209 (before the real latex; back in the day when you used .sty files instead of .cls)<br />Because some of the articles that I have been working on for QuantPrinciple.com are mathematically rigorous, I decided to dust off my latex skills, and write the articles using latex. In doing that I decided to see if I could get my thesis to compile in latex (it did) but I could not get htlatex to make my thesis into a web page. So I translated the latex209 code of my thesis to standard latex. Once I did that the htlatex worked pretty well (There were several places it should have put a br page break and didn't, also it did not size images properly.)Q. B.http://www.blogger.com/profile/08502256579896627307noreply@blogger.com0tag:blogger.com,1999:blog-5613850829957218869.post-16525117693477471562009-10-26T20:25:00.000-07:002009-10-26T20:42:10.836-07:00Delta Neutral Hedging<span style="font-weight: bold;">Delta Neutral Hedging</span> is a concept of creating a portfolio which has a net value that is kept neutral to movements in the underlying stock price. By dynamically re-hedging an investor is able to effectively buy low and sell high. This is the concept of a good investor. Quant Principle has an excellent article discussing <span style="text-decoration: underline;"></span><a href="http://www.quantprinciple.com/invest/index.php/docs/quant_strategies/delta_neutral_hedging_strategies/">delta neutral hedging</a>. <br /><br />This article discusses Delta (<span class="cmmi-10">δ</span>) neutral hedging, and Delta (<span class="cmmi-10">δ</span>) neutral dynamic hedging. The article discusses the theory, the mathematics and a theoretical example. The example sets up a very simple portfolio that contains a long Call Option, and a short position on the underlying stock. The <a href="http://www.quantprinciple.com/invest/index.php/docs/quant_strategies/delta_neutral_hedging_strategies/#simplestrategy">simple strategy</a> demonstrates the concept of trading on volatility.<br /><br />Finally, the article presents a brief discussion of the <a href="http://www.quantprinciple.com/invest/index.php/docs/quant_strategies/delta_neutral_hedging_strategies/#risk">risks</a> associated with Delta Neutral hedging.Q. B.http://www.blogger.com/profile/08502256579896627307noreply@blogger.com1tag:blogger.com,1999:blog-5613850829957218869.post-5835583424044195682009-10-01T13:03:00.000-07:002009-10-01T13:17:31.329-07:00Investment ClubsWell since Mr Madoff (Bernie Madoff) created the greatest pyramid scheme of our time, I have been wondering if money managers are over rated. To that end I started looking at other options. That is other options to money managers. Well, there are mutual funds, which are much more regulated. However, mutual funds especially actively managed ones can have fairly significant fees. Investigating further, I found quite an intersting alternative. The great thing about this alternative is that it has been demonstrated to give as good a return on investment as some of the best managed funds in the world, with a much lower cost and fee structure. The alternative is an <a href="http://www.quantprinciple.com/invest/index.php/investment_club/">investment club</a>.<br /><br />An <a href="http://www.quantprinciple.com/invest/index.php/investment_club/">investment club</a> is a group of people who form a corporation, LLC, or joint venture; and pool there collective funds together for investing. The advantage is that a small group of modest investors can pool enough funds together to get very low transaction costs, and have a very low management fee.Q. B.http://www.blogger.com/profile/08502256579896627307noreply@blogger.com0