A Data Science Central Community
In the past few months, I have scripted with python for my job. I am really satisfied with its dynamic data type feature and the ease of using list. But then today in an interview for a job, the…Continue
Function and Polymorphism
When I started learning these two languages, as mentioned before, I always keep in mind that the difference between dynamic data type and static data type. Then the question came out: why they need to be like that? What is the advantage of being dynamic data type or being static data type? To make the question more concrete, let’s see how to define a function in both languages.
In Java, everything is very…Continue
A summary on Maximum likelihood Estimator
The drawback of least square estimator
A general method of building a predictive model requires least square estimation at first. Then we need work on the residuals, find the confidence interval of parameters and test how well the model fits the data which are based on the normally distributed assumption of the residuals (or noises). But unfortunately the assumption is not guaranteed. Most…Continue
3. Sequence Type
This time, we compare the sequence types of the two languages. By the terminology sequence type, we mean the data structure that is kind of a sequence of data.
In Java, we have: String, array, list(arraylist and linkedlist), set;
In Python, we have: Str, tuple, list, set;
Yes, String is one of the sequence type, because it is a sequence of char, isn’t it? About the Sting type, we only need to…Continue
Now we try to use the two languages to do a practice. The following, one in Java one in Python, are two programs with the same algorithm.
* program author: Yue Cai Zhu.…