In this problem, we will find numerical and graphical summaries of the Titanic dataset using R. The dataset consists of information on all the passengers of the ill-fated trans Atlantic ship Titanic. We are looking at only 3 columns (variables) in the dataset, namely Age, Sex and Survival status of the passengers. The dataset "titanic asRData" is (.RData is a convenient R data format) available in the homework folder on Carmen. Load the file using the command 1. load("titanic_as.RData") Note, if you are not in the same directly as the .RData file then you need to put the filepath in front of titanic_as.RData. Once you load the data you should see a data.frame object with the name "titanic_as". The data.frame has 3 columns/variables, Age, Sex and Survived. In the variable "Sex", 0 indicates female and 1 indicates male. In the variable "Survived", 0 indicates did not survive and 1 indicates survived. Note that the data does not contain information on all the passengers and may not match the version of the same dataset available elsewhere. Use only this dataset to answer the following questions. You should report all R code used to obtain the answers (at the end of your homework as a script). Do NOT print the data file a) b) What fraction of people survived the crash? Report the summary statistics for the variable Age. Your summary statistics should at least contain the mean, median and standard deviation Report the summary statistics for the variable Age only for those passengers who survived the crash (i.e., whose value in the Survived column is 1) Plot the histogram for the variable Sex. Then, plot the histogram for the same variable, but only for people who survived What comments can you make about the proportions of male-female passengers in the entire ship, and among those who survived, on the basis of the two histograms you generated in part (d)? c) d) e)

Answers

Answer 1

a) The fraction of people who survived the crash is 38.38%. The code used to find this is:```{r}load("titanic_as.RData")mean(titanic_as$Survived)```

b) The summary statistics for the variable Age are:```{r}summary(titanic_as$Age)```The mean age is 30.19 years, the median age is 27 years and the standard deviation is 14.59 years.

c) The summary statistics for the variable Age only for those passengers who survived the crash are:```{r}summary(titanic_as$Age[titanic_as$Survived == 1])```

The mean age of those who survived is 28.34 years, the median age is 28 years and the standard deviation is 15.01 years.

d) Histogram for the variable Sex:```{r}hist(titanic_as$Sex, main = "Histogram of Sex", xlab = "Sex", ylab = "Frequency", col = "purple", border = "white")``` Histogram for the variable Sex, but only for those who survived: ```{r}hist(titanic_as$Sex[titanic_as$Survived == 1], main = "Histogram of Sex for those who survived", xlab = "Sex", ylab = "Frequency", col = "purple", border = "white")```

e) In the entire ship, the proportion of males is greater than the proportion of females. However, among those who survived, the proportion of females is higher than the proportion of males. This can be seen from the two histograms.

To Know more about standard deviation visit:

https://brainly.com/question/29115611

#SPJ11


Related Questions

Can you help me find the combination to this problem

Can you help me find the combination to this problem

Answers

2,2,2,2 no joke. If you would like me to explain let me know

Suppose that A and B are points on the number line.
If =AB11 and B lies at 9, where could A be located?

Answers

Answer: A=-2

Step-by-step explanation:

AB=11

B=9

B-11=A

9-11=A

A=-2

very fast
Show, by induction, that \( T(n)=10 n^{2}-3 n \quad \) if \( n=1 \)

Answers

Given that \(\(T(n)\) = \(10n^2-3n\)\) if (\(\(n=1\)\)), you have to prove it by induction. So, we have proved it by induction that  \($$\(T(n)=10n^2-3n\)$$\)  if ( n= 1). The given statement is true for all positive integers n

Let's do it below: The base case (n=1) is given as follows: \(T(1)\) =\(10\cdot 1^2-3\cdot 1\\&\)=\(7\end{aligned}$$\). This implies that \(\(T(1)\)\) holds true for the base case.

Now, let's assume that \(\(T(k)=10k^2-3k\)\) holds true for some arbitrary \(\(k\geq 1\).\)

Thus, for n=k+1, T(k+1) = \(10(k+1)^2-3(k+1)\\&\) = \(10(k^2+2k+1)-3k-3\\&\)=\(10k^2+20k+7k+7\\&\) = \(10k^2-3k+20k+7k+7\\&\) = \(T(k)+23k+7\\&\) = \((10k^2-3k)+23k+7\\&\) =  \(10(k+1)^2-3(k+1)\).

Therefore, we have proved that the statement holds true for n=k+1 as well. Hence, we have proved it by induction that  \($$\(T(n)=10n^2-3n\)$$\)  if (n=1). Therefore, the given statement is true for all positive integers n.

For more questions on: integers

https://brainly.com/question/17695139

#SPJ8  

Solve the given system
of equations
algebraically.
5x-2y = 4
3x-4y=-6
What is the value of x?

Answers

Answer:

x=2.

y=3.

Step-by-step explanation:

Isolate x to one side to get 3.

Substitute 3 back into equation: 2.

Answer:

x = 2

Step-by-step explanation:

You can calculate x in many ways but let see by Subistutition method.

Substitution method is a method that solve one variable interms of other and substitut in other given equetion.

So lets 1st write the equetion solving x and we will sustitute it.

5x - 2y = 4

5x = 4 + 2y

X = (4+2y)/5

now we will sustitute in x of the other equetion .

3x - 4y = -6

3((4+2y)/5 ) - 4y = -6

(12 +6y) / 5 - 4y = -6 ... we will multiply all eq. by 5

5 ( (12+6y) / 5 - 4y = -6 )

12 + 6y - 20y = -30

12 -14y = -30

-14y = 12 -30

-14y = - 18

-14y/-14= - 18/-14

y = 3 so we get y now x

X = (4-2y)/5

X= (4-2(9/7) )/5

X= 2

x = 2 is the solution of X .

T/F: the sdlc's planning phase yields a general overview of the company and its objectives.

Answers

True, the SDLC's planning phase yields a general overview of the company and its objectives. During this initial stage, the project's purpose, scope, and requirements are defined.

True. The planning phase of the Software Development Life Cycle (SDLC) is crucial in determining the direction and scope of the project. During this phase, the project team analyzes the company's goals, objectives, and requirements. This includes identifying the company's strengths, weaknesses, opportunities, and threats (SWOT analysis). The team also determines the feasibility of the project, identifies potential risks, and creates a plan for project execution. The planning phase yields a general overview of the company and its objectives, providing a solid foundation for the rest of the SDLC stages. It is essential to have a well-defined plan during this phase to ensure that the project aligns with the company's objectives and meets the expectations of the stakeholders.

Visit here to learn more about SDLC:

brainly.com/question/14096725

#SPJ11

It is a straight path that goes on without end in two directions. What is it?
A. line
B. plane
C.ray
D. triangle

Answers

The correct answer is A. line. A line is a straight path that extends infinitely in both directions. It has no endpoints and continues indefinitely.

A line is a basic geometric object that is defined by two points or can be represented by a single equation. It is characterized by its straightness and infinite length, extending in both directions without any boundaries or endpoints. A line can be represented by a straight line segment with two distinct points or by an equation such as y = mx + b in a coordinate system.

On the other hand, a plane refers to a two-dimensional flat surface that extends infinitely in all directions. It is not a straight path but rather a flat, continuous surface. A ray, is a part of a line that has one endpoint and extends infinitely in one direction. It is not a straight path that continues indefinitely in both directions like a line.

A triangle is a closed geometric shape with three sides and three angles. It is not a straight path but rather a closed figure formed by connecting three non-collinear points.Therefore ,the correct answer is A.

learn more about straight line :

https://brainly.com/question/31693341

#SPJ4

What is the value of the expression above when x = 3 and y = 4? You must show all work and calculations to receive full credit. (4 points)

What is the value of the expression above when x = 3 and y = 4? You must show all work and calculations

Answers

what's up?

let's implement these numbers into the problem first.

3•3 + 1/4 4^2

let's solve what we can

9 + 1/4 • 16

9 + 4 = 13

A factory produced a batch of handheld video games, but 4% of the games were found to be defective. If the batch had 250 games in all, how many games in the batch were not defective?
A.
240
B.
150
C.
100
D.
10

Answers

Answer:

A) 240 games are not defective

Step-by-step explanation:

1% of 250 = 2.5

*4                *4

4% of 250 = 10

250 - 10 = 240

240 games are not defective

a/240 games are not defective

A student writes 23 43 = 86. Another student says it’s wrong. Explain why it’s wrong.

Answers

Answer:

because it has no sign if it is plus sign, minus sign etc.

It’s wrong because in an equation there must be signs that make it an equation. For example 2+2=4 is an equation cause it has the correct signs and numbers but 2 2=4 is wrong because even though we can predict that it would be adding we don’t really know if it could be used in other ways

if 4g-2g = 30 what does g symbol

Answers

If you are asking for the value of g, it is as follows.

4g-2g=30

2g=30

g=15

Therefore, the g=15.

Answer:

15

Step-by-step explanation:

4g-2g = 30

2g = 30

g = 15

PLS HELP, WILL GIVE BRAINLIEST AND POINTSSSSSS
i'm rlly confused on this, I think maybe it's .D???
Pls someone answer and explain!!!
and no links, please and thankyou

PLS HELP, WILL GIVE BRAINLIEST AND POINTSSSSSSi'm rlly confused on this, I think maybe it's .D???Pls

Answers

Answer:

i think your right - it might me d cause woudn't the gravity and the surface cancel out and the force would make it move because there is no opposite force i donkt know tho

pode me ajudar com isso ?​

pode me ajudar com isso ?

Answers

Answer:

a) -5

b) +-3

c) -2

Step-by-step explanation:

a

-5*-5*-5 = -125

b

3*3*3*3 = 81

-3 * -3 * -3 * -3 = +81

c

-2*-2*-2*-2*-2 = -32

5(14 – 39 ÷ 3) + 4 •

Answers

Answer:

9

Step-by-step explanation:

Answer:9

Step-by-step explanation:

Which is true about all obtuse triangles?

Which is true about all obtuse triangles?

Answers

try D as obtuse is over 90 degrees and you can’t have more than one angle equalling to 90

Solve for k, the constant of variation, in an inverse variation problem, where x=3.3 and y=24.

Answers

Answer:

Is it like partly constant and partly varies or inverse variation

difference between invoice and proforma invoice

Answers

Answer:

An invoice is a commercial instrument that states the total amount due.

The proforma invoice is a declaration by the seller to provide products and services on a specified date and time.

Step-by-step explanation:

May I have Brainliest please? My next rank will be the highest one: A GENIUS! Please help me on this journey to become top of the ranks! I would really appreciate it, and it would make my day! Thank you so much, and have a wonderful rest of your day!

a 25 foot ladder is placed against a vertical wall of a building. the foot of the ladder is 7 feet from the base of the building. if the top of the ladder slips 4 feet, then the foot of the ladder will slide how many feet? (

Answers

The foot of the ladder will slide by 8 feet.

The ladder will form a right angled triangle -

hypotenuse² = base² + perpendicular²

We have hypotenuse as 25 feet, base as 7 feet and we will find perpendicular.

P² = 25² - 7²

P² = 625 - 49

P² = 576

P = ✓576

P = 24 foot

After slipping, the perpendicular will decrease by 4 feet

New vertical height = 24 - 4

New vertical height = 20 feet

B² = 25² - 20²

B² = 625 - 400

B² = 225

B = ✓225

B = 15 foot

Slided distance = 15 - 7

Slided distance = 8 feet

Thus, ladder will be 15 foot away now and 8 feet away from older distance.

Learn more about perpendicular -:

https://brainly.com/question/1091880

#SPJ4

Question Content Area
Net Present Value
A project has estimated annual net cash flows of $15,000 for ten
years and is estimated to cost $47,500. Assume a minimum acceptable
rate of return of 20%. Use

Answers

The required rate of return (or minimum acceptable rate of return) is 20 percent. If the net cash flows are $15,000 per year for ten years, the total cash flow is $150,000. The project's cost is $47,500. We can now apply the net present value formula to determine whether or not the project is feasible.

Net Present Value (NPV) = Cash flow / (1 + r)^n - Cost Where, r is the discount rate, n is the number of years, and Cost is the initial outlay.

Net Present Value = 150000 / (1 + 0.20)^10 - 47500

Net Present Value = $67,482.22

Since the NPV is positive, the project is feasible. When calculating net present value, it's important to remember that a positive NPV implies that the project is expected to generate a return that exceeds the cost of capital, whereas a negative NPV indicates that the project is expected to generate a return that is less than the cost of capital, and as a result, it should be avoided.

Know more about NPV here:

https://brainly.com/question/32720837

#SPJ11

i don't understand. please help​

i don't understand. please help

Answers

Answer: 5m

Step-by-step explanation:

The Initial water level means that level amount when the time equal to 0hrs, which is 5m.

The initial water meter means that level amount when the time equals 0hrs which equals 5m

31
please!
25-35. Double integrals Evaluate each double integral over the region R by converting it to an iterated integral. 25. ff (x (x + 2y) dA; R = {(x, y): 0 ≤ x ≤ 3, 1 ≤ y ≤ 4} R 26. f (x² + xy) d

Answers

To evaluate the double integrals over the given regions, we can convert them into iterated integrals and then evaluate them step by step.

25. The double integral of f(x) = x(x + 2y) over the region R = {(x, y): 0 ≤ x ≤ 3, 1 ≤ y ≤ 4} can be expressed as:

∬R x(x + 2y) dA

To evaluate this integral, we can first integrate with respect to x and then with respect to y. The limits of integration for x are 0 to 3, and for y are 1 to 4. Therefore, the iterated integral becomes:

∫[1,4] ∫[0,3] x(x + 2y) dx dy

26. The double integral of f(x) = x² + xy can be evaluated in a similar manner. However, the given region R is not specified, so we cannot provide the specific limits of integration without knowing the bounds of R. We need to know the domain over which the double integral is taken in order to convert it into an iterated integral and evaluate it.

In summary, to evaluate a double integral, we convert it into an iterated integral by integrating with respect to one variable at a time while considering the limits of integration. The specific limits depend on the given region R, which determines the bounds of integration.

To learn more about double integral : brainly.com/question/27360126

#SPJ11

a room is 15.75 square yards and the carpet costs $15 per square yard. how much will it cost to carpet the room

Answers

Answer:

236.25

Step-by-step explanation:

15.75 sq yards * 15 dollars per sq yards = 236.25

You multiply the amount of square yards with the amount each costs to get your answer.

Hope this helps!

pleeease help will give brainliest

pleeease help will give brainliest

Answers

Answer:

2x,5x

Step-by-step explanation:

thats right I am not smart

Answer:

(x,y) = ( -6,8)

Step-by-step explanation:

waiting for brainlist

In ΔEFG, g = 5. 2 cm, e = 5. 1 cm and ∠F=42°. Find the area of ΔEFG, to the nearest 10th of a square centimeter

Answers

The area of ΔEFG is approximately 6.7 square centimeters.

To find the area of ΔEFG with given sides g = 5.2 cm, e = 5.1 cm, and ∠F = 42°, you can use the formula for the area of a triangle when two sides and the included angle are known. This formula is:

Area = (1/2)ab * sin(C)

In this case, a = g, b = e, and C = ∠F. Plug in the values:

Area = (1/2)(5.2 cm)(5.1 cm) * sin(42°)

Area ≈ 6.675 square centimeters

So, the area of ΔEFG is approximately 6.7 square centimeters to the nearest 10th of a square centimeter.

Learn more about area here: https://brainly.com/question/28470545

#SPJ11

The admission fee at the county fair is $1.25 for children and $4.00 for adults. So far, the admissions booth has collected $30 total. Select ALL correct possibilities that could meet the constraints of this situation.

NEEDS WORK SHOWN PLS

The admission fee at the county fair is $1.25 for children and $4.00 for adults. So far, the admissions

Answers

Answer:

Second and Third

Step-by-step explanation:

Simple math.

4*1.25=5 and 5*4=20 20+5=25 Wrong

8*1.25=10 and 5*4=20 20+10=30 Right

24*1.25=30 right

5*1.25=6.25 and 8*4=32 Wrong

it is 24 children , 7.5 adult

30/1.25 and 30/4.00

You are considering purchasing a consol that promises annual payments of $4. a. If the current interest rate is 3 percent, what is the price of the consol? Instructions: Round your answer to the nearest penny (2 decimal places). The price of the consol is $ b. You are concerned that the interest rate may rise to 4 percent. Compute the percentage change in the price of the consol and the percentage change in the interest rate. Compare them. Instructions: Round your answer for dollar amounts to the nearest penny (2 decimal places ) and answers for percentages to the nearest tenth (1 decimal place) The new price of the consol would be $ The price of the consol falls by 7% and the interest rises by 7% c. Your investment horizon is one year. You purchase the consol when the interest rate is 5 percent and sell it a year later, following a rise in the interest rate to 6 percent. What is your holding period return? Instructions: Round your answer to the nearest tenth (1 decimal place) Your holding period return is %

Answers

a. The price of the consol is approximately $133.33.

b. The new price of the consol would be $100. The price of the consol falls by 24.99% and the interest rate rises by 1%.

c. Your holding period return is approximately -49.99%.

a. The price of the consol can be calculated using the formula for the present value of a perpetuity:

Price = Annual Payment / Interest Rate

In this case, the annual payment is $4 and the interest rate is 3%. Substituting these values into the formula:

Price = $4 / 0.03 ≈ $133.33

Therefore, the price of the consol is approximately $133.33.

b. To calculate the new price of the consol if the interest rate rises to 4%, we use the same formula:

New Price = Annual Payment / New Interest Rate

Substituting the values, we get:

New Price = $4 / 0.04 = $100

The percentage change in the price of the consol can be calculated using the formula:

Percentage Change = (New Price - Old Price) / Old Price * 100

Substituting the values, we have:

Percentage Change in Price = ($100 - $133.33) / $133.33 * 100 ≈ -24.99%

The percentage change in the interest rate is simply the difference between the old and new interest rates:

Percentage Change in Interest Rate = (4% - 3%) = 1%

Comparing the two percentages, we can see that the price of the consol falls by approximately 24.99%, while the interest rate rises by 1%.

c. The holding period return can be calculated using the formula:

Holding Period Return = (Ending Value - Initial Value) / Initial Value * 100

The initial value is the purchase price of the consol, which is $133.33, and the ending value is the price of the consol after one year with an interest rate of 6%. Using the formula for the present value of a perpetuity, we can calculate the ending value:

Ending Value = Annual Payment / Interest Rate = $4 / 0.06 = $66.67

Substituting the values into the holding period return formula:

Holding Period Return = ($66.67 - $133.33) / $133.33 * 100 ≈ -49.99%

Therefore, the holding period return is approximately -49.99%.

Learn more about holding period

brainly.com/question/32568151

#SPJ11

Jim is trying to solve the system of equations. He begins by multiplying equation (1) by d and equation (2) by a. Before he can continue, his friend angela comes by and says, "no, you should have multiplied equation (1) by e and equation (2) by b. You're going to get the wrong answer. " is angela right? why or why not?.

Answers

It depends on the values of a,b,d and e in the equations , different values may lead to different answers.

What is linear equation ?

A linear equation is an equation in which the highest power of the variable is 1. Linear equations can be written in the form of y = mx + b, where m is the slope of the equation, x is the variable, and b is the y-intercept, the point where the line crosses the y-axis. These equations are called linear because they describe a straight line when graphed.

It depends on the specific equations and the values of a, b, d and e in the system of equations. Multiplying both sides of an equation by a non-zero constant does not change the solution set of the equation.

However, if Jim wants to use the method of elimination, which is multiplying one equation by a constant and adding or subtracting it from the other equation, then it is important to ensure that the coefficients of one variable in the two equations are opposite in sign after the multiplication. This will enable him to eliminate one variable and find the value of the other variable.

It depends on the values of a,b,d and e in the equations , different values may lead to different answers.

To learn more about linear equation visit : brainly.com/question/11897796

#SPJ4

1. sec x-tanx sinx = 1/sec x2. 1+cosx/sinx = csc x Cot x

Answers

Both of the given equations have no solution.

1. sec x-tanx sinx = 1/sec x

The left-hand side of the equation can be simplified by using the identity that sec(x) = 1/cos(x) and tan(x) = sin(x)/cos(x). So,

sec x - tan x sin x = 1/cos x - sin x/cos x sin x = 1/cos x - sin^2 x/cos x = 1/cos x - (1-cos^2 x)/cos x = 1/cos x - (1/cos x) = 1/cos x - 1/cos x = 0.

On the right-hand side, sec x = 1/cos x, so 1/sec x = cos x. Hence,

0 = cos x

This equation has no solution, which means that the original equation sec x - tan x sin x = 1/sec x has no solution.

2. 1 +cosx/sinx = csc x Cot x

We can simplify the left-hand side of the equation by using the identity that csc(x) = 1/sin(x) and cot(x) = cos(x)/sin(x). So,

1 + cos x/sin x = 1/sin x * cos x/sin x = cot x.

Hence,

1 + cot x = cot x

This equation has no solution, which means that the original equation 1 +cosx/sinx = csc x Cot x has no solution.

To learn more about trigonometry

Visit; brainly.com/question/29140174

#SPJ4

I need this answer hurry please

I need this answer hurry please

Answers

Answer:

21 ft²

Step-by-step explanation:

3*5 + 2*3 = 21

Happy Paws charges $19.00 plus $1.50 per hour to keep a dog during the day. Woof Watchers charges $11.00 plus $2.75 per hour. Complete the equation and solve it to find for how many hours the total cost of the services is equal. Use the variable h to represent the number of hours.
help???

Answers

Answer:

$19.00 plus $2.50 = $21.50.

$14.00 plus $3.75 = $17.75

add $3.75 to $17.75 once to get 21.50

2 hours at Woof Watchers is the same as 1 hour at Happy Paws. <Hope that helped>

Step-by-step explanation:

Tom buys a bag of 11 tangerines for $2.86. Find the unit price in dollars per tangerine. If necessary, round your answer to the nearest cent.

Answers

$2.86/11 oranges
= $0.26/orange
Other Questions
The Head in a jazz piece is the chorus played at the beginning of a song and the Tail is the chorus played at the end of a song. True False 'The best way to manage population growth is by educating girls'. Do you agree or disagree with this statement? Explain your answer.Please be quick Essential Question: Compare and contrast the structure and function of the major organelles found in plant and animal cells. What is the slope of the line created by this equation? Found your answer out to two decimal places.10x+2y=3 describe how modeling the evolution of the fully developed eye can be seen as an overall model of the process of evolution by natural selection. question 2 options: prometheus acted out of purely selfish motives and to ingratiate himself with zeus. T/F ? What has been the best method for you to learn mathematics? 1. the top of the new rectangular big gig thingamajig is 80 inches long and 62 inches wide. what is the top's perimeter? Which of the following would be an example of a primary reinforcer?A. MoneyB. PraiseC. FoodD. A trophy (03.02 LC)How is customer service defined? (6 points)A.Aid provided to the elderly by neighborsB.Assistance provided by a company to people who buy or use its products or servicesC.Help given to students by classmatesD.Support given to employees by managers and supervisors THE IMPORTANCE OF NETIQUETTE IN ONLINE COMMUNICATION The radius of a cylindrical construction pipe is 2.5 ft. If the pipe is 20 ft long, what is its volume? Required: You are the accountant of ABC Lid. You fiebur. (including adjusting entries) for the transactions listed below. ended in question is 31 Dec 2021. Ensure that you enter the account names for the molecule below contains both an aldehyde and a ketone functional group. select only the carbonyl carbon atom of the aldehyde functional group. highlight the appropriate atom by clicking on it. penelope is being sued by her old employer over a breach of contract. the plaintiff sends penelope a list of written questions that she is to answer under oath. these are known as . The naacp's activities were considered _______ in the state of alabama. gaging Structure This student example uses less engaging sentence structure. What could be improved? Check all that apply. It could vary the word An aeroplane is flying at a height of 200m. Its angle of elevation to the observer on the ground os 23. Calculate the distance of the aeroplane from the observer Add. 2/3 + 1/4 ............................... 3. All of the following are common results of an increase in consumers' goodwill toward a brand EXCEPTIncreased loyaltyIncreased referralsO Decreased customer complaintsO Decreased advertising costs