Graphic to check for complete separation [closed] - graphics

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I need to check for complete separation. I am using SPSS and need to know what steps I have to take to get the grahpic on this site. Can someone help me?

SPSS does not provide that probability curve (SAS and Stata can do that). However, plotting the 1/0 outcome against the continuous predictor, and observe how the two horizontal data lines overlap may be enough to give you some hint.
If you have enough data, you can also first separate your data by different groups (for example, 10 equal groups split by your continuous predictors), and the compute each group's mean (aka probability of "yes" to outcome), and join the points. That line should approximate the curve in the illustration you provide.

Related

What is the best way to isolate these local areas by intensity? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
The general task is to binarize the image so that only the brightest spots remain. But adaptive binarization and the Otsu method do not give an acceptable result due to light traces (shown in the image).
I think that you need to go through the entire image with a small window that will highlight a local minimum in the area.I am counting on the fact that with the correct selection of the threshold, only light spots will remain that need to be found. It should be. But I do not know how to apply the standard opencv threshold function in sliding windows.
UPD:After the proposed adaptive threshold, the image looks like this. Not perfect, but much closer to what I need.It seems that a combination of threshold functions does not always give a better result than a single one.
This is the command:
outputimg = cv.adaptiveThreshold(img,255,cv.ADAPTIVE_THRESH_MEAN_C,cv.THRESH_BINARY,11,0)
further explanation and examples: https://docs.opencv.org/3.4/d7/d4d/tutorial_py_thresholding.html

Repeatedly select in ‘random’ order the components of three sets of ten each [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I wish to assign randomly (sort of) the numbers 1, 2 and 3 to 30 rows such that every time I run the randomization I get ten instances of each number.
I do know of =RANDBETWEEN but am not sure how to ensure each of the three numbers is output with equal probability, but in a varying sequence.
Is there a convenient software algorithm for this, using Excel functions?
What you are doing is called a shuffle - randomly ordering a fixed set of elements.
Fill the array with 10 1's, 10 2's, and 10 3's, then run a random shuffle on it.
You should be able to find descriptions on shuffle algorithms with a web search.

What does '%8.1fC\n' mean? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I wanted to know the purpose of a percent inside a string with 8.1. Your help will be appreciated thanks.
%8.1f is a format specifier. This should point you in the right direction for figuring out what all the parts mean. It specifies the format in which a variable will be printed. In this specific case, it is a place-holder for a floating point variable. It reserves a width of at least 8 characters and a precision of 1.
For more information, do some research on format specifiers. It's an extremely well documented and widely available topic for virtually every programming language.

Effects of sound multiplication [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
What are the effects of multiplication of two different sound? An neither of them are constant, like two different songs, or one track of instrumental and one of vocals.
A simple Google search came up with this:
http://crca.ucsd.edu/~msp/techniques/v0.11/book-html/node77.html
Did you search for it at all?
But basically what happens is you end up creating an envelope where the second acts as a "coefficient" of sorts.
You also end up with a reduction of sound levels (since a decimal times a decimal is less both of them), so you'll need to amplify the signal a bit to retain volume.
The page I linked gives a lot more explanation and has a lot of the algebra needed to write up a code to implement it. Look there if you have any more questions.

Why does each box in a UML state diagram have three sections? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I noticed in this example that each box is divided into three sections, but only two sections are ever used. Why not just divide it into two sections then?
UML Tutorial - State Diagrams
Having checked my copy of UML Distilled by Fowler-Scott, I can only conclude that the use of different sections is not significant. As you say, why not just use 2 sections, and I'd agree.
I would place more importance on what the diagram is trying to show and why that is important than on the actual representation used on the diagram itself.
Usually, there are only one or two sections. One for the name and a second one (often omited) for actions/activities.

Resources