From the course: Algorithmic Trading and Finance Models with Python, R, and Stata Essential Training

Unlock this course with a free trial

Join today to access over 24,500 courses taught by industry experts.

Data analysis in R

Data analysis in R

- [Instructor] Once you've pulled your data from whatever source, when it comes to developing financial algorithms, you're going to need to start by trying to come up with a strategy. Oftentimes, that sounds easier than it really is. The reality is, you're probably going to need to go through and do a whole bunch of statistical tests to try out various ideas that you have, various theories that you have, but actually put them into practice. I'm in the 03_04_Begin file here in R, but this is really just any blank R script file in our studio. All right, now, let's just start with something basic. We have the MSFT, the Microsoft stock data that we pulled previously. So if we wanted to go through and examine summary statistics around that, we could simply type summary(MSFT), and then Ctrl + Enter. And in the Console window, we'll see a whole bunch of output popup. This'll show us the summary statistics data, the minimum, the first quartile, medians, means, third quartiles, and max for all…

Contents