Principal Compliment Analysis Skip to main content

Indian Famous Monuments

  Golden Temple (Harmandir Sahib), Amritsar The holiest shrine and pilgrimage place located in Amritsar is The Golden Temple known as the Harmandir Sahib. This is the most famous and sacred Sikh Gurdwara in Punjab,  India , adorned with rich history and gold gilded exterior. If you are interested in culture and history, be sure to visit this popular attraction in India. Meenakshi Temple, Madurai Meenakshi Temple is situated on the Southern banks of Vaigai River in the temple city Madurai. This temple is dedicated to Parvati and her consort, Shiva and is visited by most Hindu and Tamil devotees and architectural lovers throughout the world. It is believed that this shrine houses 33,000 sculptures in its 14 gopurams. It’s no doubt one place to visit if you are impressed with art and cultural history. Mysore Palace, Mysore The Mysore Palace is a famous historical monument in the city of Mysore in Karnataka. Commonly described as the City of Palaces, this is the most famous tourist a

Principal Compliment Analysis

Principal Compliment Analysis

As you get ready to work on a PCA based project, we thought it will be helpful to give you ready-to-use code snippets. if you need free access to 100+ solved ready-to-use Data Science code snippet

The main idea of principal component analysis (PCA) is to reduce the dimensionality of a data set consisting of many variables correlated with each other, either heavily or lightly, while retaining the variation present in the dataset, up to the maximum extent. The same is done by transforming the variables to a new set of variables, which are known as the principal components (or simply, the PCs) and are orthogonal, ordered such that the retention of variation present in the original variables decreases as we move down in the order. So, in this way, the 1st principal component retains maximum variation that was present in the original components. The principal components are the eigenvectors of a covariance matrix, and hence they are orthogonal.
Importantly, the dataset on which PCA technique is to be used must be scaled. The results are also sensitive to the relative scaling. As a layman, it is a method of summarizing data. Imagine some wine bottles on a dining table. Each wine is described by its attributes like colour, strength, age, etc. But redundancy will arise because many of them will measure related properties. So what PCA will do in this case is summarize each wine in the stock with less characteristics.           
Intuitively, Principal Component Analysis can supply the user with a lower-dimensional picture, a projection or "shadow" of this object when viewed from its most informative viewpoint.
Image Source: Machine Learning Lectures by Prof. Andrew NG at Stanford University
  • Dimensionality : It is the number of random variables in a dataset or simply the number of features, or rather more simply, the number of columns present in your dataset.
  • Correlation It shows how strongly two variable are related to each other. The value of the same ranges for -1 to +1. Positive indicates that when one variable increases, the other increases as well, while negative indicates the other decreases on increasing the former. And the modulus value of indicates the strength of relation.
  • Orthogonal:  Uncorrelated to each other, i.e., correlation between any pair of variables is 0.
  • Eigenvectors:  Eigenvectors and Eigenvalues are in itself a big domain, let’s restrict ourselves to the knowledge of the same which we would require here. So, consider a non-zero vector v. It is an eigenvector of a square matrix A, if Av is a scalar multiple of v. Or simply:
Av = ƛv
Here, v is the eigenvector and Æ› is the eigenvalue associated with it.
  • Covariance Matrix: This matrix consists of the covariances between the pairs of variables. The (i,j)th element is the covariance between i-th and j-th variable.


Properties of Principal Component

Technically, a principal component can be defined as a linear combination of optimally-weighted observed variables. The output of PCA are these principal components, the number of which is less than or equal to the number of original variables. Less, in case when we wish to discard or reduce the dimensions in our dataset. The PCs possess some useful properties which are listed below:
  1. The PCs are essentially the linear combinations of the original variables, the weights vector in this combination is actually the eigenvector found which in turn satisfies the principle of least squares.
  2. The PCs are orthogonal, as already discussed.
  3. The variation present in the PCs decrease as we move from the 1st PC to the last one, hence the importance.
The least important PCs are also sometimes useful in regression, outlier detection, etc.

Comments

Popular posts from this blog

Chote Khan Tomb

  There are many legendary monuments located in Delhi. Some are lesser known, decaying & neglected, whilst there are others that make you wonder why they are not so famous after all?! Bade and Chote Khan’s twin tombs in South Extension are of the latter kind. They are magnificent structures, colossal enough to get noticed, located in a prominent area and also in pretty good shape too, but still, hardly anyone knows about them! It is basically a complex of twin tombs somewhat like the Dadi Poti tombs located near HKV. They form part of one of the major components of the Kotla Mubarakpur complex, which includes several other lesser known tombs, mostly from the pre-Mughal era, belonging to various kings and noblemen of the notable Lodi and Sayyid dynasties. As of now, they are scattered around the congested lanes of Kotla Mubarakpur village as well as the posh streets of the neighbouring South Extension locality. Bade Khan Ka Gumbad Slightly bigger of the two tombs, it dates back

Indian Famous Monuments

  Golden Temple (Harmandir Sahib), Amritsar The holiest shrine and pilgrimage place located in Amritsar is The Golden Temple known as the Harmandir Sahib. This is the most famous and sacred Sikh Gurdwara in Punjab,  India , adorned with rich history and gold gilded exterior. If you are interested in culture and history, be sure to visit this popular attraction in India. Meenakshi Temple, Madurai Meenakshi Temple is situated on the Southern banks of Vaigai River in the temple city Madurai. This temple is dedicated to Parvati and her consort, Shiva and is visited by most Hindu and Tamil devotees and architectural lovers throughout the world. It is believed that this shrine houses 33,000 sculptures in its 14 gopurams. It’s no doubt one place to visit if you are impressed with art and cultural history. Mysore Palace, Mysore The Mysore Palace is a famous historical monument in the city of Mysore in Karnataka. Commonly described as the City of Palaces, this is the most famous tourist a

Tomb of Bijri khan

TOMB  Of  BIJRI KHAN The tomb belongs to the Lodi period. Nothing is known about Bijri Khan’ - this is a signboard right outside Bijri Khan’s Tomb. This tomb is one of those out-of-the-blue monuments that jumps suddenly into focus as you drive on the wide roads of South Delhi’s R.K. Puram in Sector 3. The story, no one knows as it hasn’t been recorded, but people believe that Bijri Khan was a nobleman during the Lodi Dynasty and that's pretty much it!  The Lofty Structure Bijri Khan’s tomb is a mausoleum, a structure enclosing the interment space or burial chamber of the dead. The structure is square in shape, built on a raised platform. It is said to belong to the Lodi period, because it has three arched entrances with doorways with brackets on architraves (doorframes). This style is typical of structures built during the time of the Lodi Dynasty. The dome is both massive and impressive and the colour of the mausoleum is light cream mixed with brown, perhaps made out of ston