Question: MATLAB Final Lab - Project Part B Objectives ! Integrate more of what you have learned this semester in the CS 1 2 2 lab
MATLAB Final Lab Project Part B Objectives Integrate more of what you have learned this semester in the CS lab and CS lecture. Assignment In this week's, you will be tasked with analyzing the results of other dice that were tested for fairness. You will not be provided with a file template this time, but we do expect your solution to meet the requirements provided below. About As a quick reminder, you and your friends decided to test all of your dice for fairness. Last week you did some simulations with random numbers to determine how many times you need to roll a die to give it a fair test. This week, your friends are providing you their own files containing rolls from their dice. Use the framework you built last week, writing new functions if needed, to evaluate the dice represented by the files provided. For each file provided, write scripts and functions to answer the following questions: Was the die rolled enough times to give it a fair test? Is the die fair? Use the same criteria as last time: a fair die should have less than a difference between the most likely face and the least likely face. Additionally, create at least one plot during your analysis. For example, you could make a bar chart showing the relative occurrence of each face on the die. The Files emirEightSided.xls Emir's sided die, in MS Excel format. touTwelveSided.txt Tou's sided die, in text file format. xavier.csv Xavier is an over achiever, as he rolled his die LOTS of times, but he also forgot to label the file with the number of sides on his die write your function to figure this out automatically. foundFourSided.mat You happened to find a four sided die on the way to your friend's house yeah cause finding polyhedral dice is a thing? but you don't know anything about this one, so your buddy rolls it and records the rolls while you're all getting ready to do the analysis.Grading Criteria For each die file: Readloaded the data using code not by clicking buttons Found the relative occurrence percent that each face was rolled Determined whether the die was rolled enough times If the die wasn't rolled enough times, displayed a message Tested to see if the difference between the "most likely" face and the "least likely" face was less than and got correct result Displayed a message declaring the die "fair" passed test or "unfair" failed test Labeled results so I know which die is which Used code to determine the number of sides on Xavier's die Included at least one useful plot Deliverables Your project files, zipped Lab folder, containing labm and any other functions you wrote to help solve this problem.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
