Skip to content

Commit

Permalink
add Module2_Unit2 content
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrant46 committed Mar 19, 2024
1 parent d7e906f commit fdb6df1
Show file tree
Hide file tree
Showing 5 changed files with 181 additions and 0 deletions.
181 changes: 181 additions & 0 deletions Module_2/Module2_Unit2.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "57f03a22-aedd-4fdd-ae79-af75722a3dd0",
"metadata": {},
"source": [
"![Callysto.ca Banner](https://github.com/callysto/curriculum-notebooks/blob/master/callysto-notebook-banner-top.jpg?raw=true)"
]
},
{
"cell_type": "markdown",
"id": "9a711085-097f-460b-b501-b591f2bbc416",
"metadata": {
"tags": []
},
"source": [
"# Module 2 Unit 2 - Data Fundamentals\n",
"\n",
"### Data and information\n",
"\n",
"We often hear the terms data and information used interchangeably. This works fine in most everyday conversations, but in a data science context, it helps to be more specific.\n",
"\n",
"In this course, data refers to specific pieces of information—facts, figures, or values that relate to specific observations. These pieces only become information when they are collected together and given structure and context to make them useful. \n",
"\n",
"For example, if students were asked to guess the number of jelly beans in a jar, each person's guess would be one piece of data.\n",
"\n",
"However, if we were to collect all the guesses and calculate the average, the result would be information we derived from the data.\n",
"\n",
"An organized collection of data is known as a data set. A spreadsheet that lists every student and their jelly bean jar guess would be an example of a data set.\n",
"\n",
"![jars](../_images/Module2-Unit2-image.png)\n",
"\n",
"### Primary and secondary data\n",
"\n",
"There are two main ways to acquire data for a project:\n",
"\n",
"* Collect it new ourselves (primary data)\n",
"* Reuse data collected by someone else (secondary data)\n",
"\n",
"**Primary Data**\n",
"\n",
">Data that is new and collected by researchers for a specific purpose is primary data. We decide what data we need and determine how we’re going to gather the data (i.e. a survey).\n",
"An example of primary data would be the results of the [2016 Census of Population](https://www12.statcan.gc.ca/census-recensement/2016/dp-pd/index-eng.cfm), collected by Statistics Canada. Other less typical sources of primary data include original social media posts, blogs, images, videos, and even personal diaries.\n",
"The advantages of collecting primary data include: \n",
"Getting the exact data you want, by designing your own data-collection process\n",
"Verifying the data yourself\n",
"The main disadvantage of primary data is the time and resources it takes to design the data-collection process and analyze the data. \n",
"\n",
"**Secondary Data**\n",
">Data that is collected by another source is known as secondary data.\n",
"For example, a local municipal government might use census data to look for changes in population. This could help them decide whether to approve new housing developments or public transit projects.\n",
"\n",
"The advantages of using secondary data include:\n",
"* Reducing the time to collect data\n",
"* Reducing the cost to collect data\n",
"\n",
"The disadvantages of using secondary data include:\n",
"* The data not answering all the questions you need to cover\n",
"* The lack of control over the quality of the data collected\n",
"\n",
"As we learned in the last module, there is a lot of pre-existing data available to us and more is being generated all the time. Because of this, our main focus will be on working with secondary data.\n",
"\n",
"\n",
"### 🏁 Actvity\n",
"\n",
"Classify the data sources below as either primary or secondary.\n",
"\n",
"### Qualitative and Quantitative data\n",
"\n",
"**Qualitative Data*\n",
">Also known as categorical, or nominal data, qualitative data takes the form of categories based on groupings, labels, attributes, properties, and other identifiers.For example, data regarding the gender identities of survey participants, their favourite pizza toppings, or the colours of their shoes is qualitative data.\n",
"Qualitative data can sometimes have a numerical value (e.g. social insurance number) if they are unique to an individual.Qualitative data can sometimes have an order where the numerical position of an object can be described. For example, there is a conventional order to the colours in a rainbow.\n",
"\n",
"**Quantitative Data*\n",
"\n",
">Quantitative data is measurable and varies in magnitude. For example, the total number of people who replied to a survey, the number of pizzas they have eaten this month, and their shoe sizes are examples of quantitative data. Quantitative data is always expressed in the form of numbers. These numbers can be discrete (meaning whole round numbers) or continuous, with floating point values and many decimal places.\n",
"\n",
"### 🏁 Actvity\n",
"\n",
"True and False questions\n",
"\n",
"\n",
"### Big data\n",
"\n",
"One of the exciting things about modern data science tools and techniques is how they let us work with big data.\n",
"\n",
"Big data is a collection of observations that are too large or complex to be effectively analyzed by traditional data processing software and methods.\n",
"\n",
"Big data also represents a shift in the way people and organizations think about data.\n",
"\n",
"![big-data](../_images/Module2-Unit2-image1.png)\n",
"\n",
"*Relative interest in big data as a Google search term via [Google Trends](https://trends.google.com/trends/explore?date=all&q=%2Fm%2F0bs2j8q)*\n",
"\n",
"Many organizations have come to see their data as a way to generate income, from developing new products to forming business strategies.\n",
"\n",
"Big data now plays an increasingly large role in our everyday lives, often in ways we don't think about. For example, research companies have developed algorithms that allow them to analyze the online activities of consumers, including their purchases, social media use, and online searches. The results allow them to look for trends and predict what types of advertisements are most likely to get our attention or to recommend movies, shows, news articles, products, and more.\n",
"\n",
"### Big data in the classroom\n",
"\n",
"Modern data science tools make it possible for students to explore data sets that are large and complex.\n",
"\n",
"Big data can be described in terms of the four \"Vs\":\n",
"![bigdataclassroom](../_images/Module2-Unit2-image2.jpeg)\n",
"\n",
"**Volume**\n",
">The massive quantities of data, stored by terabytes, petabytes, or even exabytes.\n",
"\n",
"* A terabyte (TB) is a measure of computer storage capacity that is 1,024 gigabytes (GB), or approximately 1 million bytes.\n",
"* A petabyte (PB) consists of 1,024 terabytes.\n",
"* An exabyte (EB) consists of 1,024 petabytes.\n",
"\n",
"**Variety**\n",
">The different sources or formats of big data. This could be everything from social media posts to digitized books and articles.\n",
"\n",
"**Velocity**\n",
">The speed at which the data is growing or changing. Some data sets are constantly being updated with new observations from sensor devices. One example is a water quality monitor.\n",
"\n",
"**Veracity**\n",
">Throughout this course we'll be using tools and platforms that can handle big data in a classroom environment. Two important points we should consider are: \n",
"\n",
"* The larger the data set, the more computational time it takes to clean, transform, and analyze it. In a classroom it may be a problem to have students watch a spinning hourglass icon.\n",
"* The more complex the data, the more challenging it can be to create a clear and useful visualization.\n",
"\n",
"When using large and complex sources of data for classroom projects and demonstrations, consider working with a smaller subset of the data to help avoid these issues.\n",
"\n",
"### 🏁 Actvity\n",
"\n",
"![Hollwood](../_images/Module2-Unit2-image3.jpeg)\n",
"\n",
"Visit the [Los Angeles Open Data Portal](https://data.lacity.org/browse) and see if you can answer the following questions:\n",
"\n",
"What is the \"Most Accessed\" data set? (Hint: \"Sort by\")\n",
"* How many times has it been viewed?\n",
"* How many times has it been downloaded?\n",
"* How many rows and columns are in this data set.\n",
"\n",
"Discussion Board \n",
"\n",
"\n",
"### Conclusion\n",
"\n",
"There are some advantages of collecting primary data, including being able to determine our data-collection process. However, collecting primary data takes more time and resources.\n",
"\n",
"This is where secondary data sources, such as Statistics Canada, can help. The data is often already cleaned and is ready to use.\n",
"\n",
"In the next unit, we'll explore online sources of data sets. Many of these data sets are recent, or still being added to, which makes them useful for professionals including researchers, policy makers, and business strategists."
]
},
{
"cell_type": "markdown",
"id": "d55e408c-db2a-42bb-9426-fd5cf38946a4",
"metadata": {},
"source": [
"[![Callysto.ca License](https://github.com/callysto/curriculum-notebooks/blob/master/callysto-notebook-banner-bottom.jpg?raw=true)](https://github.com/callysto/curriculum-notebooks/blob/master/LICENSE.md)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.12"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Binary file added _images/Module2-Unit2-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/Module2-Unit2-image1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/Module2-Unit2-image2.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/Module2-Unit2-image3.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fdb6df1

Please sign in to comment.