3-2 Module Three Lab
docx
keyboard_arrow_up
School
Southern New Hampshire University *
*We aren’t endorsed by this school
Course
520
Subject
Electrical Engineering
Date
Feb 20, 2024
Type
docx
Pages
3
Uploaded by DeanRiver5511
DAT 520 Module Three Lab Worksheet
Decision Trees in Power BI
Overview
In this lab, you will construct a decision tree using a bottom-up methodology in Power BI. You will break down its structure, interpret its results, and articulate a response to the proposed research question.
Scenario
In the spring of 1912, one of the most infamous maritime catastrophes occurred. The RMS Titanic, en route to New York City on its maiden voyage, struck an iceberg in the Atlantic Ocean and sank, resulting in the death of over 1500 individuals. This incident that occurred over 100 years ago is still considered the deadliest maritime accident to occur outside of warfare.
This tragedy has captivated the minds of people worldwide and even sparked multi-million-dollar movies to tell its tale. This fascination has led many to ask, "Would I have survived the sinking of the Titanic?" Leveraging decision modeling within Power BI, we hope to understand more about what would
have increased your odds of survival on that fateful day in the North Atlantic. Instructions
Construct a decision tree leveraging the provided data set for Module 3, which provides insight into key variables that influenced the survivability of those who embarked on the Titanic in 1912. Effectively describe the model’s structure (nodes, branches, etc.), answer the questions posed below, and provide screenshots when prompted. Please note: This assignment will be submitted and graded in Brightspace. uCertify Instructions
1.
Navigate to uCertify lab 5.2.1 Decision Trees in Power BI.
2.
Open Power BI desktop.
3.
Select Get Data and choose Text/CSV.
4.
Navigate to the desktop and select the DAT-520 Data Files
folder.
a.
Open Module 3.
b.
Select the data set Titanic.csv.
c.
Select the titanic
tab.
5.
Select Transform Data.
a.
Delete the columns: PassengerId
, Parch
, Embark
b.
Change the name of the "2urvived" variable to "Survived."
c.
Remove null values from the Age
column.
d.
Transform Fare
to a two-decimal variable.
e.
Close and Apply Changes.
f.
Create new calculated columns leveraging z-scores:
i.
Create a column called z.Age using the following formula: z.Age = (‘titanic’
[Age]
-
average
(‘titanic’ [Age]
))/
STDEV.P
(‘titanic’
[Age]
)
ii.
Create a column called z.Fare using the following formula: z.Fare = (‘titanic’ [Fare]
-
average
(‘titanic’ [Fare]
))/
STDEV.P
(‘titanic’ [Fare]
)
iii.
For Practice, Create a column called z.Sib using the following formula: z.Sib = (‘ titanic’ [SibSp]
-
AVERAGE
(‘titanic’ [SibSp]
))/
STDEV.P
(‘titanic’ [SibSp]
)
6.
Select the Decision Tree
visualization.
a.
Select Get more visuals
from the more options
button.
b.
Sign in with your SNHU credentials if necessary.
c.
Select Decision Tree.
d.
Enable required scripts and programs.
7.
Construct your decision model.
a.
Select Survived
as your target variable
i.
Click the drop-down carrot next to Survived
and select Do not summarize
, as you will use this as a binary predictor.
b.
Select z.Age
and z.Fare
as your input variables (in that order).
c.
Expand the visualization into Focus
mode.
Questions
1.
Provide a screenshot of your existing decision tree.
[Insert screenshot.]
a.
Describe what you are seeing in terms of the model’s breakdown from the root node down through each level. [Insert text.]
b.
What criteria leads you to a 3% survival rate? [Insert text.]
2.
Add the variable "sibsp" (siblings) to the model as an input and provide a screenshot of your new model. [Insert screenshot.]
a.
Does adding this variable improve the model’s root error?
[Insert text.]
b.
Does it add additional complexity to the model? [Insert text.]
c.
What are your initial impressions of this model versus the original model?
[Insert text.]
3.
Add the variable Sex to the model as an input variable.
a.
Does adding this variable improve the model’s root error?
[Insert text.]
b.
Does it add additional complexity to the model? [Insert text.]
c.
What are your initial impressions of this model versus the original model?
[Insert text.]
4.
Filter your visualization so that the model only displays the results for those whose Fares were less than $25. a.
Provide a screenshot of your new model.
[Insert screenshot.]
b.
If you were a female (0 = Male, 1 = Female) and paid less than $13 (hint: use your filters), what were the chances of you surviving during tragedy onboard the Titanic?
[Insert text.]
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
Related Documents
Related Questions
HW Matlab 1) Create a variable fiemp to store a temperature in degrees Fahrenheit (F). Write m-file to convert this to degrees Celsius and store the result in a variable ctemp. The conversion factor is C = (F —32) * 5/9. 2) Write m-file to generate a matrix of random integers of size 100 by 100 their values between 15 to 80. 3) Free fall of objects is given by y =5mgt? where a is the acceleration, v is the velocity, y is the distance, m is the mass of the object, g is the gravitational acceleration. Plot the distance and velocity of the object for 15 seconds after its fall from rest (y = 0). Take m = 0.2 kg.
arrow_forward
Question 1 Digital Electronics and Combinational Logic
la) Analog and Digital Electronics
i. Write either "digital" or "analog" in this to indicate whether the property in that row is
typical of digital electronics or analog electronics. The first row has been completed as an
example.
Property
Difficult, manual circuit design
Continuous valued signals
Tolerant of electrical noise
Circuit state tends to leak
Intolerant of component variations
Digital/Analog
Analog
ii. In older cars the timing of the electrical pulses to the spark plugs was controlled by a
mechanical distributor. This contained a rotating contact that was mechanically linked to the
rotation of the engine. Newer cars use electronic ignition. Electrical sensors detect the position
and speed of the motor and a digital controller sends ignition pulses to the spark plugs.
Briefly describe 2 likely benefits of the digital electronic ignition system over the mechanical
one. An example is given first.
More flexible control: the…
arrow_forward
Please, I do not want a theoretical solution or using artificial intelligence. I want a solution on paper using the mathematical laws of the topic
arrow_forward
2.Discuss two ADCs with circuit diagram and proper equations. List their pros and cons
arrow_forward
do in matlab and paste the code here .
arrow_forward
1. Use K-maps to simplify both in SOP and POS
form,
2. Draw the simplified circuit using AOI
implementation.
3. Determine which is more economical the SoP
or PoS?
For your reference: Chapter-3 mapping (part1).pptx
Show your detailed solutions on a separate yellow
pad. and submit here in Canvas.
(1) F(A,B,C,D) = AC' D' + A'C + ABC + AB'C + A'C'D'
%3D
(2) F (A, B, C, D) = E(0, 6, 8, 13, 14) + d(2,4,10)
(3) F(A,B,C,D) =N(1, 6, 9, 11, 12, 14) + d(0,2,3,10)
(4) F(A,B,C,D,E) = E(0,2,4,6,8,10,16,18,20,24,25,29,30)
+d(9,13,14,22,26,28)
arrow_forward
Imagine a single poorly designed table, r(R). with attributes A. B. C. D. E. F. G. H. I. J. K. L. M.
You've looked over the naughty designer's work and come up with the following logical functional dependencies.
A-> (B. D. F)
B -> (G. H, I)
(A. C) -> (E. J, K)
J. K) -> (L. M)
Choose the correct formation of functional dependencies on r(R).
r(R)
ABCDEFGHIJKL M
r(R)
ABCDEF|GHIJKLM
b)
r(R)
ABCDEFGHIJKLM
r(R)
ABCDEFGHIJKLM
d)
arrow_forward
I need the solution to chapter 10, #19
this is from Matlab a practical introduction to programming and problem solving
arrow_forward
Q1: A sequential circuit has one inputs X and one output (Z) is used to detect the sequence
1011. The output Z=1 when the circuit detect the sequence 1011, otherwise Z =0. Sketch the
stated diagrams of the following specifications:
1. Moor model and the overlap is allowed.
2. Moor model and the overlap is not allowed.
3. Mealy model and the overlap is allowed.
4. Mealy model and the overlap is not allowed.
5. Discuss your results.
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you

EBK ELECTRICAL WIRING RESIDENTIAL
Electrical Engineering
ISBN:9781337516549
Author:Simmons
Publisher:CENGAGE LEARNING - CONSIGNMENT
Related Questions
- HW Matlab 1) Create a variable fiemp to store a temperature in degrees Fahrenheit (F). Write m-file to convert this to degrees Celsius and store the result in a variable ctemp. The conversion factor is C = (F —32) * 5/9. 2) Write m-file to generate a matrix of random integers of size 100 by 100 their values between 15 to 80. 3) Free fall of objects is given by y =5mgt? where a is the acceleration, v is the velocity, y is the distance, m is the mass of the object, g is the gravitational acceleration. Plot the distance and velocity of the object for 15 seconds after its fall from rest (y = 0). Take m = 0.2 kg.arrow_forwardQuestion 1 Digital Electronics and Combinational Logic la) Analog and Digital Electronics i. Write either "digital" or "analog" in this to indicate whether the property in that row is typical of digital electronics or analog electronics. The first row has been completed as an example. Property Difficult, manual circuit design Continuous valued signals Tolerant of electrical noise Circuit state tends to leak Intolerant of component variations Digital/Analog Analog ii. In older cars the timing of the electrical pulses to the spark plugs was controlled by a mechanical distributor. This contained a rotating contact that was mechanically linked to the rotation of the engine. Newer cars use electronic ignition. Electrical sensors detect the position and speed of the motor and a digital controller sends ignition pulses to the spark plugs. Briefly describe 2 likely benefits of the digital electronic ignition system over the mechanical one. An example is given first. More flexible control: the…arrow_forwardPlease, I do not want a theoretical solution or using artificial intelligence. I want a solution on paper using the mathematical laws of the topicarrow_forward
- 2.Discuss two ADCs with circuit diagram and proper equations. List their pros and consarrow_forwarddo in matlab and paste the code here .arrow_forward1. Use K-maps to simplify both in SOP and POS form, 2. Draw the simplified circuit using AOI implementation. 3. Determine which is more economical the SoP or PoS? For your reference: Chapter-3 mapping (part1).pptx Show your detailed solutions on a separate yellow pad. and submit here in Canvas. (1) F(A,B,C,D) = AC' D' + A'C + ABC + AB'C + A'C'D' %3D (2) F (A, B, C, D) = E(0, 6, 8, 13, 14) + d(2,4,10) (3) F(A,B,C,D) =N(1, 6, 9, 11, 12, 14) + d(0,2,3,10) (4) F(A,B,C,D,E) = E(0,2,4,6,8,10,16,18,20,24,25,29,30) +d(9,13,14,22,26,28)arrow_forward
- Imagine a single poorly designed table, r(R). with attributes A. B. C. D. E. F. G. H. I. J. K. L. M. You've looked over the naughty designer's work and come up with the following logical functional dependencies. A-> (B. D. F) B -> (G. H, I) (A. C) -> (E. J, K) J. K) -> (L. M) Choose the correct formation of functional dependencies on r(R). r(R) ABCDEFGHIJKL M r(R) ABCDEF|GHIJKLM b) r(R) ABCDEFGHIJKLM r(R) ABCDEFGHIJKLM d)arrow_forwardI need the solution to chapter 10, #19 this is from Matlab a practical introduction to programming and problem solvingarrow_forwardQ1: A sequential circuit has one inputs X and one output (Z) is used to detect the sequence 1011. The output Z=1 when the circuit detect the sequence 1011, otherwise Z =0. Sketch the stated diagrams of the following specifications: 1. Moor model and the overlap is allowed. 2. Moor model and the overlap is not allowed. 3. Mealy model and the overlap is allowed. 4. Mealy model and the overlap is not allowed. 5. Discuss your results.arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- EBK ELECTRICAL WIRING RESIDENTIALElectrical EngineeringISBN:9781337516549Author:SimmonsPublisher:CENGAGE LEARNING - CONSIGNMENT

EBK ELECTRICAL WIRING RESIDENTIAL
Electrical Engineering
ISBN:9781337516549
Author:Simmons
Publisher:CENGAGE LEARNING - CONSIGNMENT