1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Stolb23 [73]
3 years ago
5

Suppose we would like to predict the duration of an eruption of the Old Faithful geyser in Yellowstone National Park based on th

e waiting time before an eruption. Fit a simple linear model in R that accomplishes this task. Store the results in a variable called faithful_model. Output the result of calling summary() on faithful_model.
Engineering
1 answer:
liq [111]3 years ago
6 0

Answer:

head(faithful)

faithful_model<-lm(eruptions~waiting,data=faithful)

summary(faithful_model)

Explanation:

You might be interested in
If a construction company is considering a new type of material to use in their construction, which factors would they
Amanda [17]

I would honestly select every one of the given options. Gor a company evaluating this new material it would be very valuable to hit each of these factors.

4 0
3 years ago
The rate of flow through an ideal clarifier is 8000m3 /d, the detention time is 1h and the depth is 3m. If a full-length movable
Fittoniya [83]

Answer:

a) 35%

b) yes it can be improved by moving the tray near the top

   Tray should be located ( 1 to 2 meters below surface )

   max removal efficiency ≈ 70%

c) The maximum removal will drop as the particle settling velocity = 0.5 m/h

Explanation:

Given data:

flow rate = 8000 m^3/d

Detention time = 1h

depth = 3m

Full length movable horizontal tray :  1m below surface

<u>a) Determine percent removal of particles having a settling velocity of 1m/h</u>

velocity of critical sized particle to be removed = Depth / Detention time

= 3 / 1 = 3m/h

The percent removal of particles having a settling velocity of 1m/h ≈ 35%

<u>b) Determine if  the removal efficiency of the clarifier can be improved by moving the tray, the location of the tray  and the maximum removal efficiency</u>

The tray should be located near the top of the tray ( i.e. 1 to 2 meters below surface ) because here the removal efficiency above the tray will be 100% but since the tank is quite small hence the

Total Maximum removal efficiency

=  percent removal_{above} + percent removal_{below}

= ( d_{a},v_{p} ) . \frac{d_{a} }{depth}  + ( d_{a},v_{p} ) . \frac{depth - d_{a} }{depth}  = 100

hence max removal efficiency ≈ 70%

<u>c) what is the effect of moving the tray would be if the particle settling velocity were equal to 0.5m/h?</u>

The maximum removal will drop as the particle settling velocity = 0.5 m/h

7 0
3 years ago
One who waits too long to complain has indicated satisfaction with the agreement despite the initial lack of true consent is the
katovenus [111]

Answer: Doctrine of ratification

Explanation:Doctrine of ratification tries to show that a person who is taking so much a time to complain has indicated that he agrees even if he doesn't without a written consent. This is to eliminate undue waste of time in business, legal an other proceedings requiring consent of both parties.

Doctrine of ratification can either be implied or expressed

Implied ratification is the type of ratification where a persons actions or body language can be seen that he has accepted.

Express ratification is a ratification where a person intentionally accept by showing either through written or verbally.

7 0
3 years ago
(40 points) Program the following sorting algorithms: InsertionSort, MergeSort, and QuickSort. There are 9 test les uploaded for
babunello [35]

Answer:

Explanation:

MERGE SORT

#include<stdlib.h>

#include<stdio.h>

#include<string.h>

void merge(int arr[], int l, int m, int r)

{

int i, j, k;

int n1 = m - l + 1;

int n2 = r - m;

 

int L[n1], R[n2];

for (i = 0; i < n1; i++)

L[i] = arr[l + i];

for (j = 0; j < n2; j++)

R[j] = arr[m + 1+ j];

i = 0;

j = 0;

k = l;

while (i < n1 && j < n2)

{

if (L[i] <= R[j])

{

arr[k] = L[i];

i++;

}

else

{

arr[k] = R[j];

j++;

}

k++;

}

while (i < n1)

{

arr[k] = L[i];

i++;

k++;

}

while (j < n2)

{

arr[k] = R[j];

j++;

k++;

}

}

void mergeSort(int arr[], int l, int r)

{

if (l < r)

{

int m = l+(r-l)/2;

mergeSort(arr, l, m);

mergeSort(arr, m+1, r);

merge(arr, l, m, r);

}

}

void printArray(int A[], int size)

{

int i;

for (i=0; i < size; i++)

printf("%d ", A[i]);

printf("\n");

}

int main()

{

int arr[1000] = {0};

int arr_size =0;

int data;

char file1[20];

strcpy(file1,"data.txt");

FILE *fp;

fp = fopen(file1,"r+");

if (fp == NULL) // if file not opened return error

{

perror("Unable to open file");

return -1;

}

else

{

fscanf (fp, "%d", &data);    

arr[arr_size]=data;

arr_size++;

while (!feof (fp))

{  

fscanf (fp, "%d", &data);  

arr[arr_size]=data;

arr_size++;    

}

}

printf("Given array is \n");

printArray(arr, arr_size);

mergeSort(arr, 0, arr_size - 1);

printf("\nSorted array Using MERGE SORT is \n");

printArray(arr, arr_size);

return 0;

}

3 0
3 years ago
What is HEX? <br><br> Need help in Computer Programming
ser-zykov [4K]

Hexadecimal is a base16 way of representing numerical values in a way a human can remember, it is not easier for the computer to read it but it is for a human. Hex can have both letters and numbers, as soon as the binary value gets above 9 it is replaced with a letter. Numbers are used from 0 to 9 and letters are used between binary values 10 and 16, hex does not go above 16 instead it just simply gets another digit.

For example, if there is a hex code of D9 then in decimal, it represents the number 139.

Hope this helps!

5 0
3 years ago
Other questions:
  • Clarisse is an architect. What skills will she apply to integrate her visualized solutions with other aspects such as business a
    12·1 answer
  • Two plates are separated by a 1/4 in space. The lower plate is stationary; the upper plate moves at 10 ft/s. Oil (viscosity of 2
    10·1 answer
  • Technician A says that gear lube and bearing grease cannot be substituted due to the different housing and seal designs each lub
    5·1 answer
  • At 120 KTAS, what is a good angle of bank to use to generate a level standard rate turn for instrument flight conditions
    12·1 answer
  • The proper definition of a functional unit is a critical step in conducting a life cycle assessment. State a proper functional u
    11·1 answer
  • -Why is it said that using faulty PPE could be just as dangerous as using no PPE at all?
    6·2 answers
  • 63Ni decays by a first-order process via the emission of a beta particle. The 63Ni isotope has a half-life of 100. years. How lo
    13·1 answer
  • Strands of materials A and B are placed under a tensile force of 10 Newtons. Material A deforms more than Material B.
    5·2 answers
  • One year, Boulder receives an unusually high amount of rain during the spring months. How might this event affect the likelihood
    15·1 answer
  • For an installation with a 150-kVA, 3-phase transformer, a 480-volt primary, and a 240-volt secondary, calculate the maximum sta
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!