Hi. In this video we will learn how to analyze a categorical variable.
Categorical variable is much easy to analyze. Uh,
basically we can just plot counts, uh,
of each categories in a bar chart or a pie chart.
Uh, let's analyze the attack variable. Uh,
we see in this horizontal bar chart that, uh, from all the observations, uh,
the Smurf attack has, uh,
highest number of occurrences and there is Neptune attack.
And the third category is, uh, the normal, uh,
that's basically the normal connections, not attacks.
Uh, rest of the attacks have very small number of observations compared to,
to these three.
We can analyze also the protocol type variable. Now, uh,
we see that from all the observations.
Highest number of them are from I C M B protocol, uh,
then T C P and U D P.
We can plot also the flag variable in a normal bar chart as well.
Uh, we see that these, uh, three categories, uh,
dominate in number of observations. In
our next video, we will learn how to make a b variate analysis, uh,
that is analysis of two variables.