Search This Blog

Variable

Constant: A constant is any characteristics, number, or quantity that can be measured or counted. Its value cannot be changed.

Variable: A variable is any characteristics, number, or quantity that can be measured or counted. Its value may change over times.

Types of Variable: There are 2 types of variable. They are:

  1. Qualitative.
  2. Quantitative.



Qualitative variable: A qualitative variable, also called a categorical variable, are variables that are not numerical. It describes data that fits into categories. 
Examples: 
  •        clothing size (i.e. small, medium, large, extra large)
  •        attitudes (i.e. strongly agree, agree, disagree, strongly disagree)
  •        Eye colors (variables include: blue, green, brown, hazel)
  •        Class in college (e.g. freshman, sophomore, junior, senior). 
  •        Party affiliation (e.g. Republican, Democrat, Independent). 
  •        Type of pet owned (e.g. dog, cat, rodent, fish). 
  •        Favorite author (e.g. Stephen King, James Patterson, Charles Dickens). 
  •        Preferred airline (e.g. Southwest, Virgin, Quantas). 
  •        Hair color (e.g. blond, brunette, black). 
  •        Your race (e.g. Asian, Latino, black). 
  •        Types of hats (e.g. sombrero, beanie, fedora).

Quantitative variable: Quantitative variables are that which can be measured on a numeric or quantitative scale.
       Quantitative variable are 2 types. They are: 
  1. Discrete. (Integer only)
  2. Continuous. (Integer or Fraction)
Examples: 
  • High school Grade Point Average (e.g. 4.0, 3.2, 2.1).  (Continuous)
  • Number of pets owned (e.g. 1, 2, 4). (Discrete)
  • Bank account balance (e.g. $100, $987, $-42. (Continuous)
  • Number of stars in a galaxy (e.g. 100, 2301, 1 trillion) . (Discrete)
  • Number of lottery tickets sold (e.g. 25, 2,789, 2 million). (Discrete)
  • How many cousins you have (e.g. 0, 12, 22). (Discrete)
  • The amount in your paycheck (e.g. $200, $1,457, $2,222). (Continuous)




No comments

Powered by Blogger.