Problem statement:
Consider the given databases, in which Y attribute is linearly dependent on attribute X. Write down python code (without using library functions) for univariate linear regression to determine the relationship between the independent variable and dependent variable for following cases. For all the cases, plot the results.
a) In dataset 'test_a.csv', some of the Y values are missing, replace them with (a) mean, (b) median and perform regression analysis and comment.
b) In dataset 'test_b.csv', some of the Y values are negative, perform regression analysis and comment.
c) Perform the regression analysis on dataset 'test_c.csv', plot the results. Detect and remove the outliers, perform regression analysis and comment.
Election results
programm code please help me
The formula (A∨B) ∧ (¬B ∨C) simplifies down to which of the following when using Boolean algebra?
A. A ∧ C
B. A ∧ B ∨ C
C. A ∨ C
D. B
E. A ∧ ¬B ∨ C
B ¬A A∧B A∨B A⇒B A ⇔ B
T T Blank 21. Fill in the blank, read surrounding text.
Blank 22. Fill in the blank, read surrounding text.
Blank 23. Fill in the blank, read surrounding text.
Blank 24. Fill in the blank, read surrounding text.
Blank 25. Fill in the blank, read surrounding text.
T F Blank 26. Fill in the blank, read surrounding text.
Blank 27. Fill in the blank, read surrounding text.
Blank 28. Fill in the blank, read surrounding text.
Blank 29. Fill in the blank, read surrounding text.
Blank 30. Fill in the blank, read surrounding text.
F T Blank 31. Fill in the blank, read surrounding text.
Blank 32. Fill in the blank, read surrounding text.
Blank 33. Fill in the blank, read surrounding text.
Blank 34. Fill in the blank, read surrounding text.
Blank 35. Fill in the blank, read surrounding text.
F F
Match the terms with their correct symbol
A. ⊢
B. ¬
C. ⇒
D. ∨
E. ∧
F. ⊨
G. ⇔
select
1. Implication
select
2. Equivalence
select
3. Negation
select
4. Conjunction
select
5. Disjunction
select
6. Derived
select
7. Entailed
Plot a pie chart for columns: ‘cyl’ and ‘model’ form the mtcars.csv data frame.
write a profram to convert the date in string fromat to another string format.
the input date string format is like "jul 01 2014 02:43PM"
the output date string format should be like "DD/MM/YYYY HH:MM:SS"
Seoul Garden Sdn Bhd serves a wide range of seafood selections such as tasty crabs, fresh prawns, chicken fillets & many more for steamboat and grill. This buffet restaurant serves up 150+ choices of fresh seafood, fruits, and cold & hot beverages.
The price of the steamboat per person is shown in Table 1:
Age (years) Price (RM)
________________________
6 - 12 RM 11
> 13 RM 25
________________________
*I can't draw a table so I do like this :'(
Seoul Garden Sdn Bhd also gives an appreciation for the member cardholder with 6% off from the total price. The above price excludes government tax of RM 5.60.
Write an application that accepts the customer’s age and member status (member or non-member) by using a JOptionPane procedure and prints out the total price.
You are given an array of N non-negative integers: A1, A2, ..., AN. An alternating subsequence is a subsequence in which the indices of any two consecutive elements differ by exactly two in the original array. That is, if Ai1, Ai2, ..., Aik is some subsequence, then for it to be an alternating subsequence, (i2 - i1 = 2), (i3 - i2 = 2), and so on should all hold true. Among all alternating subsequences, find the one which has maximum sum of elements, and output that sum.
Modify the following program to check for reasonable inputs (or reject un-reasonable ones). For example, a negative GPA or test score, or a GPA of 10 or a test score of more than 100.
using System;
namespace Admit
{
class Program
{
public static void Main(string[] args)
{
float avg;
int score;
Console.WriteLine("Grade point average: ");
avg = float.Parse(Console.ReadLine(), System.Globalization.CultureInfo.InvariantCulture); //decimal mark is "."
Console.WriteLine("Admission test score: ");
score = int.Parse(Console.ReadLine());
if ((avg >= 3) && (score >= 60) || (avg < 3) && (score >= 80))
Console.Write("Accept");
else
Console.Write("Reject");
Console.ReadKey(true);
}
}
}