Posts

Showing posts from September, 2024

week 3

  A) p(a) 30/90 or 1/3           P(b)   30/90 or 1/3 P(a or b) 6/9 – 1/9 so 5/9 Not the same B) answer is True                 because  P(A1|B) = .11  Chance of rain is very low. > p=dbinom(0,size=10,prob=.2);p [1] 0.1073742 Screenshots were not working properly for some reason. so I just copied the code results
Image
  This week was doing simple calculations of data sets. The code is easy to read using commands programmed into R. This formatting makes it very easy to check standard deviations and see where to set up a graph or T-table with the information provided. Set 2 had larger numbers so its mean median is much higher then set 1. Their Standard deviations are the same however so the graph for the two would look nearly identical if shifted.
Image
  I had a bit of trouble actually getting the code as written in the assignment to run proper. I did a quick edit and did this to get a value to make sure it was working as intended. Copying the code from the module instructions I get this as a result after several attempts to run.  It looks like the program when it executes myMean is always supposed to do the calculation sum/length for the values in assignment2 but attempting to call myMean after doesn't result in anything either. I come from a coding background in Python and Java, two other object oriented programming languages. I could be interpreting or running it wrong due to prior bias/knowledge.