yego.me
💡 Stop wasting time. Read Youtube instead of watch. Download Chrome Extension

Worked example of linear regression using transformed data | AP Statistics | Khan Academy


4m read
·Nov 11, 2024

We are told that a conservation group with a long-term goal of preserving species believes that all at-risk species will disappear when land inhabited by those species is developed. It has an opportunity to purchase land in an area about to be developed. The group has a choice of creating one large nature preserve with an area of 45 square kilometers and containing 70 at-risk species or five small nature preserves, each with an area of three square kilometers and each containing 16 at-risk species unique to that preserve.

Which choice would you recommend and why?

Here's some interesting data. It looks like some data they have gathered for different islands and we have their areas and then this is the number of species at risk in 1990 and then the species extinct by 2000. We can see for these various islands their areas and the proportion that got extinct. It looks like they're plotted on this scatter plot.

Now, be very careful when you look at this because look at the two axes. The vertical axis is the proportion extinct in 2000, so it's these numbers. But the horizontal axis isn't just straight up area; it's the natural log of the area. Why did they do this? Well, notice when you make the horizontal axis the natural log of the area, it looks like there's a linear relationship. But be clear, it's a linear relationship between the natural log of the area and proportion extinct in 2000.

The reason why it's valuable to do this type of transformation is now we can apply our tools of linear regression to think about what would be the proportion extinct for the 45 square kilometers versus for the five small three-kilometer islands. So pause this video and see if you can figure it out on your own.

They give us the regression data for a line that fits this data. All right, now let's work through it together and to make some space because all of it is already plotted right over here and we have our regression data.

The regression line, we know its slope and y-intercept. The y-intercept is right over here: 0.28996. So it's going to be right over here would be the y-intercept. Its slope is approximately negative 0.05. I could eyeball it; it probably is going to look something like this. That's the regression line.

Another way to think about it is the regression line tells us, in general, the proportion—I'll just say proportion shorthand for proportion extinct—is going to be equal to our y-intercept 0.28996 minus 0.053 and we have to be careful here. You might be tempted to say times the area, but no, the horizontal axis here is the natural log of the area times the natural log of the area.

We can use this equation for both scenarios to think about what is going to be the proportion that we would expect to get extinct in either situation, and then how many actual species will get extinct. The one that maybe has fewer species that get extinct is maybe the best one, or the one that the more that we can preserve is maybe the best one.

So let's look at the two scenarios. The first scenario is the 45 square kilometer island. This is just one, so times one. What is going to be the proportion that we would expect to go extinct based on this regression?

What's going to be 0.28996 minus 0.05323 times the natural log of 45? If we want to know the actual number that go extinct, the number extinct would be equal to the proportion times how many—that's 70 at-risk species on that island.

So let's get our calculator out to figure that out. The proportion we would expect to go extinct in the 45 square kilometer island based on our linear regression goes like this: approximately nine percent. If we want to figure out the actual number we would expect to go extinct, we multiply that by the number of species on that island, which is 70.

We get approximately 6.11. So this is going to be approximately 6.11; we could say there would be approximately six extinct. This is all very approximate. Thus, we have approximately 64 saved.

Now let's think about the other scenario. Let's think about the scenario where we have five small nature preserves. It's going to be three square kilometers times five islands, and we're going to just do the same exercise.

Our proportion that goes extinct is going to be 0.28996—that's just the y-intercept for our regression line—minus 0.05323. They have a negative sign there because we have a negative slope, and this is not just times the area; it's times the natural log of the area.

It's going to be three square kilometers. Our number extinct will be equal to our proportion calculated in the line above times five small nature preserves, each with an area of three square kilometers and each containing 16 at-risk species.

So 5 times 16, if each island has 16 and there are 5 islands, that's 5 times 16, which equals 80. Now, let's figure out what this is; get the calculator out again.

So this is going to be the proportion; it's a much higher proportion, and then we'll multiply that times our number of species to figure out how many species will go extinct.

We have here it's approximately 18.52. So this is approximately 18.52. Another way to think about it is we're going to have approximately, well, if we round, let's just say 19 extinct. If we have 19 extinct, how many we’re going to save? We're going to have 61 saved.

Even if you said 18 and a half here and 61.5 here, on either measure, the 45 square, the big island is better. You're going to have fewer species that are extinct and more that are saved.

So which choice would you recommend and why? I'd recommend the one large island because you're going to save—you would expect to save more species—and you would expect that fewer are going to get extinct based on this linear regression.

More Articles

View All
The Mystery of Synchronous Fireflies - Smarter Every Day 274
Hey, it’s me, Destin. Welcome back to Smarter Every Day. I grew up here in Alabama, like most kids in the area, learning how to catch lightning bugs and putting them in a jar. It’s a magical memory that most of a share. But today, on Smarter Every Day, we…
How to STAND OUT and get noticed
What’s up, you guys? It’s Graham here. So, I’m saying to be explaining why it’s so important to be different, to stand out, and how that can help you beat the competition. And by the way, it totally doesn’t matter what business you’re in. I don’t care if …
The True Cost of the Royal Family Explained
Look at that! What a waste! That Queen living it off the government in her castles with her corgis and gin. Just how much does this cost to maintain? £40 million. That’s about 65p per person per year of tax money going to the royal family. Sure, it’s stil…
Western Australia's Shark Attack Causes | SharkFest
[music playing] NARRATOR: And while sharks have always been present along this massive shoreline, starting in 2010, they become a problem. More than 60 attacks in just 10 years, triple the number of incidents from the preceding decade—it’s an unprecedent…
14 minutes of more useless information..
[Music] As I was getting ready to go out the other day, I realized I couldn’t button my pants up all the way. I realized I was gravitationally challenged and that I had been growing in all the wrong directions. So I started doing what any reasonable perso…
Overcoming Self-Hatred
Self-hatred is something I’ve struggled with a lot in the past, so this video is quite personal. The experience of self-hatred often goes together with depression and is basically a mechanism to cope with beliefs about oneself and our position in the grea…