Principal Compliment Analysis Skip to main content

Manali

  Manali While driving is always a fun for many but today people are short of time. They are looking to spend more time with their family. Admiring the sightseeing and creating memories, tour travels service providers top up their minds. We, Manali Tour And Travels in the business for long are recognized for unparalleled service with comfort, safety and costs intact. Most importantly we guide you in a best way possible showing you every aspect of des Our clientele comprise of individuals, families, corporate, wedding planners etc. whatever be your requirement, we are there for you on a single call. Our fleet of vehicles are regularly services and oblige by the emission norms laid by the Govt. of India. The drivers are experienced and hold legal driving licenses and before coming on board with us, they undergo a rigorous selection process and then hired. Chandigarh which is blessed with bounties of nature – hills, gardens, lake-beauty at its best, is surrounded by many tourist attra...

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

Arc de Triomphe Paris

Arc de Triomphe Paris  There is no doubt that everyone visiting Paris for a vacation is going to want to get a great shot in front of the world’s most famous Arch for Instagram. The  Arc de Triomphe Paris , the most monumental of all triumphal arches, was built between 1806 and 1836. Even though there were many modifications from the original plans (reflecting political changes and power struggles), the Arch still retains the essence of the original concept which was a powerful, unified symbol for France. The Arc de Triomphe stands at the center of the Place Charles de Gaulle, also known as the “Place de l’Étoile”. It’s located at the western end of the Champs-Élysées. The arches whole decorative style is entirely of the tradition of sculpture from the first half of the nineteenth century. The triumphal arch is in honor of those who fought for France (and in particular, those who fought during the Napoleonic wars). Engraved on the inside and at the top of ...

NFT

  NFT    (Non-Fungible Token) Imagine buying a piece of digital artwork on the Internet at a reasonable price and getting a unique digital token known which proves your authority over the artwork you bought. Wouldn't it be great? Well, that opportunity exists now, thanks to NFTs. NFTs are currently taking the digital art and collectables world by storm. Just as everyone worldwide believed  Bitcoin  was the digital answer to currency, NFTs are now pitched as the digital answer to collectibles. Asa result, digital artists are seeing their lives changing thanks to the massive sales to a new crypto audience.  If you are interested in NFTs and want to explore more about what they are, you have come to the right place. Let’s dive in and see what all the fuss is about!  What is NFT? NFT means non-fungible tokens  (NFTs), which are generally created using the same type of programming used for  cryptocurrencies . In simple terms these cryptograp...

Natural resource management

Natural Resources Management Natural resource management  issues have attracted increasing attention in recent decades, particularly in Asia, partly in response to a sequence of crises in energy, food, water, and other resources. Effective governance and management of resources have always been important, but have become increasingly challenging in the face of changing climate, livelihoods, and market pressures. Many Asian countries have compromised their natural resource base for the sake of development, and are consequently facing various environmental challenges. The pressure on natural resources has potentially been aggravated by the development of infrastructure, advancement in extraction techniques, and expanding product markets that enlarge extraction opportunities for concession holders as well as local populations. Under such circumstances, the quality of land, water, and forest is threatened, and the regenerating capacity of resources is hardly guaranteed. T...