I came across a fantastic R script from blogger Milk Trader. Â It’s about generating something called violin plots of volatility for the S&P500 index and the VIX, which he got from this CBOE paper. Â I took that script a bit further and added in one of my current trend positions, $ARLP, just for fun.
The plot is essentially a “combination of a box plot and a kernel density plot” and shows us the absolute value of volatility (negative returns are represented as positive) on the y axis.
A very simple R code (you can get it on his site) with a great visual impact. Â Great job Milk Trader!
Don’t miss my posts about Rapidminer and R! Sign up for my feed now!Â It’s easy to do and I’d be eternally grateful!
Three different stocks, three different (possible) technical patterns. Â Can my readers tell me where and what these technical patterns are?
Which of these sectors would you buy right now?
The answer depends on whether you’re a trader or investor, and of course your holding time.
I’m still poking around in R, and leveraging the Quantmod package for fun. Â Below I generated a simple bar chart of 6 months of monthly returns for XLE, the oil services ETF.
Not to shabby, eh? Â Now if only I can figure out how to correctly scale the y-axis and add in a few more ETF’s into the same chart,withÂ differentÂ colors, then I’ll be happy. Any reader know how to do this?
Update: Thanks to readers Shane, Â Sergi, and Cidiel, I was able to generate this new plot of XLE and XLF together for the past three months of returns. Thanks guys.
So I finally got around to downloading some keyword data from Google Analytics for the time period of 2/17/11 through 3/17/11 just to see what’s driving my site traffic. Â I did a simple text miningÂ processÂ in Rapidminer to build my keyword frequency list (it took me a few minutes) and generated keyword similarities. Â Of course I know what is the biggest draw to my site, that would be my tutorials about Rapidminer, BUT what I’m looking for are subtler patterns in the keywords relative to the bounce rates and site visits.
So below are a few charts I generated from one month of keyword data.
The first chart I want to share with you is a bubble chart showing the site visits for a particular keyword vs the bounce rates. In this case the keyword is Rapidmi (a stemmed word for Rapidminer) It’s a bubble chart so the size of the bubbles are set for the frequency of the word Rapidminer relative to the site visit and bounce rate.
The second chart isÂ visits vs bounce rate but with the keyword Tutorial as the bubble size.
And the last chart isÂ visits vs bounce rate but with the keyword Stock as the bubble size.
It appears from the above exercise that the keyword Rapidminer and Tutorial drives a lot of traffic but they have a relatively even keyword frequency distribution across the bounce rate, some people bounce immediately while other stick. The keyword Stock has an interesting bounce rate per visitÂ distribution relative to the keyword frequency, its either 100%, 30 to 50% or almost 0%.
What I find fascinating is the stickiness of the keywordÂ frequencyÂ Rapidminer and Tutorial relative to the 50% bounce rate and site visits. There’s a strong site visit (45 to 60) component for those keywords in the data, but I knew that already.
I’m attaching the Rapidminer process file in case you want to mine your own keywords (you have to supply your own data).
I use Google Analytics and I probably should use more it in conjuction with Rapidminer to do more data modeling, but it’s a question of free time; something that’s a luxury right now.
For fun I’m posting my top 10Â referrersÂ for the period of February 17 through March 17, 2011. Of courseÂ Rapid-I is on top of that list and thanks to them and all the other blogs and websites for linking to this site. Â You all make me smile and without you I’d probably be just another loser on the Internet.
What’s interesting in this referrer snapshot is that I have a relatively low visitor rate (highly niche blog) but my average “time on site” is over 4 minutes, with the last month time period clocking in over 7 minutes. Â That’s because of my video tutorials, the biggest driver of traffic for this measly blog.
Currently long $YUM and loving it, so far.
Loving the R plotting capabilities too!
I’m sure you’ve noticed that I put Google Ad’s back on this site. Don’t worry, I’m doing this on a temporary basis because I want you guys to help support my book habit! I admit, I’m a book junkie.
These ads, in about 1 1/2 month’s time allowed me, to buy Statistics: An Introduction using R andÂ A Beginner’s Guide to R (Use R) with no cost out of my pocket. Â I like to read themÂ in my spare time and will use them to extend my capabilities of using R in Rapidminer, and hopefully more video tutorials later.
Thanks for that guys! I appreciate your support.
I’m still long $CSX, even after all this nuttiness in the market. Â I didn’t get stopped out yesterday and actually closed up. Â Trend trading is a whole different ball game indeed.