9923170071 / 8108094992 info@dimensionless.in
Univariate Analysis – A Key to the Mystery Behind Data!

Univariate Analysis – A Key to the Mystery Behind Data!

 

Exploratory Data Analysis or EDA is that stage of Data Handling where the Data is intensely studied and the myriad limits are explored. EDA literally helps to unfold the mystery behind such data which might not make sense at first glance. However, with detailed analysis, we can use the same data to provide miraculous results which can help boost large scale business decisions with excellent accuracy. This not only helps business conglomerations to evade likely pitfalls in the future but also helps them to leverage from the best possible schemes that might emerge in the near future.

 

EDA employs three primary statistical techniques to go about this exploration:

  • Univariate Analysis
  • Bivariate Analysis
  • Multivariate Analysis

Univariate, as the name suggests, means ‘one variable’ and studies one variable at a time to help us formulate conclusions such as follows:

  • Outlier detection
  • Concentrated points
  • Pattern recognition
  • Required transformations

 

In order to understand these points, we will take up the iris dataset which is furnished by fundamental python libraries like scikit-learn.

The iris dataset is a very simple dataset and consists of just 4 specifications of iris flowers: sepal length and width, petal length and width (all in centimeters). The objective of this dataset is to identify the type of iris plant a flower belongs to. There are three such categories: Iris Setosa, Iris Versicolour, Iris Virginica).

So let’s dig right in then!

 

1. Description Based Analysis

 

The purpose of this stage is to get an initial idea about each variable independently. This helps to identify the irregularities and probable patterns in the variables. Python’s inbuilt panda’s library helps to execute this task with extreme ease by literally using just one line of code.


Code:

data = datasets.load_iris()

The iris dataset is in dictionary format and thus, needs to be changed to data frame format so that the panda’s library can be leveraged.

We will store the independent variables in ‘X’. ‘data’ will be extracted and converted as follows:

X = data[‘data’]  #extract


X = pd.DataFrame(X) #convert

On conversion to the required format, we just need to run the following code to get the desired information:

X.describe() #One simple line to get the entire description for every column

Output:

Output for desired code

 

  • Count refers to the number of records under each column.
  • Mean gives the average of all the samples combined. Also, it is important to note that the mean gets highly affected by outliers and skewed data and we will soon be seeing how to detect skewed data just with the help of the above information.
  • Std or Standard Deviation is the measure of the “spread” of data in simple terms. With the help of std we can understand if a variable has values populated closely around the mean or if they are distributed over a wide range.
  • Min and Max give the minimum and maximum values of the columns across all records/samples.

 

25%, 50%, and 75% constitute the most interesting bit of the description. The percentiles refer to the respective percentage of records which behave a certain way. It can be interpreted in the following way:

  1. 25% of the flowers have sepal length equal to or less than 5.1 cm.
  2. 50% of the flowers have a sepal width equal to or less than 3.0 cm and so on.

50% is also interpreted as the median of the variable. It represents the data present centrally in the variable. For example, if a variable has values in the range 1 and 100 and its median is 80, it would mean that a lot of data points are inclined towards a higher value. In simpler terms, 50% or half of the data points have values greater than or equal to 80.

Now that the performance of mean and median is demonstrated, from the behavior of these numbers, one can conclude if the data is skewed. If the difference is high, it suggests that the distribution is skewed and if it is almost negligible, it is indicative of a normal distribution.

These options work well with continuous variables like the ones mentioned above. However, for categorical variables which have distinct values, such a description seldom makes any sense. For instance, the mean of a categorical variable would barely be of any value.

 

For such cases, we use yet another pandas operation called ‘value_counts()’. The usability of this function can be demonstrated through our target variable ‘y’. y was extracted in the following manner:

y = data[‘target’] #extract

This is done since the iris dataset is in dictionary format and stores the target variable in a list corresponding to the key named as ‘target’. After the extraction is completed, convert the data into a pandas Series. This must be done as the function value_counts() is only applicable to pandas Series.

y = pd.Series(y) #convert


y.value_counts()

On applying the function, we get the following result:

Output:

2    50

1    50

0    50

dtype: int64

 

This means that the categories, ‘0’, ‘1’ and ‘2’ have an equal number of counts which is 50. The equal representation means that there will be minimum bias during training. For example, if data tends to have more records representing one particular category ‘A’, the training model used will tend to learn that the category ‘A’ is the most recurrent and will have the tendency to predict a record as record ‘A’. When unequal representations are found, any one of the following must be followed:

  • Gather more data
  • Generate samples
  • Eliminate samples

Now let us move on to visual techniques to analyze the same data, but reveal further hidden patterns!

 

2.  Visualization Based Analysis

 

Even though a descriptive analysis is highly informative, it does not quite furnish details with regard to the pattern that might arise in the variable. With the difference between the mean and median we may be able to figure out the presence of skewed data, but will not be able to pinpoint the exact reason owing to this skewness. This is where visualizations come into the picture and aid us to formulate solutions for the myriad patterns that might arise in the variables independently.

Lets start with observing the frequency distribution of sepal width in our dataset.

frequency distribution of sepal

Std: 0.435
Mean: 3.057
Median (50%): 3.000

 

The red dashed line represents the median and the black dashed line represents the mean. As you must have observed, the standard deviation in this variable is the least. Also, the difference between the mean and the median is not significant. This means that the data points are concentrated towards the median, and the distribution is not skewed. In other words, it is a nearly Gaussian (or normal) distribution. This is how a Gaussian distribution looks like:

Normal Distribution generation graph

Normal Distribution generated from random data

 

The data of the above distribution is generated through the random. The normal function of the numpy library (one of the python libraries to handle arrays and lists).

It must always be one’s aim to achieve a Gaussian distribution before applying modeling algorithms. This is because, as has been studied, the most recurrent distribution in real life scenarios is the Gaussian curve. This has led to the designing of algorithms over the years in such a way that they mostly cater to this distribution and assume beforehand that the data will follow a Gaussian trend. The solution to handle this is to transform the distribution accordingly.

Let us visualize the other variables and understand what the distributions mean.

Sepal Length:

image result for distribution mean graph

Std: 0.828
Mean: 5.843
Median: 5.80

 

As is visible, the distribution of Sepal Length is over a wide range of values (4.3cm to 7.9cm) and thus, the standard deviation for sepal length is higher than that of sepal width. Also, the mean and median have almost an insignificant difference between them. This clarifies that the data is not skewed. However, here visualization comes to great use because we can clearly see that distribution is not perfectly Gaussian since the tails of the distribution have ample data. In Gaussian distribution, approximately 5% of the data is present in the tailing regions. From this visualization, however, we can be sure that the data is not skewed.

Petal Length:

petal length graph

Std: 1.765
Mean: 3.758
Median: 4.350

This is a very interesting graph since we found an unexpected gap in the distribution. This can either mean that the data is missing or the feature does not apply to that missing value. In other words, the petal lengths of iris plants never have the length in the range 2 to 3! The mean is thus, justifiably inclined towards the left and the median shows the centralized value of the variable which is towards the right since most of the data points are concentrated in a Gaussian curve towards the right.  If you move on to the next visual and observe the pattern of petal width, you will come across an even more interesting revelation.

 

Petal Width:

petal width graph

std: 0.762
mean: 1.122
median: 1.3

In the case of Petal Width, most of the values in the same region as in the petal length diagram, relative to the frequency distribution, are missing. Here the values in the range 0.5 cm to 1.0 cm are almost absent (but not completely absent). A repetitive low value simultaneously in the same area corresponding to two different frequency distributions is indicative of the fact that the data is missing and also confirmatory of the fact that petals of the size of the missing values are present in nature, but went unrecorded.

This conclusion can be followed with further data gathering or one can simply continue to work with the limited data present since it is not always possible to gather data representing every element of a given subject.

Conclusively, using histograms we came to know about the following:

  • Data distribution/pattern
  • Skewed distribution or not
  • Missing data

Now with the help of another univariate analysis tool, we can find out if our data is inlaid with anomalies or outliers. Outliers are data points which do not follow the usual pattern and have unpredictable behavior. Let us find out how to find outliers with the help of simple visualizations!

We will use a plot called the Box plot to identify the features/columns which are inlaid with outliers.

Box Plot for Iris Dataset
Box Plot for Iris Dataset

 

The box plot is a visual representation of five important aspects of a variable, namely:

  • Minimum
  • Lower Quartile
  • Median
  • Upper Quartile
  • Maximum

As can be seen from the above graph, each variable is divided into four parts using three horizontal lines. Each section contains approximately 25% of the data.  The area enclosed by the box is 50% of the data which is located centrally and the horizontal green line represents the median. One can identify an outlier if the point is spotted beyond the max and min lines.

From the plot, we can say that sepal_width has outlying points. These points can be handled in two ways:

  • Discard the outliers
  • Study the outliers separately

Sometimes outliers are imperative bits of information, especially in cases where anomaly detection is a major concern. For instance, during the detection of fraudulent credit card behavior, detection of outliers is all that matters.

 

Conclusion

 

Overall, EDA is a very important step and requires lots of creativity and domain knowledge to dig up maximum patterns from available data. Keep following this space to know more about bi-variate and multivariate analysis techniques. It only gets interesting from here on!

Follow this link, if you are looking to learn data science online!

You can follow this link for our Big Data course, which is a step further into advanced data analysis and processing!

Additionally, if you are having an interest in learning Data Science, click here to start the Online Data Science Course

Furthermore, if you want to read more about data science, read our Data Science Blogs

 

Download Adobe Photoshop 7.0

Download Adobe Photoshop 7.0

Download Adobe Photoshop 7.0 for Windows 10, 8, 7 The Adobe Photoshop 7.0 for Windows PC is an exceptional software for editing images, which is loaded with an array of exclusive tools and functionalities.
Adobe Photoshop 7.0 remains a favored software among graphic designers owing to its efficiency in performing quick sketches, line drawings, and shading to edit images. The software has retained its relevance among users despite its age and continues to attract downloads for Windows 10, 8, and 7 (32/64bits) PCs. With Adobe Photoshop 7.0, you can enjoy features such as speedy image loading, simple file browsing, and the ability to create complex drawings with professional editing tools. Whether you are a beginner or an advanced user, this powerful design app provides sophisticated compositing, painting, and animation capabilities for a seamless editing experience.

How to Download Adobe Photoshop 7.0 Easily:

Downloading Photoshop 7 for Windows is now easy. Just go to the download section of this page and click the download button to get started. Adobe Photoshop 7.0 Free Download is compatible with all types of Windows PC. Windows 10, Windows 8, Windows 7, and Windows XP (32-bit and 64-bit) are the major operating systems to run the application very smoothly.

System Requirements:

Photoshop 7.0 requires Intel Pentium IV or a faster processor for smooth editing, 128 MB or higher amount of RAM, 280 MB or more free disk space, and Windows XP, Vista, Windows 7, Windows 8, Windows 8.1, and Windows 10 operating system.

Advantages of Adobe Photoshop 7.0:

The Main Advantages of the application.
  • It lets you edit and create images and graphics.
  • Allows you to use quick tools to draw images, sketches, and shaps
  • It has the ability to edit different types of image formats.
  • The image color correction feature helps to make images more attractive.
  • Powerful Paint Engine to create and edit new paintbrushes
  • Advanced layer management helps to organize layers easily.
  • It has built-in professional Plug-Ins, Filters, Textures, and Overlays.
  • Merging images and graphics easily.

Photoshop 7.0 Features:

Powerful Paint Engine

Powerful Paint Engine enables to create as well as edit new paintbrushes. You can save brush presets to use these custom paintbrushes in your future projects.

Layer

It allows you to manage different picture layers very well. Using the standard layer panel, you can move, hide, delete, and clone layers easily and all the layers can be merged in just a single click. These options are now better and more powerful in the Adobe Photoshop 7.0.

Multiple Tools and Features:

It includes a variety of graphical tools to help you edit your photos or create mind-blowing graphics. These tools are great for photographers or designers to convert a simple image into a masterpiece. These tools are also useful for graphic designers to create logos, banners, social media posts, YouTube thumbnails, and many more.

Healing & Patch Tool:

Healing & Patch Tool lets you restore an old or dusty image to a new one. Adobe Photoshop 7.0 introduces a fresh tool for clear artifacts such as wrinkles, blemishes, scratches, and any unnecessary spots in an image within a few clicks. You just need to swipe the healing brush and everything will be all right instantly. There are several types of stylish brushes and you can select your required brush from the panel.

Adobe Photoshop 7.0 Download free for picture manipulation:

Download Download Adobe Photo Shop 7.0 for PC and use the fresh tool Perspective Wrap for picture manipulation. The useful utility very clearly makes it simpler for you to create a perspective on the spreadsheet. In inversions 2 and 6, you can use Vanishing Point and Transform features for creating a perspective. you can create perspective more symmetrical as well as precision instead of using the Free Transforms.

Can I still download and use Adobe Photoshop 7.0?

Yes, Photoshop 7.0 is still available to download and you get it directly on your PC from SoftShareNet. Here you can get Adobe Photoshop 7.0 offline installer for Windows 32/64-bit PC. This is one of the most downloaded photo editing apps for Windows PC.
Technical Description
Name Adobe Photoshop 7.0
Developer Adobe System Inc
Website www.adobe.com
Version 7.0
License Freeware
Operating System Windows 10, 8, 7 (32/64-bit)
User Rating
4.9/5 (7 Reviews)
Category Image Editor, Graphics Design
Language US English
Size 160 MB
Updated on 01 February 2023