0% found this document useful (0 votes)
108 views5 pages

MATH 1280-01 Learning Journal Unit 5

The document contains a learning journal reflecting on a student's weekly activities in their statistics course. Over the course of several weeks, the student reviewed concepts, completed assignments, studied random variables, practiced R coding, and reviewed peers' work. The student encountered some minor challenges with coding but was able to overcome them by debugging their code.

Uploaded by

Julius Owuonda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
108 views5 pages

MATH 1280-01 Learning Journal Unit 5

The document contains a learning journal reflecting on a student's weekly activities in their statistics course. Over the course of several weeks, the student reviewed concepts, completed assignments, studied random variables, practiced R coding, and reviewed peers' work. The student encountered some minor challenges with coding but was able to overcome them by debugging their code.

Uploaded by

Julius Owuonda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

1.

Learning Journal Reflective Comments

I reviewed the Basic R commands that I learned in the previous week and revised
23/2/2022 extensively in preparation for the unit 6 graded quiz. I did not encounter any challenges.
I reviewed the learning objectives for the week and drafted a timetable to facilitate my
  studies for the week.
I completed my discussion post for unit 5 and posted it to the discussion forum. I did not
24/2/2022 encounter any challenges.
  I took an hour-long coding challenge.
I studied binomial, Poisson, and exponential random variables extensively. I reviewed a few
YouTube videos to gain a deeper understanding of them, including how to compute their
25/2/2022 expectations and variances. I did not encounter any challenges.
I went through my peers' posts in the discussion forum, rated the posts of three peers
accordingly, and gave feedback. I then completed my assignment for the week and posted
  it.
I studied the R functions that produce the probabilities of binomial, poisson, and
exponential random variables and their cumulative probabilities. I then undertook a few
programming tasks. I had a few challenges here and there while coding, but I would
ultimately overcome these challenges by identifying the source of errors in my codes and
27/2/2022 correcting them.
I studied the frequency, relative frequency, and summary function in R. I then attempted
28/2/2022 my unit 2 learning journal for the first time.
1/3/2022 I went through the discussion posts again to learn from other peers' posts.
2/3/2022 I completed my peer-assessed assignments and submitted them. 
I completed my Unit 5 learning journal and attempted the self-quizzes several times to
ensure that I prepared well for the graded upcoming quiz. I did not find any challenges in
these tasks

2. Vocabulary and R functions

a) What is an exponential distribution (include an APA citation)?


___________________________
The exponential distribution (also referred to as negative exponential distribution) in
probability theory and statistics is the probability distribution that describes the time
between events in a Poisson point process, i.e. a process whereby events take place
consistently and independently at a persistent average rate (Yakir, 2011).

b) When would you use an exponential distribution? ________________________

Exponential distributions are widely employed in product reliability calculations, or


determining how long a product will survive.

c) What is a binomial distribution (include an APA citation)?_______________________

Binomial distribution refers to the discrete probability distribution of the number of


successes in a sequence of n- independent experiments, each asking a yes–no question,
and each with its own Boolean-valued outcome: success (with probability p) or failure,
with probability q = 1 − p (Yakir, 2011). The probability of getting exactly k successes
in n independent Bernoulli trials is given by the probability mass function:

d) When would you use a binomial distribution? ___________________

The binomial distribution can be used to calculate the chance of achieving a specific number of successes,
such as successful basketball shots, from a given number of trials. To find discrete probabilities, we use
the binomial distribution.
3. 3. Task

Run these commands in R, then use your own words to describe what the resulting
numbers represent.  You can get some information about the functions by using the
help commands in R (such as ?pbinom to get information about the pbinom() command
in R):

a) pbinom(q=5, size=10, prob=1/6)

Using R software:

> pbinom(q=5, size=10, prob=1/6)

[1] 0.9975618

The function pbim() returns the number (value) of the cumulative probability of the binomial
distribution given the variables q = 5m, the number of trials (size=10), and the probability of
each result (prob=1/6). The output (0.9975618) implies that, out of the number of trials, there is
almost a 100% (99.75618%) probability that any number that leads up to 5 will be picked.

b)

n=10
p=.5
x=9
pbinom(x, n, p)

Using R software:

> n=10

> p=.5>
x=9

>pbinom(x, n, p)

[1] 0.9990234

Just like part (a) above, the number 0.9990234 is the cumulative probability of the binomial.
However, there is a bit of modification in that the values of x, n, and p are separately assigned in
this case.

c) punif(5, min=1, max=10) - punif(4, min=1, max=10)

Using R software:

> punif(5, min=1, max=10) - punif(4, min=1, max=10)

[1] 0.1111111

The cumulative density function for a uniform distribution is provided by the function punif(). It
calculates the area to the left of 5 for a uniform distribution with a minimum of 1 and a maximum of 10.
When this command is executed individually, the area to the left that is x=5 and the area to the left that is
x=4 are computed. What happens here is that the area difference between these two numbers, x=5 and
x=4, will eventually supply the area between these two numbers. A brief run in R is shown here:

> punif(5,min=1,max=10)

[1] 0.4444444

> punif(4,min=1,max=10)

[1] 0.333333

As a result of the R output, we've come to the following conclusions: 0.4444444 – 0.3333333 =
0.1111111 punif(5, min=1,max=10) – punif(4,min=1,max=10) = 0.4444444 – 0.3333333 = 0.1111111
punif(5, min=1,max=10)
References

Yakir. B, (2011). Introduction to Statistical Thinking (With R, Without Calculus). Retrieved from
https://my.uopeople.edu/pluginfile.php/1097279/mod_book/chapter/267923/
MATH1280RInstallNotes.pdf

You might also like