{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# **Lab - Model Development**\n",
"\n",
"ITM-370: Data Analytics
\n",
"**Lecturer: HAS Sothea, PhD**\n",
"\n",
"-------"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**Objective:** This practical lab aims to enhance your skills in implementing simple and multiple linear regression using market data covered in the course.\n",
"\n",
"> **The `Jupyter Notebook` for this Lab can be downloaded here: [Lab_Model_development.ipynb](https://hassothea.github.io/Data_Analytics_AUPP/Labs/Lab_Model_development.ipynb)**.\n",
"\n",
"> **Or you can work with this notebook in `Google Colab` here: [Lab_Model_development.ipynb](https://colab.research.google.com/drive/1vOtcbNdVCJPZzuZA0JI-i7o8lk9BI2co?usp=sharing)**.\n",
"\n",
"-----------\n",
"\n",
"# Importing Market Data\n",
"\n",
"You need internet to load the data by running the following codes. We will simply call it `data`."
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"
\n", " | youtube | \n", "newspaper | \n", "sales | \n", "|
---|---|---|---|---|
0 | \n", "276.12 | \n", "45.36 | \n", "83.04 | \n", "26.52 | \n", "
1 | \n", "53.40 | \n", "47.16 | \n", "54.12 | \n", "12.48 | \n", "
2 | \n", "20.64 | \n", "55.08 | \n", "83.16 | \n", "11.16 | \n", "
3 | \n", "181.80 | \n", "49.56 | \n", "70.20 | \n", "22.20 | \n", "
4 | \n", "216.96 | \n", "12.96 | \n", "70.08 | \n", "15.48 | \n", "