An R script developed as a project for the Calcolo della Probabilità Statistica e Matematica (Statistical and Mathematical Probability Calculation) course, part of the Computer Science Bachelor's Degree program at the University of Salerno
Crash Stat was developed to apply key concepts from Statistical and Mathematical Probability Calculation to a real-life scenario: analyzing the number of car crashes in Italy. The script allows for data analysis using the most important statistical indices.
- Absolute frequencies, cumulative absolute frequencies, relative frequencies, and cumulative relative frequencies
- Histogram and box plot
- Mean, median, and mode
- Variance and standard deviation
- Skewness and kurtosis
The data used in the R script was extracted on June 11, 2022, at 01:47 UTC (GMT) from the Istat website
- Clone the repository
git clone https://github.com/raffaeleav/crash-stat.git
- Switch to the project directory
cd crash-stat
- Run the script in RStudio
open -a Rstudio crash-stat.R
- Alternatively, you can run the script using Rscript (the diagrams will be saved in the Rplots.pdf file)
Rscript crash-stat.R
- R - used for calculating statistical indices and visualizing the data through diagrams