{"id":5,"date":"2018-10-31T14:29:39","date_gmt":"2018-10-31T18:29:39","guid":{"rendered":"https:\/\/pressbooks.bccampus.ca\/simplestats\/2018\/10\/31\/chapter-1\/"},"modified":"2019-08-12T19:53:24","modified_gmt":"2019-08-12T23:53:24","slug":"chapter-1","status":"publish","type":"chapter","link":"https:\/\/pressbooks.bccampus.ca\/simplestats\/chapter\/chapter-1\/","title":{"raw":"1.1 Variables","rendered":"1.1 Variables"},"content":{"raw":"&nbsp;\r\n\r\nYou can think of a <strong><em>variable<\/em> as a characteristic that <em>varies<\/em>\u00a0across individual elements<\/strong>. For example, hair colour varies across individuals: black, blonde, brown, red, grey (or practically any colour if we include the wonders of hair dying). If we go by other physical characteristics, we can easily see that height, weight, body type, skin colour, age, etc. are all <em>variables<\/em>.\r\n\r\n&nbsp;\r\n\r\nThen what about social\/economic characteristics like level of education, annual income, occupation, employment, citizenship, marital status, political party affiliation, union membership, participation in sports (to name a few)...? All variables. Or, what about personal opinions and preferences? You might love chocolate a lot but your friend might not care for it; another friend might like it but just a little... Your friend might try to convince you that classical music is great but you might find it terribly boring, preferring rock instead. You might be a dog person and might frequently extol the virtues of dogs in comparison to cats, to the dismay of your cat-loving significant other. You might think that legalizing marijuana in Canada was the right decision but your parents might feel it was a profound mistake on part of the government. Clearly, opinions and preferences vary, so we can add 'opinion on marijuana legalization', 'liking of chocolate', 'preferred music genre to listen to', and 'favourite pet animal<span style=\"text-indent: 1em;font-size: 14pt\">' to our ever growing list of variables.<\/span>\r\n\r\n&nbsp;\r\n\r\nSo far, you might decide that variables only apply to <em>people<\/em>: after all, all the examples mentioned above discuss characteristics that vary across human beings. However, this is absolutely not the case, as we can just as easily see that other things can have varying characteristics. For example, <em>universities<\/em> can differ in their student enrollment numbers, instructor-to-student ratios, type of degrees awarded, geographical location, source of funding, presence of medical school, percentage of international students, etc. <em>Countries<\/em> vary on population size, climate, geographical\/geopolitical location, language, GDP (gross domestic product), level of human development, presence of minority groups, immigration (and emigration) rates, fertility and mortality rates, access to universal healthcare, average education level, age of majority, freedom of press, type of government... you get the picture. Clearly, variables apply to <em>elements<\/em> of anything\u00a0<span style=\"text-indent: 18.6667px;font-size: 14pt\">that may be compared on characteristics which vary across these elements\u00a0<\/span><span style=\"text-indent: 1em;font-size: 14pt\">(hence the somewhat clumsy definition I started with).<\/span>\r\n\r\n&nbsp;\r\n\r\n<span style=\"text-indent: 1em;font-size: 14pt\">Researchers refer to <strong><em>units of analysis<\/em><\/strong> when they want to specify the elements they study: When we have information about characteristics of <em>people<\/em>, we say that the unit of analysis is \"individual\". When instead of people, we study <em>countries<\/em>, the unit of analysis is \"country\", and so on.<\/span>","rendered":"<p>&nbsp;<\/p>\n<p>You can think of a <strong><em>variable<\/em> as a characteristic that <em>varies<\/em>\u00a0across individual elements<\/strong>. For example, hair colour varies across individuals: black, blonde, brown, red, grey (or practically any colour if we include the wonders of hair dying). If we go by other physical characteristics, we can easily see that height, weight, body type, skin colour, age, etc. are all <em>variables<\/em>.<\/p>\n<p>&nbsp;<\/p>\n<p>Then what about social\/economic characteristics like level of education, annual income, occupation, employment, citizenship, marital status, political party affiliation, union membership, participation in sports (to name a few)&#8230;? All variables. Or, what about personal opinions and preferences? You might love chocolate a lot but your friend might not care for it; another friend might like it but just a little&#8230; Your friend might try to convince you that classical music is great but you might find it terribly boring, preferring rock instead. You might be a dog person and might frequently extol the virtues of dogs in comparison to cats, to the dismay of your cat-loving significant other. You might think that legalizing marijuana in Canada was the right decision but your parents might feel it was a profound mistake on part of the government. Clearly, opinions and preferences vary, so we can add &#8216;opinion on marijuana legalization&#8217;, &#8216;liking of chocolate&#8217;, &#8216;preferred music genre to listen to&#8217;, and &#8216;favourite pet animal<span style=\"text-indent: 1em;font-size: 14pt\">&#8216; to our ever growing list of variables.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>So far, you might decide that variables only apply to <em>people<\/em>: after all, all the examples mentioned above discuss characteristics that vary across human beings. However, this is absolutely not the case, as we can just as easily see that other things can have varying characteristics. For example, <em>universities<\/em> can differ in their student enrollment numbers, instructor-to-student ratios, type of degrees awarded, geographical location, source of funding, presence of medical school, percentage of international students, etc. <em>Countries<\/em> vary on population size, climate, geographical\/geopolitical location, language, GDP (gross domestic product), level of human development, presence of minority groups, immigration (and emigration) rates, fertility and mortality rates, access to universal healthcare, average education level, age of majority, freedom of press, type of government&#8230; you get the picture. Clearly, variables apply to <em>elements<\/em> of anything\u00a0<span style=\"text-indent: 18.6667px;font-size: 14pt\">that may be compared on characteristics which vary across these elements\u00a0<\/span><span style=\"text-indent: 1em;font-size: 14pt\">(hence the somewhat clumsy definition I started with).<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-indent: 1em;font-size: 14pt\">Researchers refer to <strong><em>units of analysis<\/em><\/strong> when they want to specify the elements they study: When we have information about characteristics of <em>people<\/em>, we say that the unit of analysis is &#8220;individual&#8221;. When instead of people, we study <em>countries<\/em>, the unit of analysis is &#8220;country&#8221;, and so on.<\/span><\/p>\n","protected":false},"author":533,"menu_order":1,"template":"","meta":{"pb_show_title":"","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[47],"contributor":[],"license":[],"class_list":["post-5","chapter","type-chapter","status-publish","hentry","chapter-type-standard"],"part":3,"_links":{"self":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters\/5","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/users\/533"}],"version-history":[{"count":10,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters\/5\/revisions"}],"predecessor-version":[{"id":1572,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters\/5\/revisions\/1572"}],"part":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/parts\/3"}],"metadata":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters\/5\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/media?parent=5"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapter-type?post=5"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/contributor?post=5"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/license?post=5"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}