{"id":15893007,"url":"https://github.com/eubrunoo/beer-consumption-predictor","last_synced_at":"2025-04-02T17:40:49.104Z","repository":{"id":256328931,"uuid":"854952173","full_name":"eubrunoo/beer-consumption-predictor","owner":"eubrunoo","description":"An R project analyzing the impact of environmental factors on beer consumption in São Paulo, with a predictive linear regression model.","archived":false,"fork":false,"pushed_at":"2024-09-14T08:49:53.000Z","size":182,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T08:14:49.496Z","etag":null,"topics":["data-analysis","data-science","data-visualization","machine-learning","r","statistical-analysis","statistics"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eubrunoo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-10T03:35:39.000Z","updated_at":"2024-09-14T08:49:55.000Z","dependencies_parsed_at":"2024-10-31T08:45:36.510Z","dependency_job_id":null,"html_url":"https://github.com/eubrunoo/beer-consumption-predictor","commit_stats":null,"previous_names":["eubrunoo/beer-consumption-predictor"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eubrunoo%2Fbeer-consumption-predictor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eubrunoo%2Fbeer-consumption-predictor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eubrunoo%2Fbeer-consumption-predictor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eubrunoo%2Fbeer-consumption-predictor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eubrunoo","download_url":"https://codeload.github.com/eubrunoo/beer-consumption-predictor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246863570,"owners_count":20846275,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-analysis","data-science","data-visualization","machine-learning","r","statistical-analysis","statistics"],"created_at":"2024-10-06T08:06:06.603Z","updated_at":"2025-04-02T17:40:49.086Z","avatar_url":"https://github.com/eubrunoo.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# Beer Consumption Predictor\r\n\r\n## Overview\r\nThis project aims to analyze the impact of various environmental and temporal factors on beer consumption in a university area in São Paulo, Brazil. The dataset used contains data collected throughout the year 2015, including daily temperature readings, precipitation levels, and information on whether beer was consumed during the weekends.\r\n\r\nThe ultimate goal is to build a linear regression model that predicts beer consumption based on these variables. The insights derived from this analysis could help in understanding how different factors influence beer consumption and provide a foundation for forecasting future consumption under various scenarios.\r\n\r\n## Dataset\r\nThe dataset consists of the following columns:\r\n- **Date**: Daily records for the year 2015.\r\n- **Average Temperature**: The average temperature recorded each day (in °C).\r\n- **Minimum Temperature**: The minimum temperature recorded each day (in °C).\r\n- **Maximum Temperature**: The maximum temperature recorded each day (in °C).\r\n- **Precipitation**: The amount of precipitation recorded each day (in mm).\r\n- **Weekend Indicator**: A binary indicator (0 or 1) of whether the beer was consumed on a weekend.\r\n- **Beer Consumption (Liters)**: The amount of beer consumed (in liters) on each day.\r\n\r\n## Analysis Plan\r\n1. **Data Exploration**: Begin with exploratory data analysis to understand the distributions, trends, and relationships between variables.\r\n2. **Correlation Analysis**: Assess the correlations between environmental factors (temperature, precipitation) and beer consumption to identify potential predictors.\r\n3. **Categorical Analysis**: Examine the influence of weekends on beer consumption, comparing it with weekdays.\r\n4. **Linear Regression Modeling**: Develop a linear regression model using selected variables to predict daily beer consumption.\r\n5. **Model Evaluation**: Evaluate the model's performance using relevant metrics and interpret the results.\r\n6. **Forecasting**: Use the model to forecast beer consumption under specific scenarios, such as varying temperatures or precipitation levels.\r\n\r\n## Contributing\r\n- Contributions are welcome! Feel free to fork the repository and submit a pull request.\r\n\r\n## Installation\r\nTo replicate this analysis, you'll need to have R installed on your machine. The following R packages are also required:\r\n- `tidyverse`\r\n- `ggplot2`\r\n- `dplyr`\r\n- `lubridate`\r\n- `caret`\r\n\r\nYou can install these packages using:\r\n```R\r\ninstall.packages(c(\"tidyverse\", \"ggplot2\", \"dplyr\", \"lubridate\", \"caret\"))\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feubrunoo%2Fbeer-consumption-predictor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feubrunoo%2Fbeer-consumption-predictor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feubrunoo%2Fbeer-consumption-predictor/lists"}