012/Project-2

/Project-2/Week_7/MyCode/MyCode.py
# Project-2
Project 2: The Caffeine Conundrum

# Week 7

My Code


My Code.py


This code takes data from a csv file and plots a scatter plot of caffeine in a beverage vs. the rating of the beverage. The code then calculates the correlation coefficient between caffeine and rating, and performs a linear regression analysis to fit a line to the data. The code finally plots the linear regression line on the same scatter plot as well as the predicted caffeine level for a given rating.

Notes


The code runs with the following commands:
```
python3 MyCode.py
```

Sample output


![](MyCode.png)

Peer Code

Peer Code.py

This code takes data from a csv file and plots a scatter plot of caffeine in a beverage vs. the rating of the beverage. The code then calculates the correlation coefficient between caffeine and rating, and performs a linear regression analysis to fit a line to the data. The code finally plots the linear regression line on the same scatter plot as well as the predicted caffeine level for a given rating.

Notes

The code runs with the following commands: ``` python3 PeerCode.py ```

Sample output

![](PeerCode.png)

/Project-2/Week_6/MyCode/MyCode.py
# Project-2
Project 2: The Caffeine Conundrum

# Week 6

My Code


MyCode.py


This code takes data from a csv file and creates a scatter plot of caffeine in a beverage vs. the rating of the beverage. The code calculates and plots the correlation coefficient between caffeine and rating. Then, the code performs a linear regression analysis to fit a line to the data, and plots the regression line on the scatter plot. Finally, the code plots the predicted caffeine level for a given rating.

Notes


The code runs with the following commands:
```
python3 MyCode.py
```

Sample output


![](MyCode.png)

Peer Code

PeerCode.py

This code takes data from a csv file and creates a scatter plot of caffeine in a beverage vs. the rating of the beverage. The code calculates and plots the correlation coefficient between caffeine and rating. Then, the code performs a linear regression analysis to fit a line to the data, and plots the regression line on the scatter plot. Finally, the code plots the predicted caffeine level for a given rating.

Notes

The code runs with the following commands: ``` python3 PeerCode.py ```

Sample output

![](PeerCode.png)

/Project-2/Week_4/MyCode/MyCode.py
# Project-2
Project 2: The Caffeine Conundrum

# Week 4

My Code


MyCode.py


This code takes data from a csv file and creates a scatter plot of caffeine in a beverage vs. the rating of the beverage. The code calculates and plots the correlation coefficient between caffeine and rating. Then, the code performs a linear regression analysis to fit a line to the data, and plots the regression line on the scatter plot.

Notes


The code runs with the following commands:
```
python3 MyCode.py
```

Sample output


![](MyCode.png)

Peer Code

PeerCode.py

This code takes data from a csv file and creates a scatter plot of caffeine in a beverage vs. the rating of the beverage. The code calculates and plots the correlation coefficient between caffeine and rating. Then, the code performs a linear regression analysis to fit a line to the data, and plots the regression line on the scatter plot.

Notes

The code runs with the following commands: ``` python3 PeerCode.py ```

Sample output

![](PeerCode.png)

/Project-2/Week_2/MyCode/MyCode.py
# Project-2
Project 2: The Caffeine Conundrum

# Week 2

My Code


MyCode.py


This code takes data from a csv file and calculates the mean, median, minimum, maximum, standard deviation, and interquartile range for each column in the data. The code then plots a histogram for each column.

Notes


The code runs with the following commands:
```
python3 MyCode.py
```

Sample output


![](MyCode.png)

Peer Code

PeerCode.py

This code takes data from a csv file and calculates the mean, median, minimum, maximum, standard deviation, and interquartile range for each column in the data. The code then plots a histogram for each column.

Notes

The code runs with the following commands: ``` python3 PeerCode.py ```

Sample output

![](PeerCode.png)

/Project-2/Week_3/MyCode/MyCode.py
# Project-2
Project 2: The Caffeine Conundrum

# Week 3

My Code


MyCode.py


This code takes data from a csv file and plots a box plot of the caffeine content in beverages by the type of beverage. The code also calculates the mean, median, minimum, maximum, and standard deviation of caffeine content for each type of beverage and plots a histogram for each type of beverage.

Notes


The code runs with the following commands:
```
python3 MyCode.py
```

Sample output


![](MyCode.png)

Peer Code

PeerCode.py

This code takes data from a csv file and plots a box plot of the caffeine content in beverages by the type of beverage. The code also calculates the mean, median, minimum,