Giter Site home page Giter Site logo

amponsem / ghana-electricity Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ashesisdatamining-2015/ghana-electricity

0.0 2.0 0.0 968 KB

This project tends to analyze the generation, consumption, import and export of electricity in Ghana. By Adekunle Tobi Ogundele

R 100.00%

ghana-electricity's Introduction

Ghana-Electricity

This project tends to analyze the generation, consumption, import and export of electricity in Ghana. By Adekunle Tobi Ogundele

Datasets containing electricity information were obtained from the website below; http://www.eia.gov/cfapps/ipdbproject/IEDIndex3.cfm

Data including Electricity import, export, consumption and generation were obtained in (.Xls) format.

Exploratory Data Analysis

The data obtained needed to be cleaned up because they were in Excel format. The following process were taken to clean up the dataset and prepare them for analysis.

  1. Remove empty cells, rows and columns from all Xls formatted documents.
  2. Insert a new cell called "countries" to help identify all countries in the data.
  3. Convert Xls formatted datasets to CSV format.
  4. Remove commas from country name so that CSV does not treat the string as a separate word e.g "Bahamas, The".
  5. Remove all Periods and tabbed spaces.
  6. Wrote a R code to query the CSV file in order to be able to obtain Ghana's electricity information from all the datasets.
  7. Wrote a R code to query the CSV file in order to be able to obtain other West African countries (Nigeria, Benin, Ivory Coast, and Togo) electricity information from all the datasets.

Questions to be answered

  1. How has the generation of electricity over the years met the needs of national consumption?
  2. Does Ghana Import more than export to other countries?
  3. Does Ghana import, export, and consume electricity compared to other West African countries (Nigeria, Benin, Togo, Ivory Coast)?
  4. How can the consumption rate of electricity be predicted for the next (7) years, (2013 - 2020)?

Analysis Programmed

in order to analyse the data, R programming language was used. To compare and constrast import, export, generation and consumption data, Barplots () were used. The most interesting part of this project is the aspect where we would have to forecast or predict electricity consumption rate for the next 7 years To do Forecasting with R programming Language, the "Forecast" package has to be installed, and then the library(forecast) is called on the datasets to generate predictions Three types of forecast were used:

  1. Exponential Model
  2. Time series Model
  3. ARIMA Model

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.