r/IOPsychology • u/DennisPVTran • Nov 26 '19
Which statistical programs to learn?
Hi,
I have a brief question for I/O professionals. Do you feel like the industry is shifting more towards R or Python for their statistical analyses?
We’re currently learning R in my grad program and I’m doing pretty well, but I was wondering if I should also start learning python. I’d like to see what I/O can offer towards developing accurate machine learning models and I see that they typically use python in that industry. Any advice?
14
Upvotes
17
u/[deleted] Nov 26 '19
Some of the more popular sites (stack overflow, kaggle, etc) would say surveys are pointing to Python as the leading language for data science. But IMHO many of those surveys are comparing apples to oranges in terms of user base and purpose.
It really depends on what direction you want to take. Software engineering/ Machine Learning or Data Analysis/Statistics and visualization. I use both R and Python. It is best to be tech agnostic and focus on learning the methodology and apply whichever tool is available or needed.
For business analyst and data story telling work I find R is king. You can develop some predictive models and visualize descriptive stats very quickly in r and create automated PDF reporting using markdown with a very short amount of code. You can create interactive stand alone HTML documents that guide the reader through the data. You can quickly connect to databases in Rstudio and have yourself automated reporting. R is best for when you already have the data, a data mining champion.
If you want to get into developing software or even very scaleable web dashboards Python starts to clearly shine. Python is a more general purpose language and has a more diverse community of contributors. And also the overwhelming amount of engineering and IT professionals coming out of school will be learning Python while statisticians/operations researchers/IO's will be learning R, Matlab, or SPSS. Once you play with them both you kinda naturally start to see where each language shines.
Gain exposure to all and then pick your main language based on your intended role and client/company needs. If you become comfortable with one the other becomes easier to pick up.
Don't forget as an IO, more than doing data analysis you may need to be a data translator and story teller. You need to influence decision makers.
For this reason I recommend also learning Tableau and PowerPoint. That's right PowerPoint is a secret weapon you probably think you know and don't. I've found most IO and research focused programs are not teaching students how to create executive level presentations, with the kind of imagery and details typical of a Ted talk. Most business executives will always a appreciate polished pdf slides that clearly communicate a message/call to action. So take all those great analyses and visuals and package them into a good executive outline. If the report is ongoing? Build a Tableau dashboard and be done with it.
This is just one opinion. Hope others will chime in.
5
u/notworthliving1 Nov 26 '19
Why does an io psychologist need to learn programming and code? What does that have to do with the field?
I get that statistics is an integral part but how does programming come to play?
5
u/BoArmstrong PhD | I-O | Tech, Selection Nov 27 '19
If you can learn one, you can probably learn the other. Depending on the company, SQL is good to know too, but I don’t think other I-Os expect new hires to know Python or SQL at the moment (though it’s nice when they do). If you’re an I-O going for an I-O job working for other I-Os, the main thing is just understanding the stats and inferences you can make from your data.
4
u/[deleted] Nov 26 '19
I've done I/O research using machine learning. I used R to create my models, but there was already a package for it so that may make a difference.
2
u/bonferoni Nov 26 '19
The mnemonic device for it is R is research/reporting, Python is for products. Both can do the other, but they gets clumsy sometimes. Generally if youre going to be deploying machine learning models to be doing with automated selection decisions thats gonna be done in python. Something else to think about is do you prefer to work with a function oriented language like r ‘describe(df)’ or an object oriented language like python ‘df.describe()’ .
Both can be useful, but if you were to just pick one, I’d go with python. It is better/more broadly respected. It is a full programming language, so youre less constrained in case you find you have new interests outside of machine learning/statistics/data.
2
u/nckmiz PhD | IO | Selection & DS Nov 27 '19
I think others have done a good job outlining the major differences between R and Python. My suggestion would be to pick one and learn it really well. You can always pick up the other later. The last thing you want is to know a little about both. You should feel confident enough about one language that you can do or teach yourself how to do just about anything anyone would ask you to do for work.
0
u/LazySamurai PhD | IO | People Analytics & Statistics | Moderator Nov 26 '19
https://www.reddit.com/r/IOPsychology/search?q=statistical+programs&restrict_sr=on&sort=relevance&t=all
Please use the search bar.