Write the declaration for class D , which is derived from cl…

Write the declaration for class D , which is derived from class B in the former question . The class’s membersshould be:• q , a float . This variable should not be accessible to code outside the class but   should be accessible to member functions in any class derived from class D .• r , a float . This variable should not be accessible to code outside the class, but   should be accessible to member functions in any class derived from class D .• setQ , getQ , setR , and getR . These are the set and get functions for the member   variables q and r . These functions should be accessible to code outside the class.• calc , a public member function that overrides the base class calc function. This   function should return the value of q times r .

Suppose you know that increased screen time leads to less sl…

Suppose you know that increased screen time leads to less sleep. You collect data on exam scores and screen time and fit the following simple linear regression:     Answer the following (3 points) If you had data collected on your hours slept before an exam and your exam score and were to fit it to a similar simple linear regression model (exam_score ~ hours_slept), what would you expect the sign of the slope to be?. (3 points) Would you expect the linear model to be statistically significant? Why? Which column of the OLS output would you check? (4 points) Would you expect the R2 value for exam_score ~ hours slept to be higher or lower than the one for exam_score ~ screen_time? Explain your reasoning

You are examining the apparent relationship between two vari…

You are examining the apparent relationship between two variables, displacement  and weight  from the Auto dataset of Module 2. Below is a plot of px.scatter(x=df.displacement, y=df.weight, width=400)The histograms of the two variables are below:You run a test for correlation using Pearson’s R and obtain the following results:Pearson’s R: 9.3310e-01P-value: 1.5300e-177  (3 points) List the null and alternative hypothesis (5 points) Interpret the results and describe any potential issues with this analysis. 

Un  nuevo hogar (home)  Jaime and Raquel are getting divorce…

Un  nuevo hogar (home)  Jaime and Raquel are getting divorced. Read his note and fill in the blanks  using que, quien, quienes, and lo que. La semana pasada compré la casa ideal. No, no es idéntica a la (1)_________ había en la revista Las casas más bonitas del mundo, pero tiene todo (2)_____ yo quiero en una casa. Tiene todos los detalles (details) (3)_____  a mí me gustan: jardín, balcón y ¡hasta un altillo! Antes aquí vivía un pintor (painter), a (4) _____ conocí cuando  vine a ver la casa hace unos meses. Él me dijo que compró la casa hace cinco años, pero que los Rosas, (5)_____ vivían allí antes que él, no se preocupaban mucho por decorar (decorate) la casa. El pintor dice que Mariam, (6)________  es la hija de los Rosas, se ocupaba de la casa. La casa tiene tres dormitorios y yo voy a dormir en el (7)________ tiene un cuadro de color azul, exactamente como el mar. (8)_______me dijo el pintor es que tengo que hacer una fiesta para sus amigos (9)_________también son pintores. Así ellos pueden pintar el jardín. Yo le contesté que (10)_________ voy a hacer es invitar a todos los artistas que conozco para decorar la casa entre todos.