SAS vs. R (vs. Python) – which tool should I learn?

简介:
原文  : 
http://www.analyticsvidhya.com/blog/2014/03/sas-vs-vs-python-tool-learn/

We love comparisons!

From Samsung vs. Apple vs. HTC in smartphones; iOS vs. Android vs. Windows in mobile OS to comparing candidates for upcoming elections or selecting captain for the world cup team, comparisons and discussions enrich us in our life. If you love discussions, all you need to do is pop up a relevant question in middle of a passionate community and then watch it explode! The beauty of the process is that everyone in the room walks away as a more knowledgeable person.

I am sparking something similar here. SAS vs. R has probably been the biggest debate analytics industry might have witnessed. Python is another worthy candidate to put in the mix now. The reason for me to start this discussion is not to watch it explode (that would be fun as well though). I know that we all will benefit from the discussion.

This has also been one of the most commonly asked question to me on this blog. So, I thought I’ll discuss it with all my readers and visitors!

analytics tool fight

Hasn’t a lot already been said on this topic?

Probably yes! But I still feel the need for discussion for following reasons:

  • The industry is very dynamic. Any comparison which was done 2 years back might not be relevant any more.
  • Traditionally Python has been left out of the comparison. I think it is a worthy consideration now.
  • While I’ll discuss global trends about the languages, I’ll add specific information with regards to Indian analytics industry (which is at a different level of evolution)

So, without any further delay, let the combat begin!

Background:

Here is a brief description about the 3 ecosystems:

  • SAS: SAS has been the undisputed market leader in commercial analytics space. The software offers huge array of statistical functions, has good GUI (Enterprise Guide & Miner) for people to learn quickly and provides awesome technical support. However, it ends up being the most expensive option and is not always enriched with latest statistical functions.
  • R: R is the Open source counterpart of SAS, which has traditionally been used in academics and research. Because of its open source nature, latest techniques get released quickly. There is a lot of documentation available over the internet and it is a very cost-effective option.
  • Python: With origination as an open source scripting language, Python usage has grown over time. Today, it sports libraries (numpy, scipy and matplotlib) and functions for almost any statistical operation / model building you may want to do. Since introduction of pandas, it has become very strong in operations on structured data.

Attributes for comparison:

I’ll compare these languages on following attributes:

  1. Availability / Cost
  2. Ease of learning
  3. Data handling capabilities
  4. Graphical capabilities
  5. Advancements in tool
  6. Job scenario
  7. Customer service support and Community

I am comparing these from point of view of an analyst. So, if you are looking for purchasing a tool for your company, you may not get complete answer here. The information below will still be useful. For each attribute I give a score to each of these 3 languages (1 – Low; 5 – High).

The weightage for these parameters will vary depending on what point of career you are in and your ambitions.

1. Availability / Cost:

SAS is a commercial software. It is expensive and still beyond reach for most of the professionals (in individual capacity). However, it holds the highest market share in Private Organizations. So, until and unless you are in an Organization which has invested in SAS, it might be difficult to access one.

R & Python, on the other hand are free and can be downloaded by any one. Here are my scores on this parameter:

SAS – 2

R – 5

Python – 5

2. Ease of learning:

SAS is easy to learn and provides easy option (PROC SQL) for people who already know SQL. Even otherwise, it has a good stable GUI interface in its repository. In terms of resources, there are tutorials available on websites of various university and SAS has a comprehensive documentation. There are certifications from SAS training institutes, but they again come at a cost.

R has the steepest learning curve among the 3 languages listed here. It requires you to learn and understand coding. R is a low level programming language and hence simple procedures can take longer codes.

Python is known for its simplicity in programming world. This remains true for data analysis as well. While there are no widespread GUI interfaces as of now, I am hoping Python notebooks will become more and more mainstream. They provide awesome features for documentation and sharing.

SAS – 4.5

R – 2.5

Python – 3.5

3. Data handling capabilities:

This used to be an advantage for SAS till some time back. R computes every thing in memory (RAM) and hence the computations were limited by the amount of RAM on 32 bit machines. This is no longer the case. All three languages have good data handling capabilities and options for parallel computations. This I feel is no longer a big differentiation. Also, I might not be aware of the latest innovation in each ecosystem and hence I see all 3 as equally capable.

SAS – 4

R – 4

Python – 4

4. Graphical capabilities:

SAS has decent functional graphical capabilities. However, it is just functional. Any customization on plots are difficult and requires you to understand intricacies of SAS Graph package.

R has the most advanced graphical capabilities among the three. There are numerous packages which provide you advanced graphical capabilities.

Python capabilities will lie somewhere in between, with options to use native libraries (matplotlib) or derived libraries (allowing calling R functions).

SAS – 3

R – 4.5

Python – 4

5. Advancements in tool:

All 3 ecosystems have all the basic and most needed functions available. This feature only matters if you are working on latest technologies and algorithms.

Due to their open nature, R & Python get latest features quickly (R more so compared to Python). SAS, on the other hand updates its capabilities in new version roll-outs. Since R has been used widely in academics in past, development of new techniques is fast.

Having said this, SAS releases updates in controlled environment, hence they are well tested. R & Python on the other hand, have open contribution and there are chances of errors in latest developments.

SAS – 4

R – 4.5

Python – 4

6. Job scenario:

Globally, SAS is still the market leader in available corporate jobs. Most of the big organizations still work on SAS. R / Python, on the other hand are better options for start-ups and companies looking for cost efficiency. Also, number of jobs on R / Python have been reported to increase over last few years. Here is a trend widely published on internet, which shows the trend for R and SAS jobs. Python jobs for data analysis will have similar trend as R jobs:

Source: r4stats.com

Source: r4stats.com

In India, specifically, the gap in SAS vs. R is bigger. My estimate is that SAS would have about 70% of market share, R around 15% and Python less than 5%. However, the trends are similar to global trends.

SAS – 4.5

R – 3.5

Python – 2.5

7. Customer service support & community:

R has the biggest online community but no customer service support. So if have trouble, you are on your own. You will get a lot of help though. Similar for python, though at a lower scale.

SAS on the other hand has dedicated customer service along with the community. So, if you have problems in installation or any other technical challenges, you can reach out to them.

SAS – 4

R – 3.5

Python – 3

Other factors:

Following are some more points worthy to note:

  • Python is used widely in web development. So if you are in an online business, using Python for web development and analytics can provide synergies
  • SAS used to have a big advantage of deploying end to end infrastructure (Visual Analytics, Data warehouse, Data quality, reporting and analytics), which has been mitigated by integration / support of R on platforms like SAP HANA and Tableau. It is still, far away from seamless integration like SAS, but the journey has started.

Conclusion:

Clearly, there is no winner in this race yet. It will be pre-mature to place bets on what will prevail, given the dynamic nature of industry. Depending on your circumstances (career stage, financials etc.) you can add your own weights and come up with what might be suitable for you. Here are a few specific scenarios:

  • If you are a fresher entering in analytics industry (specifically so in India), I would recommend to learn SAS as your first language. It is easy to learn and holds highest job market share.
  • If you are some one who has already spent time in industry, you should try and diversify your expertise be learning a new tool.
  • For experts and pros in industry, people should know at least 2 of these. That would add a lot of flexibility for future and open up new opportunities.
  • If you are in a start-up / freelancing, R / Python is more useful

Here is the final scorecard:

table - tool comparison

These are my views on this comparison. Now, its your turn to share your views through the comments below.

相关文章
|
传感器 人工智能 机器人
python人工智能机器人工具书籍: Learn Robotics Programming(python and Raspberry Pi 3) - 2018
简介 人工智能和智能机器人将精确有效地执行不同的任务。 Raspberry Pi和Python的组合在制作这些机器人时非常有效。 本书首先向您介绍机器人的基本结构,以及如何规划,构建和编程。 当您完成本书时,您将逐渐进步添加不同的输出和传感器,学习新的建筑技能,以及使用传感器编写有趣行为的代码。
|
机器学习/深度学习 数据采集 算法
|
数据采集 机器学习/深度学习 算法
|
机器学习/深度学习 算法 数据挖掘
Scikit Learn: 在python中机器学习
Warning 警告:有些没能理解的句子,我以自己的理解意译。 翻译自:Scikit Learn:Machine Learning in Python 作者: Fabian Pedregosa, Gael Varoquaux 先决条件 Nump...
1185 0
|
8天前
|
安全 Java 数据处理
Python网络编程基础(Socket编程)多线程/多进程服务器编程
【4月更文挑战第11天】在网络编程中,随着客户端数量的增加,服务器的处理能力成为了一个重要的考量因素。为了处理多个客户端的并发请求,我们通常需要采用多线程或多进程的方式。在本章中,我们将探讨多线程/多进程服务器编程的概念,并通过一个多线程服务器的示例来演示其实现。
|
8天前
|
程序员 开发者 Python
Python网络编程基础(Socket编程) 错误处理和异常处理的最佳实践
【4月更文挑战第11天】在网络编程中,错误处理和异常管理不仅是为了程序的健壮性,也是为了提供清晰的用户反馈以及优雅的故障恢复。在前面的章节中,我们讨论了如何使用`try-except`语句来处理网络错误。现在,我们将深入探讨错误处理和异常处理的最佳实践。
|
12天前
|
缓存 监控 Python
解密Python中的装饰器:优雅而强大的编程利器
Python中的装饰器是一种强大而又优雅的编程工具,它能够在不改变原有代码结构的情况下,为函数或类添加新的功能和行为。本文将深入解析Python装饰器的原理、用法和实际应用,帮助读者更好地理解和利用这一技术,提升代码的可维护性和可扩展性。
|
29天前
|
编译器 测试技术 C++
【Python 基础教程 01 全面介绍】 Python编程基础全攻略:一文掌握Python语法精髓,从C/C++ 角度学习Python的差异
【Python 基础教程 01 全面介绍】 Python编程基础全攻略:一文掌握Python语法精髓,从C/C++ 角度学习Python的差异
159 0
|
1天前
|
安全 数据处理 开发者
《Python 简易速速上手小册》第7章:高级 Python 编程(2024 最新版)
《Python 简易速速上手小册》第7章:高级 Python 编程(2024 最新版)
11 1
|
1天前
|
人工智能 数据挖掘 程序员
《Python 简易速速上手小册》第1章:Python 编程入门(2024 最新版)
《Python 简易速速上手小册》第1章:Python 编程入门(2024 最新版)
23 0