Project5

.docx

School

Northeastern University *

*We aren’t endorsed by this school

Course

6000

Subject

Computer Science

Date

Jun 10, 2024

Type

docx

Pages

9

Uploaded by CoachElementEmu28

ALY 6000: Introduction To Analytics Module 5 Project Report: Probability and Counting with R INTRODUCTION Module 5 of ALY 6000 gives us an insight into probability and counting. We learn about probability, and counting and how to calculate both using R. In this module we learn what’s a sample space, events and outcomes and how to calculate them. We also learn the different functions the R has to calculate probability of events.
1. Download the data set ball-dataset.csv and read it into your script. Each ball in the dataset is represented by a color (red, blue, green, or yellow) and a label (A, B, C, D, or E). OUTPUT: 2. Create a frequency table as a data.frame or tibble that contains counts for each color of ball (freq_color). OUTPUT: 3. Create a frequency table as a data.frame or tibble that contains counts for each label of ball (freq_label). OUTPUT: 4. Create a bar chart of the ball data set representing the counts of the different colors. OUTPUT:
5. Create a bar chart of the ball data set representing the counts of the different labels. OUTPUT: 6. What is the probability of drawing a green ball (prob6_result)? OUTPUT:
7. What is the probability of drawing a blue or a red ball (prob7_result)? OUTPUT: 8. What is the probability of drawing a ball with a label of A or C (prob8_result)? OUTPUT: 9. What is the probability of drawing a yellow ball with a D (prob9_result)? OUTPUT: 10. What is the probability of drawing a yellow ball or a ball with a D (prob10_result)? OUTPUT: 11. What is the probability of drawing a blue ball followed by a red ball without replacement (prob11_result)? OUTPUT:
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help