You are on page 1of 2

What are categorical attributes, give examples.

Categorical attributes:

A categorical or discrete attribute is one that has two or more categories


(values). There are two types of categorical variables, nominal and
ordinal. A nominal variable has no intrinsic ordering to its categories.
For example, gender is a categorical variable having two categories
(male and female) with no intrinsic ordering to the categories. An ordinal
variable has a clear ordering. For example, temperature as a variable
with three orderly categories (low, medium and high). A frequency table
is a way of counting how often each category of the variable in question
occurs. It may be enhanced by the addition of percentages that fall into
each category.
They have only symbolic values, many of the arithmetic operations
cannot be directly performed on the symbolic values.

2)Let X = (69, 74, 68, 70, 72, 67, 66, 70, 76, 68, )denote the
age and let Y = (153, 175, 155, 135, 172, 150, 115, 137, 200,
130) denote the weight of sample of size n=10.

Mean:

µ = E[X] = ∑ x f (x)

f(x) = (69, 74, 68, 70, 72, 67, 66, 70, 76, 68, )

µ=70

Median:
P (X ≤ m) ≥ 1 /2 and P (X ≥ m) ≥ 1 /2

m= 69.5
Mode :
The mode of a random variable X is the value at which the probability
mass function or the probability density function attains its maximum
value, depending on whether X is discrete or continuous, respectively.

So mode = 68,70

b) Variance of Y= (153, 175, 155, 135, 172, 150, 115, 137, 200, 130)

Sample size=10
Mean = 151.2

Variance (s^2): 638.62222222222

c)
Set X 69,74,68,70,72,67,66,70,76,68

Set Y 153,175,155,135,172,150,115,137,200,130

Number of Samples 10

Mean X̄ 70

Mean Ȳ 152.2

Covariance 61.1

d) According to linear Regression analysis is a tool to investigate


how two or more variables are related.
The data sample in X and data sample in Y are not equal. So
according to linear regression , the analysis made was age
increases and weight also increases respectively.

You might also like