Exam 2 math 230
Problem
Part 1
I had to remind myself this is dealing with probability and the events after learning about transitive graphs
ok so we see we are given F and X and the question is looking to see the correlation.
in our case conditional probability.
our equation is showing
we want to find
we are given
P(X)
which is equal to
P(X∣F)P(F)+P(X∣F^c)P(F^c) the c makes it not true
we can rewrite the first part P(X∣F)P(F) as P(X∩F)
this shows x intersecting the f event and both F and X are true or did happen
the other formula is showing x happens and F does not happen. we know this because the line above the F is expressed with the ^c
Therom
Part
P(F∣X)=P(X∣F)P(F)/P(X)
This formula is just another way of using Bayes' Theorem because it flips the odds of ( F ) given ( X ) using the chance of ( X ) given ( F )
Problem
Part A
wants to know how many users log on everyday.
The hint says to use the equation from Part
P(X)= P(X∣F)P(F) + P(X|F^c)P(F^c)
we are given values such as
P(F) =
P(F^c) =
P(X|F) =
P(X|F^c) =
we plug in these vaules into our formula
So, P(X) = (
part B
the probability a user logging on every day is from inside can be found using Bayes' Theorem, and we already have P(X) =
P(F^c|X) =
[P(X|F^c) × P(F^c)] / P(X) = ?
So,
[
or in other words
Part 2
A
is a Hasse Diagram
when analyzing the lower leg and its elements, we see that if we go up the path to the higher element or vertex value, we can divide it evenly with the previous vertex we just left from.
is a Hasse Diagram
when analyzing the lower leg and its elements, we see that if we go up the path to the higher element or vertex value, we can divide it evenly with the previous vertex we just left from.
is NOT a Hasse Diagram
when analyzing the lower leg and its elements, we see that if we go up the path to the higher element or vertex value, we cannot divide it evenly with the previous vertex we just left from , as the case with leaving from vertex
is NOT a Hasse diagram
when analyzing the lower leg and its elements, we see that if we go up the path to the higher element or vertex value, we cannot divide it evenly with the previous vertex we just left from , as the case with leaving from vertex
Problem
its important to understand we are dealing with discrete mathmatiecs and this is asking for an equalvlance relation
we need to show it is reflexive, symmetric, and transitive.
Reflexive: A car is related to itself if it was made in the same year as itself. Since every car was made in its own year, ( R ) is reflexive.
Symmetric: If car ( A ) is related to car ( B ) (both made in the same year), then ( B ) is related to ( A ) (also made in the same year). Thus, ( R ) is symmetric.
Transitive: If car ( A ) is related to car ( B ) (both made in year ( Y )) and ( B ) is related to car ( C ) (also made in year ( Y )), then ( A ) is related to ( C ) (both made in year ( Y )). Hence, ( R ) is transitive.
Since ( R ) satisfies all three properties, it is an equivalence relation.
A partition splits a set into non-overlapping groups, where each item belongs to one group only
so in our case we have cars and these cars can be grouped by the year they were made. the partition splits the cars into separate groups based on their manufacturing year.
Problem
this is an Euler Circuit, because it has an even amount of connections on the vertex, we can start at one vertext and go along the paths without repeating and end up back to the orginal vertext.
This is an Eueler Trail, because there is two odd vertexts, we can see this at vertex B and F
i took the trail e,d,c,a,d,f,a,b,f,c,b
all though i did not end up back at e , i used each edge once satisfying this is an eueler trail.
i would say this is not an euler circuit or trial
this could be an euler circuler but the vertext A is by itself and it needs to be connected to our graph
this couldnt be a euler trail because vertex A doesnt have an edge and itsnt connected as well.
i would say this is not an euler circuit or trail
because there is way too many odd vertices, i tried to test out if it was possible because i thought i saw two odd vertecies but then i realized it wasnt possible when i recounted the graph and saw there was more than
Problem
drawing a prims algorithm is straightforward. if we alreayd used a vertex point we do not need to re include it unless it is pair with another new vertext and we must keep in mind we need to be conservative to not allow a higher vaule weight we want the minium we can have,
we are told to start at vertex A and from here to complete the prims.
ok but its important to note we start off chosing the lowest vaule weight on the edge to travel to new vertext. so as we look to travel from vertex A we see we have two options, edge AB weight
now that we are on vertex C we have two options weight
this edge has a weight of
we have connected all vertexts execpt vertex E. so we look to close the prims on vertex E. we have edge CE weight
so the primms algorithm look like this
AC weight
Problem
We just recently learned about reoccurrence relationships and i think the Fibonacci one is pretty useful as well.
ok so for our reoccurrence relationship it says in zylabs we can figure them out by finding two inital vaules and forming a sequence that satifises both inital vaules.
lets test this out we know we have
Pn=
we start denote Pn as the vaule we start with we denote Pn
if we use
as the case we head to the second month and
the total fish is