Fundamentals which we need to care about

Warren Buffet on Investing (excerpt from Foreword for Intelligent Investor book) :

To invest successfully over a lifetime does not require a stratospheric IQ, unusual business insights, or inside information. What’s needed is a sound intellectual framework for making decisions and the ability to keep emotions from corroding that framework. This book precisely and clearly prescribes the proper framework. You must supply the emotional discipline.


Fundamentals of  Javascript:

Javascript code is executed by the browser. For example, google chrome can interpret Javascript code.

Fundamentals of HTML:

HTML code is a formatting utility, it says how different parts of webpage should be formatted.

Fundamentals of CSS:

CSS provides styling to parts of a webpage.

Fundamentals of machine learning

Enable machine to learn to recognize a cat/dog in an image. This is done by providing the machine with training dataset. Training dataset will contain labelled images. Labelled images will contain an image of a dog/cat and will contain a label whether it is a dog/cat. Enabling machine to learn to recognize is done by coding algorithms, which can mathematically model an image (matrix/vectors), which can understand properties of image (pixel values). While learning, we make mistakes, so machine also makes mistakes, so these are errors. The algorithms are tuned in such a way that these error rates are reduced over a period of time.

Machine can learn concepts from data and data can be in the form of files. And files can be in form of images/videos/sounds.

(Know) What is ImageNet? — It is a huge database of images. (Understand) Why it is useful? — Researchers/Programmers can use this free database of images to train their image learning algorithms.



Logistic Regression – draft

  • What is Logistic Regression?

Logistic Regression is a machine learning model.

Why machine learning model? We need a machine learning model, in the sense that: that model will be used by the machine to learn something. The machine will learn something out of data. The model will help the machine to make some sense out of data. And the best part is, when it makes sense out of data, it can do some useful tasks, like: predicting, classifying, on its own.

  • Can you give examples of problems where Logistic Regression can be put to use?

For example, we want to know if a person will likely have diabetes. We need some parameters to judge whether this person will get diabetes. To simplify things, let us consider some features/parameters like: person’s height, person’s weight, person’s blood pressure.

So, as software engineers, we have a method which takes some input and it will generate some output. Something like follows:

public boolean doesPersonHaveDiabetes ( Height p_height, Weight p_weight, BloodPressure p_bloodPressure) {}What is the difference between Linear Regression and Logistic Regression?


  • What is the difference between Logistic Regression and Linear Regression?

Linear Regression is great for predicting continuous values (what will be the stock price after 5 mins given some basic set of conditions ) .

Logistic Regression is great for predicting discrete outcome ( does person have diabetes or not ).

So, we are going to use a Logistic Regression model to predict an outcome ( yes or no).

Why “Logistic” ? ( Enter Mathematics … )

The core part of Logistic Regression is the ‘Logistic function’ or ‘Sigmoid function’, which looks like: Capture

From above function, we see that the numerator is 1 and denominator is restricted to take values ( 1+ e^-x ). As you can see, the function takes values from 0 to 1.  For the range of values of x, we see that max is 1 and min is 0. This fits into our scenario, where we want to know diabetes or not, we can say: more than 70% probability, then yes. Otherwise no.

  • Can we use logistic regression model for all kinds of input data ?

No, we can use it only when input space is linearly separable.