Question

In: Statistics and Probability

how do you compute the test error in 5-fold cross-validation?

how do you compute the test error in 5-fold cross-validation?

Solutions

Expert Solution

In my language

k fold ch testing techniques we check on various testing data and various training days

Suppose you have 100 data usually uiuufit the mod on 80% data and 20%testing data.means 80/20,,

in cross validation you give k value suppose you give k=5,Then they divided your data 10equally part

K1,k2,k3,k4,k5

then build model various combination of group and testing also

like

train data k1,k2,k3,k4 and test data k5

train data k1,k2,k3,k5 and test data k4

train data k1,k2,k4 ,k5and test data k3

train data k1,k3,k4 ,k5and test data k2

train data k2,k3,k4,k5and test data k1

Advantage ge is all data cover in training period and testing period also then we combine all outputs...

thanks

belows theory I found on google...

The procedure has a single parameter called k that refers to the number of groups that a given data sample is to be split into. As such, the procedure is often called k-fold cross-validation. When a specific value for k is chosen, it may be used in place of k in the reference to the model, such as k=10 becoming 10-fold cross-validation.


Related Solutions

[USING R & dataset “Boston”] Using the leave-one-out cross-validation and 5-fold cross-validation techniques to compare the...
[USING R & dataset “Boston”] Using the leave-one-out cross-validation and 5-fold cross-validation techniques to compare the performance of models in (a) and (b) with: (a) SalesPredict <- lm(Sales ~ Price + Urban + US, data = Carseats) (b) SalesRevise <- lm(Sales ~ Price + US, data = Carseats) Hint: Functions update (with option subset) and predict.
Cross validation: If we perform k-fold cross validation, training a Naive Bayes model, how many models...
Cross validation: If we perform k-fold cross validation, training a Naive Bayes model, how many models will we end up creating?
How does the computational time changes when we decrease the k in k-fold cross validation? Why?...
How does the computational time changes when we decrease the k in k-fold cross validation? Why? Explain. b. In which procedures, we can apply k-fold cross validation. Consider all the procedures that we learned.
What is the purpose of cross-validation? Specifically, why wouldn’t we test a hypothesis trained on all...
What is the purpose of cross-validation? Specifically, why wouldn’t we test a hypothesis trained on all of the available examples?
Here, I detail the validation rules that you should implement and the error messages that must...
Here, I detail the validation rules that you should implement and the error messages that must be shown for invalid inputs: For login page: username input is required. If it is empty, show error message of “Please enter your username.” username input should be at least 5 character. If it is less that 5 character, show error message that “Please enter at least 5 characters.” password input is required. If it is empty, show error message of “Please enter your...
How do you add an error bar when the add error bar is not included in...
How do you add an error bar when the add error bar is not included in the add chart element box? How do you do the dependent t-test calculation in excel?
How do you cross reference check a two sample t-test hypothesis? Identify assumptions, cautions, limitations, and...
How do you cross reference check a two sample t-test hypothesis? Identify assumptions, cautions, limitations, and generalizations for a two sample t-test hypothesis.
How do you cross reference check a two sample t-test hypothesis? Identify assumptions, cautions, limitations, and...
How do you cross reference check a two sample t-test hypothesis? Identify assumptions, cautions, limitations, and generalizations for a two sample t-test hypothesis.
How can we use concordant pairs (the c-index) to perform cross-validation for a logistic regression model?
How can we use concordant pairs (the c-index) to perform cross-validation for a logistic regression model?
How do you set up & determine the results of a dyhybrid cross?
How do you set up & determine the results of a dyhybrid cross?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT